Native-word addition for generic binary32 #
The nonzero finite path extracts fields and packs the result with UInt32 and UInt64. Non-finite
IEEE policy remains outside this module; the entry points return none when
either operand is a NaN or infinity. Correctness lives in Addition.Proof.
@[inline]
Finite binary32 addition through exact dyadic coordinates.
none means at least one operand is a NaN or infinity; the caller applies the generic IEEE
special-value policy in that case.
Instances For
@[inline]
Machine-word implementation of finite binary32 addition.
When exponent alignment fits in 39 bits, both exact significands and their sum fit in one
UInt64. At larger gaps the smaller finite significand is strictly below half an ulp, so
nearest-even rounding returns the dominant operand directly.