mirror of
https://github.com/apple/swift-numerics
synced 2026-11-25 04:47:53 +00:00
Just-added tests expose this issue, where the split of n into high/low parts could produce parts with different signs. If both x**high and x**low then overflow and underflow, the resulting computation would be 0*inf (or inf*0) and produce NaN instead of either zero or infinity.