[libc-commits] [libc] [libc] Use __builtin_elementwise_fma instead of __builtin_fma (PR #126288)

Nick Desaulniers via libc-commits libc-commits at lists.llvm.org
Fri Feb 7 11:16:26 PST 2025


================
@@ -25,11 +25,11 @@ LIBC_INLINE OutType fma(InType x, InType y, InType z) {
 
 #ifdef LIBC_TARGET_CPU_HAS_FMA
 template <> LIBC_INLINE float fma(float x, float y, float z) {
-  return __builtin_fmaf(x, y, z);
+  return __builtin_elementwise_fma(x, y, z);
----------------
nickdesaulniers wrote:

Does GCC have this builtin?

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


More information about the libc-commits mailing list