We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 253d691 commit 4fd762cCopy full SHA for 4fd762c
libc/test/src/math/smoke/sqrtf128_test.cpp
@@ -129,8 +129,8 @@ TEST_F(LlvmLibcSqrtTest, HardToRound) {
129
// Then from the largest number.
130
uint64_t k0 = 101904826760412362ULL;
131
for (uint64_t k = k0; k > k0 - 10000; --k) {
132
- UInt128 k2 = static_cast<UInt128>(k) * static_cast<UInt128>(k);
133
- float128 x = static_cast<float128>(k2);
+ float128 k_f128 = static_cast<float128>(k);
+ float128 x = k_f128 * k_f128;
134
float128 y = static_cast<float128>(k);
135
EXPECT_FP_EQ_ALL_ROUNDING(y, LIBC_NAMESPACE::sqrtf128(x));
136
}
0 commit comments