[libc-commits] [libc] [libc][math][c23] Add dfma{l, f128} and dsub{l, f128} C23 math functions (PR #101089)

via libc-commits libc-commits at lists.llvm.org
Mon Jul 29 14:59:40 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 bfcfb0fd2dea5e06f74e49ff8b4e1dc10c9acf6a f9a65948da97311389f0001348adb312c211a82d --extensions cpp,h -- libc/src/math/dfmaf128.h libc/src/math/dfmal.h libc/src/math/dsubf128.h libc/src/math/dsubl.h libc/src/math/generic/dfmaf128.cpp libc/src/math/generic/dfmal.cpp libc/src/math/generic/dsubf128.cpp libc/src/math/generic/dsubl.cpp libc/test/src/math/dfmaf128_test.cpp libc/test/src/math/dfmal_test.cpp libc/test/src/math/dsubf128_test.cpp libc/test/src/math/dsubl_test.cpp libc/test/src/math/smoke/dfmaf128_test.cpp libc/test/src/math/smoke/dfmal_test.cpp libc/test/src/math/smoke/dsubf128_test.cpp libc/test/src/math/smoke/dsubl_test.cpp
``````````

</details>

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

``````````diff
diff --git a/libc/src/math/generic/dfmaf128.cpp b/libc/src/math/generic/dfmaf128.cpp
index 5bc15df905..36b06e396b 100644
--- a/libc/src/math/generic/dfmaf128.cpp
+++ b/libc/src/math/generic/dfmaf128.cpp
@@ -9,11 +9,10 @@
 #ifndef LLVM_LIBC_SRC_MATH_DFMAf128_H
 #define LLVM_LIBC_SRC_MATH_DFMAf128_H
 
-#include "src/__support/macros/config.h"
 #include "src/math/dfmaf128.h"
-#include "src/__support/macros/properties/types.h"
 #include "src/__support/FPUtil/FMA.h"
-
+#include "src/__support/macros/config.h"
+#include "src/__support/macros/properties/types.h"
 
 namespace LIBC_NAMESPACE_DECL {
 

``````````

</details>


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


More information about the libc-commits mailing list