aboutsummaryrefslogtreecommitdiff
path: root/libc/test/src/math/floorl_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libc/test/src/math/floorl_test.cpp')
-rw-r--r--libc/test/src/math/floorl_test.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/libc/test/src/math/floorl_test.cpp b/libc/test/src/math/floorl_test.cpp
index c6aea659635c..9f70cadc25db 100644
--- a/libc/test/src/math/floorl_test.cpp
+++ b/libc/test/src/math/floorl_test.cpp
@@ -15,13 +15,9 @@
using FPBits = __llvm_libc::fputil::FPBits<long double>;
-namespace mpfr = __llvm_libc::testing::mpfr;
+DECLARE_SPECIAL_CONSTANTS(long double)
-static const long double zero = FPBits::zero();
-static const long double negZero = FPBits::negZero();
-static const long double nan = FPBits::buildNaN(1);
-static const long double inf = FPBits::inf();
-static const long double negInf = FPBits::negInf();
+namespace mpfr = __llvm_libc::testing::mpfr;
TEST(FloorlTest, SpecialNumbers) {
EXPECT_FP_EQ(zero, __llvm_libc::floorl(zero));