@[irreducible, specialize #[]]
Decrease s by g if possible, saturating at s = 0.
We return (t, s - t) where t is the normalized exponent.
Equations
Instances For
@[simp]
of_ns doesn't create nan
of_ns satisfies norm
@[irreducible]
Construct a Floating given possibly non-standardized n, s
Equations
- Floating.of_ns n s = if nm : n = Int64.minValue then nan else if n0 : n = 0 then 0 else let t := Floating.lower (62 - n.uabs.fast_log2) s; { n := n <<< t.2, s := t.1, v := ⋯ }
Instances For
@[simp]
of_ns propagates nan