def mul

bend-collections-laws-math@1.0.0.0 · src/math/w64.bend:95

import bend-collections-laws-math@1.0.0.0/src/math/w64.bend as W64
import 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)