[libc-commits] [libc] [libc][math] Implement double-precision sinh (PR #199956)

via libc-commits libc-commits at lists.llvm.org
Wed May 27 04:08:41 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/sinh.h libc/src/math/generic/sinh.cpp libc/test/src/math/sinh_test.cpp libc/test/src/math/smoke/sinh_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/sinh_test.cpp b/libc/test/src/math/sinh_test.cpp
index aacf23860..6a491c886 100644
--- a/libc/test/src/math/sinh_test.cpp
+++ b/libc/test/src/math/sinh_test.cpp
@@ -69,9 +69,8 @@ TEST_F(LlvmLibcSinhTest, InDoubleRange) {
       if (!TEST_MPFR_MATCH_ROUNDING_SILENTLY(mpfr::Operation::Sinh, neg_x,
                                              neg_result, 0.5, rounding_mode)) {
         ++fails;
-        while (!TEST_MPFR_MATCH_ROUNDING_SILENTLY(mpfr::Operation::Sinh, neg_x,
-                                                  neg_result, tol,
-                                                  rounding_mode)) {
+        while (!TEST_MPFR_MATCH_ROUNDING_SILENTLY(
+            mpfr::Operation::Sinh, 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/199956


More information about the libc-commits mailing list