[libc-commits] [libc] [libc] Remove specific nan payload in math functions (PR #79133)
via libc-commits
libc-commits at lists.llvm.org
Tue Jan 23 05:24:34 PST 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 6b02d2f86389d68a0cf2162377c5dda05bd4b68a 7188fa90f13636fe092c8d5b0d47c02511a9c5cf -- libc/src/__support/FPUtil/DivisionAndRemainderOperations.h libc/src/__support/FPUtil/generic/sqrt.h libc/src/__support/FPUtil/generic/sqrt_80_bit_long_double.h libc/test/UnitTest/FPMatcher.h libc/test/src/__support/FPUtil/fpbits_test.cpp libc/test/src/math/FDimTest.h libc/test/src/math/FmaTest.h libc/test/src/math/HypotTest.h libc/test/src/math/ILogbTest.h libc/test/src/math/LdExpTest.h libc/test/src/math/NextAfterTest.h libc/test/src/math/RIntTest.h libc/test/src/math/RemQuoTest.h libc/test/src/math/RoundToIntegerTest.h libc/test/src/math/smoke/FDimTest.h libc/test/src/math/smoke/FmaTest.h libc/test/src/math/smoke/HypotTest.h libc/test/src/math/smoke/ILogbTest.h libc/test/src/math/smoke/LdExpTest.h libc/test/src/math/smoke/NextAfterTest.h libc/test/src/math/smoke/NextTowardTest.h libc/test/src/math/smoke/RIntTest.h libc/test/src/math/smoke/RemQuoTest.h libc/test/src/math/smoke/RoundToIntegerTest.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/libc/test/UnitTest/FPMatcher.h b/libc/test/UnitTest/FPMatcher.h
index 49ea2ccec6..ad2fc0439f 100644
--- a/libc/test/UnitTest/FPMatcher.h
+++ b/libc/test/UnitTest/FPMatcher.h
@@ -97,7 +97,7 @@ template <typename T> struct FPTest : public Test {
LIBC_NAMESPACE::cpp::numeric_limits<StorageType>::max(); \
const T zero = T(FPBits::zero(Sign::POS)); \
const T neg_zero = T(FPBits::zero(Sign::NEG)); \
- const T aNaN = T(FPBits::build_quiet_nan()); \
+ const T aNaN = T(FPBits::build_quiet_nan()); \
const T sNaN = T(FPBits::build_nan(Sign::POS, 1)); \
const T inf = T(FPBits::inf(Sign::POS)); \
const T neg_inf = T(FPBits::inf(Sign::NEG)); \
``````````
</details>
https://github.com/llvm/llvm-project/pull/79133
More information about the libc-commits
mailing list