diff options
Diffstat (limited to 'libc/test/src/math/ILogbTest.h')
-rw-r--r-- | libc/test/src/math/ILogbTest.h | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/libc/test/src/math/ILogbTest.h b/libc/test/src/math/ILogbTest.h index 6ad5eb0..e51a5d7 100644 --- a/libc/test/src/math/ILogbTest.h +++ b/libc/test/src/math/ILogbTest.h @@ -16,7 +16,7 @@ #include <limits.h> -class LlvmLibcILogbTest : public __llvm_libc::testing::Test { +class LlvmLibcILogbTest : public LIBC_NAMESPACE::testing::Test { public: template <typename T> struct ILogbFunc { typedef int (*Func)(T); @@ -24,14 +24,15 @@ public: template <typename T> void test_special_numbers(typename ILogbFunc<T>::Func func) { - EXPECT_EQ(FP_ILOGB0, func(T(__llvm_libc::fputil::FPBits<T>::zero()))); - EXPECT_EQ(FP_ILOGB0, func(T(__llvm_libc::fputil::FPBits<T>::neg_zero()))); + EXPECT_EQ(FP_ILOGB0, func(T(LIBC_NAMESPACE::fputil::FPBits<T>::zero()))); + EXPECT_EQ(FP_ILOGB0, + func(T(LIBC_NAMESPACE::fputil::FPBits<T>::neg_zero()))); EXPECT_EQ(FP_ILOGBNAN, - func(T(__llvm_libc::fputil::FPBits<T>::build_quiet_nan(1)))); + func(T(LIBC_NAMESPACE::fputil::FPBits<T>::build_quiet_nan(1)))); - EXPECT_EQ(INT_MAX, func(T(__llvm_libc::fputil::FPBits<T>::inf()))); - EXPECT_EQ(INT_MAX, func(T(__llvm_libc::fputil::FPBits<T>::neg_inf()))); + EXPECT_EQ(INT_MAX, func(T(LIBC_NAMESPACE::fputil::FPBits<T>::inf()))); + EXPECT_EQ(INT_MAX, func(T(LIBC_NAMESPACE::fputil::FPBits<T>::neg_inf()))); } template <typename T> @@ -75,7 +76,7 @@ public: template <typename T> void test_subnormal_range(typename ILogbFunc<T>::Func func) { - using FPBits = __llvm_libc::fputil::FPBits<T>; + using FPBits = LIBC_NAMESPACE::fputil::FPBits<T>; using UIntType = typename FPBits::UIntType; constexpr UIntType COUNT = 10'001; constexpr UIntType STEP = @@ -88,14 +89,14 @@ public: continue; int exponent; - __llvm_libc::fputil::frexp(x, exponent); + LIBC_NAMESPACE::fputil::frexp(x, exponent); ASSERT_EQ(exponent, func(x) + 1); } } template <typename T> void test_normal_range(typename ILogbFunc<T>::Func func) { - using FPBits = __llvm_libc::fputil::FPBits<T>; + using FPBits = LIBC_NAMESPACE::fputil::FPBits<T>; using UIntType = typename FPBits::UIntType; constexpr UIntType COUNT = 10'001; constexpr UIntType STEP = @@ -106,7 +107,7 @@ public: continue; int exponent; - __llvm_libc::fputil::frexp(x, exponent); + LIBC_NAMESPACE::fputil::frexp(x, exponent); ASSERT_EQ(exponent, func(x) + 1); } } |