[libc-commits] [libc] [libc][math] Adds entrypoint and tests for nearbyintf128, scalbnf128 (PR #88443)
via libc-commits
libc-commits at lists.llvm.org
Thu Apr 11 14:39:33 PDT 2024
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 a9d4ddd98a0bc495126027122fdca751b6841ceb 4edc439f287648af221adef0778a9fe6f71c3952 -- libc/src/math/generic/nearbyintf128.cpp libc/src/math/generic/scalbnf128.cpp libc/src/math/nearbyintf128.h libc/src/math/scalbnf128.h libc/test/src/math/NearbyIntTest.h libc/test/src/math/nearbyint_test.cpp libc/test/src/math/nearbyintf128_test.cpp libc/test/src/math/nearbyintf_test.cpp libc/test/src/math/nearbyintl_test.cpp libc/test/src/math/scalbnf128_test.cpp libc/test/src/math/smoke/scalbnf128_test.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/libc/test/src/math/NearbyIntTest.h b/libc/test/src/math/NearbyIntTest.h
index 497d8d8dd4..6ab05982d5 100644
--- a/libc/test/src/math/NearbyIntTest.h
+++ b/libc/test/src/math/NearbyIntTest.h
@@ -26,9 +26,7 @@ class NearbyIntTestTemplate : public LIBC_NAMESPACE::testing::Test {
public:
typedef T (*NearbyIntFunc)(T);
- void testNaN(NearbyIntFunc func) {
- ASSERT_FP_EQ(func(aNaN), aNaN);
- }
+ void testNaN(NearbyIntFunc func) { ASSERT_FP_EQ(func(aNaN), aNaN); }
void testInfinities(NearbyIntFunc func) {
ASSERT_FP_EQ(func(inf), inf);
``````````
</details>
https://github.com/llvm/llvm-project/pull/88443
More information about the libc-commits
mailing list