def over96

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

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

300# the 96-bit product p exceeds x = xh * 2^64 + xl
301def over96(+xl: W.U64, +xh: U32, p: W.U64 & U32) -> Bool:
302  (+pl, +ph) = p
303  Bool.or(U32.is_lt(xh, ph), Bool.and(U32.is_eq(xh, ph), lt(xl, pl)))

Uses (10)

Used by (8)