def mm_pick
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
415def mm_pick(+a: W.U64, +b: W.U64, +m: W.U64, small: Bool) -> W.U64:
416 match small:
417 case True{}:
418 W.U64{mod32(mul32(lo(a), lo(b)), lo(m)), 0}
419 case False{}:
420 mm_big(m, mul128(a, b))