[libc-commits] [libc] [llvm] [libc][math] Refactor logb implementation to header-only (PR #175719)

via libc-commits libc-commits at lists.llvm.org
Fri Feb 13 22:07:17 PST 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/logb.h libc/src/__support/math/logb.h libc/shared/math.h libc/src/math/generic/logb.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/shared/math.h b/libc/shared/math.h
index eee680d54..1e6d867a8 100644
--- a/libc/shared/math.h
+++ b/libc/shared/math.h
@@ -94,9 +94,9 @@
 #include "math/log1p.h"
 #include "math/log1pf.h"
 #include "math/log2.h"
-#include "math/logb.h"
 #include "math/log2f.h"
 #include "math/log2f16.h"
+#include "math/logb.h"
 #include "math/logbf.h"
 #include "math/logbf128.h"
 #include "math/logbf16.h"

``````````

</details>


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


More information about the libc-commits mailing list