[libc-commits] [libc] [llvm] [libc] Use __builtin_fma(f) by default if LIBC_TARGET_CPU_HAS_FMA is defined. (PR #91535)

via libc-commits libc-commits at lists.llvm.org
Wed May 8 18:37:28 PDT 2024


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 cec6665f2b7583223eb20519dfc3289011d1d2d7 2f784429bd88f51c69aa7b266ab503e397001179 -- libc/src/__support/FPUtil/FMA.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 ed71b384a4..c277da4953 100644
--- a/libc/src/__support/FPUtil/FMA.h
+++ b/libc/src/__support/FPUtil/FMA.h
@@ -9,9 +9,9 @@
 #ifndef LLVM_LIBC_SRC___SUPPORT_FPUTIL_FMA_H
 #define LLVM_LIBC_SRC___SUPPORT_FPUTIL_FMA_H
 
+#include "src/__support/CPP/type_traits.h"
 #include "src/__support/macros/properties/architectures.h"
 #include "src/__support/macros/properties/cpu_features.h" // LIBC_TARGET_CPU_HAS_FMA
-#include "src/__support/CPP/type_traits.h"
 
 #if defined(LIBC_TARGET_CPU_HAS_FMA)
 

``````````

</details>


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


More information about the libc-commits mailing list