[libc-commits] [libc] [llvm] [libc][math] Refactor sinpif16 to header only. (PR #178503)
via libc-commits
libc-commits at lists.llvm.org
Sun Feb 8 08:02:41 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/sinpif16.h libc/src/__support/math/sinpif16.h libc/shared/math.h libc/src/math/generic/sinpif16.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 61b93e7c1..c14cdd107 100644
--- a/libc/shared/math.h
+++ b/libc/shared/math.h
@@ -103,10 +103,10 @@
#include "math/sinhf.h"
#include "math/sinhf16.h"
#include "math/sinpif.h"
+#include "math/sinpif16.h"
#include "math/sqrt.h"
#include "math/sqrtf.h"
#include "math/sqrtf128.h"
-#include "math/sinpif16.h"
#include "math/sqrtf16.h"
#include "math/tan.h"
#include "math/tanf.h"
diff --git a/libc/src/math/generic/sinpif16.cpp b/libc/src/math/generic/sinpif16.cpp
index 31a9ba45d..e7051beb3 100644
--- a/libc/src/math/generic/sinpif16.cpp
+++ b/libc/src/math/generic/sinpif16.cpp
@@ -11,8 +11,6 @@
namespace LIBC_NAMESPACE_DECL {
-LLVM_LIBC_FUNCTION(float16, sinpif16, (float16 x)) {
- return math::sinpif16(x);
-}
+LLVM_LIBC_FUNCTION(float16, sinpif16, (float16 x)) { return math::sinpif16(x); }
} // namespace LIBC_NAMESPACE_DECL
``````````
</details>
https://github.com/llvm/llvm-project/pull/178503
More information about the libc-commits
mailing list