aboutsummaryrefslogtreecommitdiff
path: root/libc/test/src/math/fminf_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libc/test/src/math/fminf_test.cpp')
-rw-r--r--libc/test/src/math/fminf_test.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/libc/test/src/math/fminf_test.cpp b/libc/test/src/math/fminf_test.cpp
index 20bcdb950291..a40bf021c9b0 100644
--- a/libc/test/src/math/fminf_test.cpp
+++ b/libc/test/src/math/fminf_test.cpp
@@ -14,9 +14,7 @@
using FPBits = __llvm_libc::fputil::FPBits<float>;
-float nan = static_cast<float>(FPBits::buildNaN(1));
-float inf = static_cast<float>(FPBits::inf());
-float negInf = static_cast<float>(FPBits::negInf());
+DECLARE_SPECIAL_CONSTANTS(float)
TEST(FminfTest, NaNArg) {
EXPECT_FP_EQ(inf, __llvm_libc::fminf(nan, inf));