[libc-commits] [libc] [libc][math][c23] Implement C23 math function atanpif16 (PR #150400)

via libc-commits libc-commits at lists.llvm.org
Fri Jul 25 02:49:39 PDT 2025


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 HEAD~1 HEAD --extensions cpp,h -- libc/src/math/atanpif16.h libc/src/math/generic/atanpif16.cpp libc/test/src/math/atanpif16_test.cpp libc/test/src/math/smoke/atanpif16_test.cpp libc/utils/MPFRWrapper/MPCommon.cpp libc/utils/MPFRWrapper/MPCommon.h libc/utils/MPFRWrapper/MPFRUtils.cpp libc/utils/MPFRWrapper/MPFRUtils.h
``````````

</details>

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

``````````diff
diff --git a/libc/src/math/atanpif16.h b/libc/src/math/atanpif16.h
index 14dc15001..8f2391a6e 100644
--- a/libc/src/math/atanpif16.h
+++ b/libc/src/math/atanpif16.h
@@ -19,4 +19,3 @@ float16 atanpif16(float16 x);
 } // namespace LIBC_NAMESPACE_DECL
 
 #endif // LLVM_LIBC_SRC_MATH_ASINF16_H
-
diff --git a/libc/test/src/math/smoke/atanpif16_test.cpp b/libc/test/src/math/smoke/atanpif16_test.cpp
index e0f3ce5f5..f1cb1ec4e 100644
--- a/libc/test/src/math/smoke/atanpif16_test.cpp
+++ b/libc/test/src/math/smoke/atanpif16_test.cpp
@@ -29,7 +29,6 @@ TEST_F(LlvmLibcAtanpif16Test, SpecialNumbers) {
   EXPECT_FP_EQ(-0.5f16, LIBC_NAMESPACE::atanpif16(neg_inf));
 }
 
-
 TEST_F(LlvmLibcAtanpif16Test, SymmetryProperty) {
   // Test that atanpi(-x) = -atanpi(x)
   constexpr float16 TEST_VALS[] = {0.1f16,  0.25f16, 0.5f16,   0.75f16,

``````````

</details>


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


More information about the libc-commits mailing list