def q_start
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
315# floor(x / b) from an estimate q >= floor(x / b): down while q * b > x (at
316# most q steps, fuel q + 1)
317def q_start(+xl: W.U64, +xh: U32, +b: W.U64, +q: U32) -> U32:
318 q_fix(Nat.add(U32.to_nat(q), 1n), xl, xh, b, q, over96(xl, xh, mul_32_64(q, b)))
Uses (7)
Used by (8)
- bend-collections-laws-math@1.0.0.0/src/math/w64:q96
- bend-collections-laws-math@1.0.0.0/proofs/math/typed/w64dm:impl_qs
- bend-collections-laws-math@1.0.0.0/proofs/math/typed/w64mm:red_ve
- bend-collections-laws-math@1.0.0.0/proofs/math/typed/f64divd:dig_q
- bend-collections-laws-math@1.0.0.0/proofs/math/typed/f64divd:dig_r
- …