def over96
import bend-collections@1.0.0.0/src/math/w64.bend as W64import Base
import bend-collections@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)))