def q96

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

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

347# floor(x / b) for x = xh * 2^64 + xl < b * 2^32 and b >= 2^32, t = bits(hi(b))
348def q96(+xl: W.U64, +xh: U32, +b: W.U64, +t: Nat) -> U32:
349  q_start(xl, xh, b, q_est(xl, xh, b, t))

Uses (5)

Used by (3)