aboutsummaryrefslogtreecommitdiff
path: root/libc/test/src/math/sqrtl_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libc/test/src/math/sqrtl_test.cpp')
-rw-r--r--libc/test/src/math/sqrtl_test.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/libc/test/src/math/sqrtl_test.cpp b/libc/test/src/math/sqrtl_test.cpp
index 1fab3b2567e5..36b3030355ba 100644
--- a/libc/test/src/math/sqrtl_test.cpp
+++ b/libc/test/src/math/sqrtl_test.cpp
@@ -20,9 +20,7 @@ namespace mpfr = __llvm_libc::testing::mpfr;
constexpr UIntType HiddenBit =
UIntType(1) << __llvm_libc::fputil::MantissaWidth<long double>::value;
-long double nan = FPBits::buildNaN(1);
-long double inf = FPBits::inf();
-long double negInf = FPBits::negInf();
+DECLARE_SPECIAL_CONSTANTS(long double)
TEST(SqrtlTest, SpecialValues) {
ASSERT_FP_EQ(nan, __llvm_libc::sqrtl(nan));