[libc-commits] [libc] [libc][FPUtil] Make hardware helpers usable in constant expressions (PR #242283)
via libc-commits
libc-commits at lists.llvm.org
Sun Nov 15 03:19:07 PST 2026
================
@@ -34,40 +34,51 @@ LIBC_INLINE constexpr OutType fma(InType x, InType y, InType z) {
return generic::fma<OutType>(x, y, z);
}
-#ifdef LIBC_TARGET_CPU_HAS_FMA
+#if defined(LIBC_TARGET_CPU_HAS_FMA) && !defined(LIBC_USE_CONSTEXPR)
----------------
linisha15 wrote:
removed the guard, the hardware fma specializations already fall back to generic::fma during constant evaluation
https://github.com/llvm/llvm-project/pull/242283
More information about the libc-commits
mailing list