def mant

bend-collections-laws-crypto@1.0.0.0 · spec/math/f64.bend:139

import bend-collections-laws-crypto@1.0.0.0/spec/math/f64.bend as F64
import Base
import bend-collections-laws-crypto@1.0.0.0/spec/lib/common.bend as C
import bend-collections-laws-crypto@1.0.0.0/src/math/f64.bend as F

139# the fraction with the hidden bit 2^52 of a normal number
140def mant(+x: F.F64) -> Nat:
141  Nat.add(frac(x), C.shift(52n, b2n(Bool.not(Nat.is_eq(efield(x), 0n)))))

Uses (9)

Used by (14)