[libc-commits] [libc] [llvm] [libc][math] Refactor fsqrt to Header Only (PR #175444)
via libc-commits
libc-commits at lists.llvm.org
Sun Jan 11 08:49:52 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 cpp,h -- libc/shared/math/fsqrt.h libc/src/__support/math/fsqrt.h libc/shared/math.h libc/src/math/generic/fsqrt.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 8fcd8ef98..05c901e39 100644
--- a/libc/shared/math.h
+++ b/libc/shared/math.h
@@ -60,12 +60,12 @@
#include "math/frexpf.h"
#include "math/frexpf128.h"
#include "math/frexpf16.h"
+#include "math/fsqrt.h"
#include "math/ldexpf.h"
#include "math/ldexpf128.h"
#include "math/ldexpf16.h"
#include "math/rsqrtf.h"
#include "math/rsqrtf16.h"
#include "math/sin.h"
-#include "math/fsqrt.h"
#endif // LLVM_LIBC_SHARED_MATH_H
``````````
</details>
https://github.com/llvm/llvm-project/pull/175444
More information about the libc-commits
mailing list