def mul
import bend-collections-laws-crypto@1.0.0.0/src/math/w64.bend as W64import Base
import bend-collections-laws-crypto@1.0.0.0/src/math/u64.bend as W
95# a * b mod 2^64
96def mul(+a: W.U64, +b: W.U64) -> W.U64:
97 add(mul32(lo(a), lo(b)), W.U64{0, U32.add(U32.mul(lo(a), hi(b)), U32.mul(hi(a), lo(b)))})
Uses (7)
Used by (8)
- bend-collections-laws-crypto@1.0.0.0/src/math/random/pcg:dxsm_with
- bend-collections-laws-crypto@1.0.0.0/spec/math/w64:Mul.value
- bend-collections-laws-crypto@1.0.0.0/src/math/random/pcg:dxsm2
- bend-collections-laws-crypto@1.0.0.0/src/math/random/pcg:step_mul
- bend-collections-laws-crypto@1.0.0.0/src/math/w64:inv_step
- …