def norm_e
import bend-collections-laws-math@1.0.0.0/src/math/f64.bend as F64import Base
import bend-collections-laws-math@1.0.0.0/src/math/u64.bend as W
import bend-collections-laws-math@1.0.0.0/src/math/w64.bend as X
192# the offset exponent and 53-bit significand (hidden bit at 52) of a nonzero
193# finite value, subnormals normalized (SoftFloat's normSubnormalF64Sig)
194def norm_e(+e: Nat, +f: W.U64) -> Nat:
195 match e:
196 case 0n:
197 Nat.sub(Nat.add(off(), 12n), X.clz(f))
198 case _:
199 Nat.add(off(), e)