]> git.ipfire.org Git - thirdparty/glibc.git/commit
math: Fix isgreater* and isless* for clang
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Fri, 1 Apr 2022 19:35:32 +0000 (16:35 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Wed, 9 Apr 2025 16:36:13 +0000 (13:36 -0300)
commitaf992bb633edd4a60a540dd155a9f2790cd7d81d
tree66c99d54e5b10d394f6ac62cb1d4f5f366446e3d
parent7275d0fe5b253aebc6c49682347e150cb5ac6870
math: Fix isgreater* and isless* for clang

clang does not check for unordered numbers with builtins for
_Float128 type.

It fixes multiple issues with math tests, such as:

Failure: fmax (0, qNaN): Exception "Invalid operation" set
Failure: fmax (0, -qNaN): Exception "Invalid operation" set
Failure: fmax (-0, qNaN): Exception "Invalid operation" set
Failure: fmax (-0, -qNaN): Exception "Invalid operation" set
Failure: fmax (9, qNaN): Exception "Invalid operation" set
Failure: fmax (9, -qNaN): Exception "Invalid operation" set
Failure: fmax (-9, qNaN): Exception "Invalid operation" set
Failure: fmax (-9, -qNaN): Exception "Invalid operation" set
math/math.h