[libc-commits] [libc] [llvm] [libc][math] Refactor scalbln-scalbn-ldexp family to header-only (PR #195423)
via libc-commits
libc-commits at lists.llvm.org
Sat May 2 00:56:15 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 -- libc/shared/math/ldexp.h libc/shared/math/ldexpbf16.h libc/shared/math/ldexpl.h libc/shared/math/scalbln.h libc/shared/math/scalblnbf16.h libc/shared/math/scalblnf.h libc/shared/math/scalblnf128.h libc/shared/math/scalblnf16.h libc/shared/math/scalblnl.h libc/shared/math/scalbn.h libc/shared/math/scalbnbf16.h libc/shared/math/scalbnf.h libc/shared/math/scalbnf128.h libc/shared/math/scalbnf16.h libc/shared/math/scalbnl.h libc/src/__support/math/ldexp.h libc/src/__support/math/ldexpbf16.h libc/src/__support/math/ldexpl.h libc/src/__support/math/scalbln.h libc/src/__support/math/scalblnbf16.h libc/src/__support/math/scalblnf.h libc/src/__support/math/scalblnf128.h libc/src/__support/math/scalblnf16.h libc/src/__support/math/scalblnl.h libc/src/__support/math/scalbn.h libc/src/__support/math/scalbnbf16.h libc/src/__support/math/scalbnf.h libc/src/__support/math/scalbnf128.h libc/src/__support/math/scalbnf16.h libc/src/__support/math/scalbnl.h libc/shared/math.h libc/src/math/generic/ldexp.cpp libc/src/math/generic/ldexpbf16.cpp libc/src/math/generic/ldexpl.cpp libc/src/math/generic/scalbln.cpp libc/src/math/generic/scalblnbf16.cpp libc/src/math/generic/scalblnf.cpp libc/src/math/generic/scalblnf128.cpp libc/src/math/generic/scalblnf16.cpp libc/src/math/generic/scalblnl.cpp libc/src/math/generic/scalbn.cpp libc/src/math/generic/scalbnbf16.cpp libc/src/math/generic/scalbnf.cpp libc/src/math/generic/scalbnf128.cpp libc/src/math/generic/scalbnf16.cpp libc/src/math/generic/scalbnl.cpp libc/test/shared/shared_math_constexpr_test.cpp libc/test/shared/shared_math_test.cpp --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/libc/src/__support/math/scalblnf16.h b/libc/src/__support/math/scalblnf16.h
index f19a21236..fd3350660 100644
--- a/libc/src/__support/math/scalblnf16.h
+++ b/libc/src/__support/math/scalblnf16.h
@@ -13,8 +13,8 @@
#ifdef LIBC_TYPES_HAS_FLOAT16
-#include "src/__support/FPUtil/ManipulationFunctions.h"
#include "hdr/float_macros.h"
+#include "src/__support/FPUtil/ManipulationFunctions.h"
#include "src/__support/macros/config.h"
#if FLT_RADIX != 2
``````````
</details>
https://github.com/llvm/llvm-project/pull/195423
More information about the libc-commits
mailing list