def mul128
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
407# the full product as (low 64 bits, high 64 bits)
408def mul128(+a: W.U64, +b: W.U64) -> W.U64 & W.U64:
409 mul128_mid(mul32(lo(a), lo(b)), mul32(lo(a), hi(b)), mul32(hi(a), lo(b)), mul32(hi(a), hi(b)))
Uses (6)
Used by (20)
- bend-collections-laws-crypto@1.0.0.0/src/math/random/rand:draw
- bend-collections-laws-crypto@1.0.0.0/proofs/math/random/uint64n:hd_of
- bend-collections-laws-crypto@1.0.0.0/proofs/math/random/uint64n:hi_value
- bend-collections-laws-crypto@1.0.0.0/src/math/random/pcg:step_with
- bend-collections-laws-crypto@1.0.0.0/src/math/w64:mont
- …