Native binary64 addition and subtraction runtime #
The executable binary64 dispatchers combine equal-exponent addition with signed Sterbenz
subtraction. Their refinement proofs are in Addition.Proof.
@[inline]
def
FloatLib.Floats.Formats.BinaryInterchange.Model.NativeBinary64.addNormalSameExponent?
(x y : Value)
:
Try native same-sign addition of normal binary64 operands with the same exponent.
The sum of two 53-bit significands is rounded once to nearest-even and packed.
Instances For
@[inline]
Try native equal-exponent addition before the exact finite binary64 implementation.
Instances For
@[inline]
Try signed Sterbenz subtraction first, then reuse native same-exponent addition for opposite-sign subtraction. Every declined case falls back to the exact finite component kernel.