[libc-commits] [libc] [libc][math] Implement double-precision asinh (PR #199957)
via libc-commits
libc-commits at lists.llvm.org
Wed May 27 04:09:30 PDT 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/src/__support/math/asinh.h libc/src/math/generic/asinh.cpp libc/test/src/math/asinh_test.cpp libc/test/src/math/smoke/asinh_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/asinh_test.cpp b/libc/test/src/math/asinh_test.cpp
index 97a075ff8..3fddefafb 100644
--- a/libc/test/src/math/asinh_test.cpp
+++ b/libc/test/src/math/asinh_test.cpp
@@ -66,9 +66,8 @@ TEST_F(LlvmLibcAsinhTest, InDoubleRange) {
if (!TEST_MPFR_MATCH_ROUNDING_SILENTLY(mpfr::Operation::Asinh, neg_x,
neg_result, 0.5, rounding_mode)) {
++fails;
- while (!TEST_MPFR_MATCH_ROUNDING_SILENTLY(mpfr::Operation::Asinh,
- neg_x, neg_result, tol,
- rounding_mode)) {
+ while (!TEST_MPFR_MATCH_ROUNDING_SILENTLY(
+ mpfr::Operation::Asinh, neg_x, neg_result, tol, rounding_mode)) {
mx = neg_x;
mr = neg_result;
if (tol > 1000.0)
``````````
</details>
https://github.com/llvm/llvm-project/pull/199957
More information about the libc-commits
mailing list