def mul
import bend-collections-laws-math@1.0.0.0/src/math/w64.bend as W64import Base
import bend-collections-laws-math@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 (45)
- bend-collections-laws-math@1.0.0.0/src/math/instances:u64_op
- bend-collections-laws-math@1.0.0.0/src/math/w64:mont_ok
- bend-collections-laws-math@1.0.0.0/src/math/fixed:dig64
- bend-collections-laws-math@1.0.0.0/proofs/math/typed/u64laws:ops_mul
- bend-collections-laws-math@1.0.0.0/src/math/fixed:u64_overflowing_mul
- …