[libc-commits] [libc] [llvm] [libc][math][c23] implement `asinpif` function (PR #181511)
via libc-commits
libc-commits at lists.llvm.org
Sat Feb 14 15:01:06 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/asinpif.h libc/src/__support/math/asinpif.h libc/src/math/asinpif.h libc/src/math/generic/asinpif.cpp libc/test/src/math/asinpif_test.cpp libc/test/src/math/exhaustive/asinpif_test.cpp libc/test/src/math/smoke/asinpif_test.cpp libc/shared/math.h 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/test/src/math/exhaustive/asinpif_test.cpp b/libc/test/src/math/exhaustive/asinpif_test.cpp
index 410597dcd..2e7cb3f80 100644
--- a/libc/test/src/math/exhaustive/asinpif_test.cpp
+++ b/libc/test/src/math/exhaustive/asinpif_test.cpp
@@ -1,4 +1,5 @@
-//===-- Exhaustive test for asinpif -----------------------------------------===//
+//===-- Exhaustive test for asinpif
+//-----------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
diff --git a/libc/test/src/math/smoke/asinpif_test.cpp b/libc/test/src/math/smoke/asinpif_test.cpp
index 6f270a4fa..87ea7259f 100644
--- a/libc/test/src/math/smoke/asinpif_test.cpp
+++ b/libc/test/src/math/smoke/asinpif_test.cpp
@@ -30,7 +30,7 @@ TEST_F(LlvmLibcAsinpifTest, SpecialNumbers) {
EXPECT_FP_EQ_ALL_ROUNDING(-0.0f, LIBC_NAMESPACE::asinpif(-0.0f));
EXPECT_MATH_ERRNO(0);
-EXPECT_FP_EQ_ALL_ROUNDING(aNaN, LIBC_NAMESPACE::asinpif(inf));
+ EXPECT_FP_EQ_ALL_ROUNDING(aNaN, LIBC_NAMESPACE::asinpif(inf));
EXPECT_MATH_ERRNO(EDOM);
EXPECT_FP_EQ_ALL_ROUNDING(aNaN, LIBC_NAMESPACE::asinpif(neg_inf));
``````````
</details>
https://github.com/llvm/llvm-project/pull/181511
More information about the libc-commits
mailing list