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

via libc-commits libc-commits at lists.llvm.org
Fri Feb 7 11:24:53 PST 2025


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff 53d6e59b594639417cdbfcfa2d18cea64acb4009 32e599c4e36e3b894dfe5f7dbd8765685eaa27b7 --extensions h -- libc/src/__support/FPUtil/FMA.h libc/src/__support/FPUtil/multiply_add.h
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/libc/src/__support/FPUtil/FMA.h b/libc/src/__support/FPUtil/FMA.h
index 3ae2e39ff3..1e40d06dc1 100644
--- a/libc/src/__support/FPUtil/FMA.h
+++ b/libc/src/__support/FPUtil/FMA.h
@@ -38,7 +38,6 @@ template <> LIBC_INLINE double fma(double x, double y, double z) {
 #else
   return __builtin_fma(x, y, z);
 #endif
-
 }
 #endif // LIBC_TARGET_CPU_HAS_FMA
 

``````````

</details>


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


More information about the libc-commits mailing list