File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -18,13 +18,15 @@ namespace mpfr = LIBC_NAMESPACE::testing::mpfr;
18
18
19
19
TEST_F (LlvmLibcAtan2f128Test, InQuadRange) {
20
20
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 ();
23
24
constexpr StorageType X_STEP = (X_STOP - X_START) / X_COUNT;
24
25
25
26
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 ();
28
30
constexpr StorageType Y_STEP = (Y_STOP - Y_START) / Y_COUNT;
29
31
30
32
auto test = [&](mpfr::RoundingMode rounding_mode) {
You can’t perform that action at this time.
0 commit comments