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 04edcc0 commit 0c8466cCopy full SHA for 0c8466c
libc/test/src/math/LdExpTest.h
@@ -131,11 +131,11 @@ class LdExpTestTemplate : public __llvm_libc::testing::Test {
131
// The result should not be infinity.
132
x = NormalFloat(-FPBits::exponentBias + 1, NormalFloat::one >> 10, 0);
133
exp = FPBits::maxExponent + 5;
134
- ASSERT_EQ(isinf(func(x, exp)), 0);
+ ASSERT_FALSE(FPBits(func(x, exp)).isInf());
135
// But if the exp is large enough to oversome than the normalization shift,
136
// then it should result in infinity.
137
exp = FPBits::maxExponent + 15;
138
- ASSERT_NE(isinf(func(x, exp)), 0);
+ ASSERT_FP_EQ(func(x, exp), inf);
139
}
140
};
141
0 commit comments