[libc-commits] [libc] [libc][math][c23] Fix setpayloadsig smoke test on RV32 (PR #102538)
via libc-commits
libc-commits at lists.llvm.org
Thu Aug 8 17:21:34 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 a262ac0c680b8907617d30b5d53f438e75e7ce13 791859458cfbe40cc90e58893011cb827932fa8e --extensions h -- libc/test/src/math/smoke/SetPayloadSigTest.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/libc/test/src/math/smoke/SetPayloadSigTest.h b/libc/test/src/math/smoke/SetPayloadSigTest.h
index 65eb653cb9..60913c60b4 100644
--- a/libc/test/src/math/smoke/SetPayloadSigTest.h
+++ b/libc/test/src/math/smoke/SetPayloadSigTest.h
@@ -40,7 +40,7 @@ public:
default_snan_payload_bits.set_biased_exponent(FPBits::FRACTION_LEN - 1 +
FPBits::EXP_BIAS);
T default_snan_payload = default_snan_payload_bits.get_val();
-
+
EXPECT_EQ(1, func(&res, default_snan_payload));
}
@@ -61,7 +61,7 @@ public:
EXPECT_TRUE(FPBits(res).is_signaling_nan());
EXPECT_EQ(FPBits::signaling_nan(Sign::POS, 0x123).uintval(),
FPBits(res).uintval());
-
+
FPBits nan_payload_bits = FPBits::one();
nan_payload_bits.set_biased_exponent(FPBits::FRACTION_LEN - 2 +
FPBits::EXP_BIAS);
``````````
</details>
https://github.com/llvm/llvm-project/pull/102538
More information about the libc-commits
mailing list