[libc-commits] [libc] [libc][math][c23] Add f16fma{, l, f128} C23 math function (PR #96711)

via libc-commits libc-commits at lists.llvm.org
Thu Jun 27 07:30:28 PDT 2024


================
@@ -39,17 +39,17 @@ multiply_add(T x, T y, T z) {
 #if defined(LIBC_TARGET_CPU_HAS_FMA)
 
 // FMA instructions are available.
-#include "FMA.h"
+#include "src/__support/FPUtil/generic_hardware/fma.h"
----------------
lntue wrote:

If this is the only place using it right now, maybe we can just directly use `__builtin_fma(f)` here, and adding comments about circular dependency.

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


More information about the libc-commits mailing list