[libc-commits] [libc] [libc][FPUtil] Make hardware helpers usable in constant expressions (PR #242283)
Muhammad Bassiouni via libc-commits
libc-commits at lists.llvm.org
Sat Nov 14 10:22:52 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)
----------------
bassiounix wrote:
same here
https://github.com/llvm/llvm-project/pull/242283
More information about the libc-commits
mailing list