def mulmod

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

import bend-collections@1.0.0.0/src/math/w64.bend as W64
import Base
import bend-collections@1.0.0.0/src/math/u64.bend as W

422# a * b mod m for a, b < m
423def mulmod(+a: W.U64, +b: W.U64, +m: W.U64) -> W.U64:
424  mm_pick(a, b, m, U32.is_zero(hi(m)))

Uses (4)

Used by (1)