Skip to content

Commit 65ad626

Browse files
authored
[libc] Fix atan2f128 test for aarch64. (#133924)
1 parent a8a33ba commit 65ad626

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

libc/test/src/math/atan2f128_test.cpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,15 @@ namespace mpfr = LIBC_NAMESPACE::testing::mpfr;
1818

1919
TEST_F(LlvmLibcAtan2f128Test, InQuadRange) {
2020
constexpr StorageType X_COUNT = 123;
21-
constexpr StorageType X_START = FPBits(0.25q).uintval();
22-
constexpr StorageType X_STOP = FPBits(4.0q).uintval();
21+
constexpr StorageType X_START =
22+
FPBits(static_cast<float128>(0.25q)).uintval();
23+
constexpr StorageType X_STOP = FPBits(static_cast<float128>(4.0q)).uintval();
2324
constexpr StorageType X_STEP = (X_STOP - X_START) / X_COUNT;
2425

2526
constexpr StorageType Y_COUNT = 137;
26-
constexpr StorageType Y_START = FPBits(0.25q).uintval();
27-
constexpr StorageType Y_STOP = FPBits(4.0q).uintval();
27+
constexpr StorageType Y_START =
28+
FPBits(static_cast<float128>(0.25q)).uintval();
29+
constexpr StorageType Y_STOP = FPBits(static_cast<float128>(4.0q)).uintval();
2830
constexpr StorageType Y_STEP = (Y_STOP - Y_START) / Y_COUNT;
2931

3032
auto test = [&](mpfr::RoundingMode rounding_mode) {

0 commit comments

Comments
 (0)