[libc-commits] [libc] [libc][math][c23] Implement `asinpi` for `f32` and `f64` (PR #181475)

via libc-commits libc-commits at lists.llvm.org
Sat Feb 14 05:10:43 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/asinpi.h libc/shared/math/asinpif.h libc/shared/math/asinpif16.h libc/src/__support/math/asinpi.h libc/src/__support/math/asinpif.h libc/src/__support/math/asinpif16.h libc/src/math/asinpi.h libc/src/math/asinpif.h libc/src/math/generic/asinpi.cpp libc/src/math/generic/asinpif.cpp libc/test/src/math/asinpi_test.cpp libc/test/src/math/asinpif_test.cpp libc/test/src/math/smoke/asinpi_test.cpp libc/test/src/math/smoke/asinpif_test.cpp libc/shared/math.h libc/src/math/generic/asinpif16.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/asinpi.h b/libc/src/__support/math/asinpi.h
index eed63eadc..209d32da4 100644
--- a/libc/src/__support/math/asinpi.h
+++ b/libc/src/__support/math/asinpi.h
@@ -44,16 +44,16 @@ namespace math {
 // 0.00310721681820837*x**19 + 0.00267072683660291*x**21 +
 // 0.00232764927854127*x**23 + O(x**25)
 static constexpr double ASINPI_POLY_COEFFS[] = {
-    0x1.45f306dc9c889p-2,  // 0.318309886183791 x^1
-    0x1.b2995e7b7b5fdp-5,  // 0.053051647697298 x^3
-    0x1.8723a1d588a36p-6,  // 0.023873241463784 x^5
-    0x1.d1a452f20430dp-7,  // 0.014210262776062 x^7
-    0x1.3ce52a3a09f61p-7,  // 0.009670873278153 x^9
-    0x1.d2b33e303d375p-8,  // 0.007121279413913 x^11
-    0x1.69fde663c674fp-8,  // 0.005523556468484 x^13
-    0x1.235134885f19bp-8,  // 0.004445147824637 x^15
-    0x1.e1f567da15ce2p-9,  // 0.003677052428468 x^17
-    0x1.9744e53b4851bp-9,  // 0.003107216818208 x^19
+    0x1.45f306dc9c889p-2, // 0.318309886183791 x^1
+    0x1.b2995e7b7b5fdp-5, // 0.053051647697298 x^3
+    0x1.8723a1d588a36p-6, // 0.023873241463784 x^5
+    0x1.d1a452f20430dp-7, // 0.014210262776062 x^7
+    0x1.3ce52a3a09f61p-7, // 0.009670873278153 x^9
+    0x1.d2b33e303d375p-8, // 0.007121279413913 x^11
+    0x1.69fde663c674fp-8, // 0.005523556468484 x^13
+    0x1.235134885f19bp-8, // 0.004445147824637 x^15
+    0x1.e1f567da15ce2p-9, // 0.003677052428468 x^17
+    0x1.9744e53b4851bp-9, // 0.003107216818208 x^19
     0x1.5e0eb8d6eaa8p-9,  // 0.002670726836603 x^21
     0x1.3116f30e47f56p-9, // 0.002327649278541 x^23
 };

``````````

</details>


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


More information about the libc-commits mailing list