mirror of
https://github.com/apple/swift-numerics
synced 2026-11-26 04:57:53 +00:00
These cases expose a bug in the current implementation; because the split of the exponent into high and low parts may produce numbers with different signs, if both parts overflow or underflow, we can end up with 0 * infinity = NaN, when the result should actually be either zero or infinity.