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