def step_mul

bend-collections@1.0.0.0 · src/math/random/pcg.bend:55

import bend-collections@1.0.0.0/src/math/random/pcg.bend as Pcg
import Base
import bend-collections@1.0.0.0/src/math/u64.bend as W
import bend-collections@1.0.0.0/src/math/w64.bend as X

55def step_mul(+mh: W.U64, +ml: W.U64, +ih: W.U64, +il: W.U64, +hi: W.U64, +lo: W.U64, p: W.U64 & W.U64) -> PCG:
56  (+l, +h) = p
57  step_fin(ih, il, l, X.add(h, X.add(X.mul(hi, ml), X.mul(lo, mh))))

Uses (7)

Used by (1)