def sm_exact

bend-collections@1.0.0.0 · src/math/f64.bend:273

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

273# an exact difference of equal exponents, normalized without rounding
274def sm_exact(+s: Bool, +e1: Nat, +d: W.U64) -> F64:
275  sm_exact3(s, e1, d, Nat.sub(X.clz(d), 11n), Nat.is_lt(e1, Nat.sub(X.clz(d), 11n)))

Uses (8)

Used by (1)