[libc-commits] [libc] [libc] Provide isnan, isnanf and isnanl functions (PR #96008)
Nick Desaulniers via libc-commits
libc-commits at lists.llvm.org
Thu Jun 20 11:19:48 PDT 2024
================
@@ -17,4 +17,6 @@
%%public_api()
+#define isnan(x) __builtin_isnan(x)
----------------
nickdesaulniers wrote:
> that is to move isinf, isfinite, isnan
So isnan has isnan, isnanf, and isnanl.
isinf has isinf, isinff, isinfl,
finite has finite, finitef, finitel. Note that finite is not isfinite{f|l}, so it lacks the symmetry that isinf and isnan have. Stated another way, isfinite (the type-generic macro) does not conflict with the finite, finitef, and finitel functions (like isnan and isinf do).
https://github.com/llvm/llvm-project/pull/96008
More information about the libc-commits
mailing list