[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:13:43 PDT 2024
    
    
  
================
@@ -17,4 +17,6 @@
 
 %%public_api()
 
+#define isnan(x) __builtin_isnan(x)
----------------
nickdesaulniers wrote:
> Do we expect every consumer of this header to have this builtin?
Yes.  All versions of clang and gcc that we claim to support have this builtin. Therefor, we should not guard it with __has_builtin (same for other builtins).
https://github.com/llvm/llvm-project/pull/96008
    
    
More information about the libc-commits
mailing list