def div_ab
bend-collections@1.0.0.0 · src/math/f64.bend:388
import bend-collections@1.0.0.0/src/math/f64.bend as F64
import Base
import bend-collections@1.0.0.0/src/math/u64.bend as W
import bend-collections@1.0.0.0/src/math/w64.bend as X
388def div_ab(+s: Bool, +ea: Nat, +a: W.U64, +eb: Nat, +b: W.U64, less: Bool) -> F64:
389 match less:
390 case True{}:
391 div_q(s, Nat.sub(Nat.add(ea, Nat.add(off(), 1021n)), eb), X.add(a, a), b)
392 case False{}:
393 div_q(s, Nat.sub(Nat.add(ea, Nat.add(off(), 1022n)), eb), a, b)