def mont
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
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 (8)
- bend-collections-laws-math@1.0.0.0/src/math/w64:mbit
- bend-collections-laws-math@1.0.0.0/src/math/w64:mpow_go
- bend-collections-laws-math@1.0.0.0/proofs/math/typed/u64mont:mform
- bend-collections-laws-math@1.0.0.0/proofs/math/typed/u64mont:mont_cong
- bend-collections-laws-math@1.0.0.0/proofs/math/typed/u64mont:mont_lt
- …