[libc-commits] [compiler-rt] [libc] [llvm] [Compiler-rt][builtins] introduce libc math routines (PR #197950)

via libc-commits libc-commits at lists.llvm.org
Fri May 22 11:05:56 PDT 2026


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 origin/main HEAD --extensions h,cpp -- compiler-rt/lib/builtins/adddf3.cpp compiler-rt/lib/builtins/addtf3.cpp compiler-rt/lib/builtins/fp_libc_config.h libc/shared/builtins.h libc/shared/builtins/adddf3.h libc/shared/builtins/addtf3.h libc/src/__support/builtins/adddf3.h libc/src/__support/builtins/addtf3.h libc/src/__support/FPUtil/dyadic_float.h --diff_from_common_commit
``````````

:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:

</details>

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

``````````diff
diff --git a/compiler-rt/lib/builtins/adddf3.cpp b/compiler-rt/lib/builtins/adddf3.cpp
index 7fd6a722b..cbc125fcc 100644
--- a/compiler-rt/lib/builtins/adddf3.cpp
+++ b/compiler-rt/lib/builtins/adddf3.cpp
@@ -10,9 +10,9 @@
 //
 //===----------------------------------------------------------------------===//
 
+#include "shared/builtins/adddf3.h"
 #include "fp_libc_config.h"
 #include "int_lib.h"
-#include "shared/builtins/adddf3.h"
 
 extern "C" COMPILER_RT_ABI double __adddf3(double a, double b) {
   return LIBC_NAMESPACE::shared::adddf3(a, b);

``````````

</details>


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


More information about the libc-commits mailing list