[libc-commits] [libc] [libc] Provide isnan, isnanf and isnanl functions (PR #96008)
Petr Hosek via libc-commits
libc-commits at lists.llvm.org
Thu Jun 20 10:52:01 PDT 2024
petrhosek wrote:
C standard introduced `isnan` as a macro in C99, but it has been provided as a function long before that, originally by BSD but it was also adopted by glibc etc. It's fine to define both as long as the macro is defined after the function which is what glibc, bionic and newlib do. I'm inclined to do the same for backwards compatibility.
https://github.com/llvm/llvm-project/pull/96008
More information about the libc-commits
mailing list