[libc-commits] [libc] [libc][math][c23] Add hypotf16() function (PR #131991)
via libc-commits
libc-commits at lists.llvm.org
Wed Mar 19 22:49:09 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 4ad0aa73b7d1ee36c1b1e06ac585798992075102 67d93c8c1ae2232666839380983a5accb75f2bd0 --extensions h,cpp -- libc/src/math/generic/hypotf16.cpp libc/src/math/hypotf16.h libc/test/src/math/exhaustive/hypotf16_test.cpp libc/test/src/math/hypotf16_test.cpp libc/test/src/math/smoke/hypotf16_test.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/libc/test/src/math/exhaustive/hypotf16_test.cpp b/libc/test/src/math/exhaustive/hypotf16_test.cpp
index c552ce9734..328c0da78f 100644
--- a/libc/test/src/math/exhaustive/hypotf16_test.cpp
+++ b/libc/test/src/math/exhaustive/hypotf16_test.cpp
@@ -24,7 +24,8 @@
// using FPBits = LIBC_NAMESPACE::fputil::FPBits<float16>;
// using StorageType = typename FPBits::StorageType;
//
-// uint64_t check(uint16_t start, uint16_t stop, mpfr::RoundingMode rounding) {
+// uint64_t check(uint16_t start, uint16_t stop, mpfr::RoundingMode rounding)
+// {
// mpfr::ForceRoundingMode r(rounding);
// if (!r.success)
// return true;
@@ -40,7 +41,8 @@
// // Using MPFR will be much slower.
// // mpfr::BinaryInput<float16> input{x, y};
// // bool correct = TEST_MPFR_MATCH_ROUNDING_SILENTLY(
-// // mpfr::Operation::Hypot, input, LIBC_NAMESPACE::hypotf16(x, y), 0.5,
+// // mpfr::Operation::Hypot, input, LIBC_NAMESPACE::hypotf16(x, y),
+// 0.5,
// // rounding);
// failed += (!correct);
// } while (ybits++ < STOP);
``````````
</details>
https://github.com/llvm/llvm-project/pull/131991
More information about the libc-commits
mailing list