def mont

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

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

607# a b / 2^64 mod m for a, b < m
608def mont(+m: W.U64, +mp: W.U64, +a: W.U64, +b: W.U64) -> W.U64:
609  redc(m, mp, mul128(a, b))

Uses (3)

Used by (3)