[libc-commits] [libc] [llvm] [libc][math] Refactor ffmaf128 into a header only. (PR #177873)

Muhammad Bassiouni via libc-commits libc-commits at lists.llvm.org
Mon Jan 26 09:16:05 PST 2026


================
@@ -7,14 +7,15 @@
 //===----------------------------------------------------------------------===//
 
 #include "src/math/ffmaf128.h"
-#include "src/__support/FPUtil/FMA.h"
-#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
-
+// #include "src/__support/FPUtil/FMA.h"
+// #include "src/__support/common.h"
+// #include "src/__support/macros/config.h"
+#include "src/__support/math/ffmaf128.h"
 namespace LIBC_NAMESPACE_DECL {
 
 LLVM_LIBC_FUNCTION(float, ffmaf128, (float128 x, float128 y, float128 z)) {
-  return fputil::fma<float>(x, y, z);
+  // return fputil::fma<float>(x, y, z);
+    return math::ffmaf128(x, y, z);
----------------
bassiounix wrote:

```suggestion
  return math::ffmaf128(x, y, z);
```

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


More information about the libc-commits mailing list