[libc-commits] [libc] [libc] Remove obsolete LIBC_HAS_BUILTIN macro (PR #86554)
Nick Desaulniers via libc-commits
libc-commits at lists.llvm.org
Mon Mar 25 13:20:19 PDT 2024
================
@@ -12,10 +12,11 @@
#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");
+#if !__has_builtin(__builtin_fma) || !__has_builtin(__builtin_fmaf)
+#error "FMA builtins must be defined");
+#endif
----------------
nickdesaulniers wrote:
We no longer need to include src/__support/macros/config.h here thanks to this change.
https://github.com/llvm/llvm-project/pull/86554
More information about the libc-commits
mailing list