[libc-commits] [libc] [libc][math] Prevent spurious floating-point exceptions in fdim (PR #228749)
Chen Miao via libc-commits
libc-commits at lists.llvm.org
Sat Oct 17 10:48:06 PDT 2026
================
----------------
ChenMiaoi wrote:
Indeed, I overlooked the isnan check. Using an if-statement directly works for float and double. However, in this example (https://godbolt.org/z/7xvTsb6hK), simply changing the type to `long double` still causes the issue on x86, both locally and with Clang trunk at `-O2`.
https://github.com/llvm/llvm-project/pull/228749
More information about the libc-commits
mailing list