[libc-commits] [libc] [libc] Remove obsolete LIBC_HAS_BUILTIN macro (PR #86554)

Marc Auberer via libc-commits libc-commits at lists.llvm.org
Mon Mar 25 12:37:45 PDT 2024


================
@@ -12,10 +12,10 @@
 #include "src/__support/CPP/type_traits.h"
 #include "src/__support/macros/config.h"
 
-// These intrinsics map to the FMA instrunctions in the target ISA for the GPU.
+// These intrinsics map to the FMA instructions in the target ISA for the GPU.
 // The default rounding mode generated from these will be to the nearest even.
-static_assert(LIBC_HAS_BUILTIN(__builtin_fma), "FMA builtins must be defined");
-static_assert(LIBC_HAS_BUILTIN(__builtin_fmaf), "FMA builtins must be defined");
+static_assert(__has_builtin(__builtin_fma), "FMA builtins must be defined");
+static_assert(__has_builtin(__builtin_fmaf), "FMA builtins must be defined");
----------------
marcauberer wrote:

Done.

https://github.com/llvm/llvm-project/pull/86554


More information about the libc-commits mailing list