llvm-project
77069453 - [libc] Work around incorrect fmin/fmax results for +/-x (#83158)

Commit
1 year ago
[libc] Work around incorrect fmin/fmax results for +/-x (#83158) Summary: The IEEE 754 standard as of the 2019 revision states that for fmin -0.0 is always less than 0.0 and for fmax 0.0 is always greater than 0.0. These are currently not respected by the builtin value and thus cause the tests to fail. This patch works around it in the implementation for now by explicitly modifying the sign bit.
Author
Parents
Loading