[libc-commits] [libc] [libc] Provide isnan, isnanf and isnanl functions (PR #96008)
via libc-commits
libc-commits at lists.llvm.org
Wed Jun 19 06:55:51 PDT 2024
================
@@ -17,4 +17,6 @@
%%public_api()
+#define isnan(x) __builtin_isnan(x)
----------------
lntue wrote:
Does it mean that we still define `isnan` macro after defining all the `isnan` function?
If so then I think it makes sense to do the `TODO` in `math-macros.h`, that is to move `isinf`, `isfinite`, `isnan` macro definitions to `math-function-macros.h`, including it after `%%public_api` in here, and commenting about the reason we have to include it after all the function definitions.
https://github.com/llvm/llvm-project/pull/96008
More information about the libc-commits
mailing list