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 f781f75 commit c91d831Copy full SHA for c91d831
libc/test/UnitTest/FPMatcher.h
@@ -271,7 +271,7 @@ struct ModifyMXCSR {
271
expected) \
272
.match(actual)
273
274
-#define EXPECT_FP_IS_NAN(actual) EXPECT_TRUE(FPBits(actual).is_nan())
+#define EXPECT_FP_IS_NAN(actual) EXPECT_TRUE((actual) != (actual))
275
276
#define ASSERT_FP_EQ(expected, actual) \
277
ASSERT_THAT(actual, LIBC_NAMESPACE::testing::getMatcher< \
0 commit comments