/dports/devel/llvm-cheri/llvm-project-37c49ff00e3eadce5d8703fdc4497f28458c64a8/libc/test/src/math/ |
H A D | ceill_test.cpp | 15 using FPBits = __llvm_libc::fputil::FPBits<long double>; typedef 23 ASSERT_TRUE(FPBits::zero() == __llvm_libc::ceill(FPBits::zero())); in TEST() 24 ASSERT_TRUE(FPBits::negZero() == __llvm_libc::ceill(FPBits::negZero())); in TEST() 26 ASSERT_TRUE(FPBits::inf() == __llvm_libc::ceill(FPBits::inf())); in TEST() 27 ASSERT_TRUE(FPBits::negInf() == __llvm_libc::ceill(FPBits::negInf())); in TEST() 29 long double nan = FPBits::buildNaN(1); in TEST() 35 ASSERT_TRUE(FPBits(1.0l) == __llvm_libc::ceill(1.0l)); in TEST() 44 ASSERT_TRUE(FPBits(2.0l) == __llvm_libc::ceill(1.3l)); in TEST() 46 ASSERT_TRUE(FPBits(2.0l) == __llvm_libc::ceill(1.5l)); in TEST() 61 using UIntType = FPBits::UIntType; in TEST() [all …]
|
H A D | floorl_test.cpp | 15 using FPBits = __llvm_libc::fputil::FPBits<long double>; typedef 23 ASSERT_TRUE(FPBits::zero() == __llvm_libc::floorl(FPBits::zero())); in TEST() 24 ASSERT_TRUE(FPBits::negZero() == __llvm_libc::floorl(FPBits::negZero())); in TEST() 26 ASSERT_TRUE(FPBits::inf() == __llvm_libc::floorl(FPBits::inf())); in TEST() 27 ASSERT_TRUE(FPBits::negInf() == __llvm_libc::floorl(FPBits::negInf())); in TEST() 29 long double nan = FPBits::buildNaN(1); in TEST() 35 ASSERT_TRUE(FPBits(1.0l) == __llvm_libc::floorl(1.0l)); in TEST() 44 ASSERT_TRUE(FPBits(1.0l) == __llvm_libc::floorl(1.3l)); in TEST() 46 ASSERT_TRUE(FPBits(1.0l) == __llvm_libc::floorl(1.5l)); in TEST() 61 using UIntType = FPBits::UIntType; in TEST() [all …]
|
H A D | roundl_test.cpp | 15 using FPBits = __llvm_libc::fputil::FPBits<long double>; typedef 23 ASSERT_TRUE(FPBits::zero() == __llvm_libc::roundl(FPBits::zero())); in TEST() 24 ASSERT_TRUE(FPBits::negZero() == __llvm_libc::roundl(FPBits::negZero())); in TEST() 26 ASSERT_TRUE(FPBits::inf() == __llvm_libc::roundl(FPBits::inf())); in TEST() 27 ASSERT_TRUE(FPBits::negInf() == __llvm_libc::roundl(FPBits::negInf())); in TEST() 29 long double nan = FPBits::buildNaN(1); in TEST() 35 ASSERT_TRUE(FPBits(1.0l) == __llvm_libc::roundl(1.0l)); in TEST() 44 ASSERT_TRUE(FPBits(1.0l) == __llvm_libc::roundl(1.3l)); in TEST() 46 ASSERT_TRUE(FPBits(2.0l) == __llvm_libc::roundl(1.5l)); in TEST() 61 using UIntType = FPBits::UIntType; in TEST() [all …]
|
H A D | truncl_test.cpp | 15 using FPBits = __llvm_libc::fputil::FPBits<long double>; typedef 24 ASSERT_TRUE(FPBits::zero() == __llvm_libc::truncl(FPBits::zero())); in TEST() 25 ASSERT_TRUE(FPBits::negZero() == __llvm_libc::truncl(FPBits::negZero())); in TEST() 27 ASSERT_TRUE(FPBits::inf() == __llvm_libc::truncl(FPBits::inf())); in TEST() 28 ASSERT_TRUE(FPBits::negInf() == __llvm_libc::truncl(FPBits::negInf())); in TEST() 30 long double nan = FPBits::buildNaN(1); in TEST() 36 ASSERT_TRUE(FPBits(1.0l) == __llvm_libc::truncl(1.0l)); in TEST() 37 ASSERT_TRUE(FPBits(-1.0l) == __llvm_libc::truncl(-1.0l)); in TEST() 45 ASSERT_TRUE(FPBits(1.0l) == __llvm_libc::truncl(1.5l)); in TEST() 54 using UIntType = FPBits::UIntType; in TEST() [all …]
|
H A D | modfl_test.cpp | 16 using FPBits = __llvm_libc::fputil::FPBits<long double>; typedef 21 EXPECT_TRUE(FPBits::zero() == __llvm_libc::modfl(FPBits::inf(), &integral)); in TEST() 22 EXPECT_TRUE(FPBits::inf() == integral); in TEST() 24 EXPECT_TRUE(FPBits::negZero() == in TEST() 25 __llvm_libc::modfl(FPBits::negInf(), &integral)); in TEST() 26 EXPECT_TRUE(FPBits::negInf() == integral); in TEST() 28 EXPECT_TRUE(FPBits::zero() == __llvm_libc::modfl(FPBits::zero(), &integral)); in TEST() 31 EXPECT_TRUE(FPBits::negZero() == in TEST() 36 FPBits(__llvm_libc::modfl(FPBits::buildNaN(1), &integral)).isNaN()); in TEST() 84 using UIntType = FPBits::UIntType; in TEST() [all …]
|
H A D | copysignl_test.cpp | 15 using FPBits = __llvm_libc::fputil::FPBits<long double>; typedef 18 EXPECT_TRUE(FPBits::negZero() == in TEST() 19 __llvm_libc::copysignl(FPBits::zero(), -1.0l)); in TEST() 20 EXPECT_TRUE(FPBits::zero() == in TEST() 21 __llvm_libc::copysignl(FPBits::negZero(), 1.0l)); in TEST() 23 EXPECT_TRUE(FPBits::negZero() == in TEST() 24 __llvm_libc::copysignl(FPBits::zero(), -1.0l)); in TEST() 25 EXPECT_TRUE(FPBits::zero() == in TEST() 29 FPBits(__llvm_libc::copysignl(FPBits::buildNaN(1), -1.0l)).isNaN()); in TEST() 33 using UIntType = FPBits::UIntType; in TEST() [all …]
|
/dports/devel/llvm12/llvm-project-12.0.1.src/libc/test/src/math/ |
H A D | FmaTest.h | 24 using FPBits = __llvm_libc::fputil::FPBits<T>; variable 53 EXPECT_FP_EQ(func(T(0.5), FPBits(FPBits::minSubnormal), in testSpecialNumbers() 54 FPBits(FPBits::minSubnormal)), in testSpecialNumbers() 57 FPBits v(FPBits::minNormal + UIntType(1)); in testSpecialNumbers() 59 func(T(1) / T(FPBits::minNormal << 1), v, FPBits(FPBits::minNormal)), in testSpecialNumbers() 62 FPBits z(FPBits::maxNormal); in testSpecialNumbers() 69 (FPBits::maxSubnormal - FPBits::minSubnormal) / count; in testSubnormalRange() 73 T x = FPBits(getRandomBitPattern()), y = FPBits(v), z = FPBits(w); in testSubnormalRange() 83 for (UIntType v = FPBits::minNormal, w = FPBits::maxNormal; in testNormalRange() 84 v <= FPBits::maxNormal && w >= FPBits::minNormal; in testNormalRange() [all …]
|
H A D | HypotTest.h | 26 using FPBits = __llvm_libc::fputil::FPBits<T>; variable 27 using UIntType = typename FPBits::UIntType; 29 const T inf = __llvm_libc::fputil::FPBits<T>::inf(); 51 (FPBits::maxSubnormal - FPBits::minSubnormal) / count; in testSubnormalRange() 52 for (UIntType v = FPBits::minSubnormal, w = FPBits::maxSubnormal; in testSubnormalRange() 53 v <= FPBits::maxSubnormal && w >= FPBits::minSubnormal; in testSubnormalRange() 55 T x = FPBits(v), y = FPBits(w); in testSubnormalRange() 64 constexpr UIntType step = (FPBits::maxNormal - FPBits::minNormal) / count; in testNormalRange() 65 for (UIntType v = FPBits::minNormal, w = FPBits::maxNormal; in testNormalRange() 66 v <= FPBits::maxNormal && w >= FPBits::minNormal; in testNormalRange() [all …]
|
H A D | modfl_test.cpp | 16 using FPBits = __llvm_libc::fputil::FPBits<long double>; typedef 21 EXPECT_TRUE(FPBits::zero() == __llvm_libc::modfl(FPBits::inf(), &integral)); in TEST() 22 EXPECT_TRUE(FPBits::inf() == integral); in TEST() 24 EXPECT_TRUE(FPBits::negZero() == in TEST() 25 __llvm_libc::modfl(FPBits::negInf(), &integral)); in TEST() 26 EXPECT_TRUE(FPBits::negInf() == integral); in TEST() 28 EXPECT_TRUE(FPBits::zero() == __llvm_libc::modfl(FPBits::zero(), &integral)); in TEST() 31 EXPECT_TRUE(FPBits::negZero() == in TEST() 36 FPBits(__llvm_libc::modfl(FPBits::buildNaN(1), &integral)).isNaN()); in TEST() 84 using UIntType = FPBits::UIntType; in TEST() [all …]
|
H A D | ILogbTest.h | 30 EXPECT_EQ(INT_MAX, func(__llvm_libc::fputil::FPBits<T>::inf())); in testSpecialNumbers() 74 using FPBits = __llvm_libc::fputil::FPBits<T>; in testSubnormalRange() local 75 using UIntType = typename FPBits::UIntType; in testSubnormalRange() 78 (FPBits::maxSubnormal - FPBits::minSubnormal) / count; in testSubnormalRange() 79 for (UIntType v = FPBits::minSubnormal; v <= FPBits::maxSubnormal; in testSubnormalRange() 81 T x = FPBits(v); in testSubnormalRange() 92 using FPBits = __llvm_libc::fputil::FPBits<T>; in testNormalRange() local 93 using UIntType = typename FPBits::UIntType; in testNormalRange() 95 constexpr UIntType step = (FPBits::maxNormal - FPBits::minNormal) / count; in testNormalRange() 96 for (UIntType v = FPBits::minNormal; v <= FPBits::maxNormal; v += step) { in testNormalRange() [all …]
|
/dports/devel/wasi-compiler-rt12/llvm-project-12.0.1.src/libc/test/src/math/ |
H A D | FmaTest.h | 24 using FPBits = __llvm_libc::fputil::FPBits<T>; variable 53 EXPECT_FP_EQ(func(T(0.5), FPBits(FPBits::minSubnormal), in testSpecialNumbers() 54 FPBits(FPBits::minSubnormal)), in testSpecialNumbers() 57 FPBits v(FPBits::minNormal + UIntType(1)); in testSpecialNumbers() 59 func(T(1) / T(FPBits::minNormal << 1), v, FPBits(FPBits::minNormal)), in testSpecialNumbers() 62 FPBits z(FPBits::maxNormal); in testSpecialNumbers() 69 (FPBits::maxSubnormal - FPBits::minSubnormal) / count; in testSubnormalRange() 73 T x = FPBits(getRandomBitPattern()), y = FPBits(v), z = FPBits(w); in testSubnormalRange() 83 for (UIntType v = FPBits::minNormal, w = FPBits::maxNormal; in testNormalRange() 84 v <= FPBits::maxNormal && w >= FPBits::minNormal; in testNormalRange() [all …]
|
H A D | HypotTest.h | 26 using FPBits = __llvm_libc::fputil::FPBits<T>; variable 27 using UIntType = typename FPBits::UIntType; 29 const T inf = __llvm_libc::fputil::FPBits<T>::inf(); 51 (FPBits::maxSubnormal - FPBits::minSubnormal) / count; in testSubnormalRange() 52 for (UIntType v = FPBits::minSubnormal, w = FPBits::maxSubnormal; in testSubnormalRange() 53 v <= FPBits::maxSubnormal && w >= FPBits::minSubnormal; in testSubnormalRange() 55 T x = FPBits(v), y = FPBits(w); in testSubnormalRange() 64 constexpr UIntType step = (FPBits::maxNormal - FPBits::minNormal) / count; in testNormalRange() 65 for (UIntType v = FPBits::minNormal, w = FPBits::maxNormal; in testNormalRange() 66 v <= FPBits::maxNormal && w >= FPBits::minNormal; in testNormalRange() [all …]
|
H A D | modfl_test.cpp | 16 using FPBits = __llvm_libc::fputil::FPBits<long double>; typedef 21 EXPECT_TRUE(FPBits::zero() == __llvm_libc::modfl(FPBits::inf(), &integral)); in TEST() 22 EXPECT_TRUE(FPBits::inf() == integral); in TEST() 24 EXPECT_TRUE(FPBits::negZero() == in TEST() 25 __llvm_libc::modfl(FPBits::negInf(), &integral)); in TEST() 26 EXPECT_TRUE(FPBits::negInf() == integral); in TEST() 28 EXPECT_TRUE(FPBits::zero() == __llvm_libc::modfl(FPBits::zero(), &integral)); in TEST() 31 EXPECT_TRUE(FPBits::negZero() == in TEST() 36 FPBits(__llvm_libc::modfl(FPBits::buildNaN(1), &integral)).isNaN()); in TEST() 84 using UIntType = FPBits::UIntType; in TEST() [all …]
|
H A D | ILogbTest.h | 30 EXPECT_EQ(INT_MAX, func(__llvm_libc::fputil::FPBits<T>::inf())); in testSpecialNumbers() 74 using FPBits = __llvm_libc::fputil::FPBits<T>; in testSubnormalRange() local 75 using UIntType = typename FPBits::UIntType; in testSubnormalRange() 78 (FPBits::maxSubnormal - FPBits::minSubnormal) / count; in testSubnormalRange() 79 for (UIntType v = FPBits::minSubnormal; v <= FPBits::maxSubnormal; in testSubnormalRange() 81 T x = FPBits(v); in testSubnormalRange() 92 using FPBits = __llvm_libc::fputil::FPBits<T>; in testNormalRange() local 93 using UIntType = typename FPBits::UIntType; in testNormalRange() 95 constexpr UIntType step = (FPBits::maxNormal - FPBits::minNormal) / count; in testNormalRange() 96 for (UIntType v = FPBits::minNormal; v <= FPBits::maxNormal; v += step) { in testNormalRange() [all …]
|
/dports/devel/wasi-libcxx/llvm-project-13.0.1.src/libc/test/src/math/ |
H A D | FmaTest.h | 24 using FPBits = __llvm_libc::fputil::FPBits<T>; variable 53 EXPECT_FP_EQ(func(T(0.5), T(FPBits(FPBits::minSubnormal)), in testSpecialNumbers() 54 T(FPBits(FPBits::minSubnormal))), in testSpecialNumbers() 57 T v = T(FPBits(FPBits::minNormal + UIntType(1))); in testSpecialNumbers() 59 func(T(1) / T(FPBits::minNormal << 1), v, T(FPBits(FPBits::minNormal))), in testSpecialNumbers() 62 T z = T(FPBits(FPBits::maxNormal)); in testSpecialNumbers() 69 (FPBits::maxSubnormal - FPBits::minSubnormal) / count; in testSubnormalRange() 73 T x = T(FPBits(getRandomBitPattern())), y = T(FPBits(v)), in testSubnormalRange() 84 for (UIntType v = FPBits::minNormal, w = FPBits::maxNormal; in testNormalRange() 85 v <= FPBits::maxNormal && w >= FPBits::minNormal; in testNormalRange() [all …]
|
H A D | HypotTest.h | 26 using FPBits = __llvm_libc::fputil::FPBits<T>; variable 27 using UIntType = typename FPBits::UIntType; 29 const T inf = T(__llvm_libc::fputil::FPBits<T>::inf()); 51 (FPBits::maxSubnormal - FPBits::minSubnormal) / count; in testSubnormalRange() 52 for (UIntType v = FPBits::minSubnormal, w = FPBits::maxSubnormal; in testSubnormalRange() 53 v <= FPBits::maxSubnormal && w >= FPBits::minSubnormal; in testSubnormalRange() 55 T x = T(FPBits(v)), y = T(FPBits(w)); in testSubnormalRange() 64 constexpr UIntType step = (FPBits::maxNormal - FPBits::minNormal) / count; in testNormalRange() 65 for (UIntType v = FPBits::minNormal, w = FPBits::maxNormal; in testNormalRange() 66 v <= FPBits::maxNormal && w >= FPBits::minNormal; in testNormalRange() [all …]
|
/dports/devel/llvm-devel/llvm-project-f05c95f10fc1d8171071735af8ad3a9e87633120/libc/test/src/math/ |
H A D | FmaTest.h | 24 using FPBits = __llvm_libc::fputil::FPBits<T>; variable 53 EXPECT_FP_EQ(func(T(0.5), T(FPBits(FPBits::minSubnormal)), in testSpecialNumbers() 54 T(FPBits(FPBits::minSubnormal))), in testSpecialNumbers() 57 T v = T(FPBits(FPBits::minNormal + UIntType(1))); in testSpecialNumbers() 59 func(T(1) / T(FPBits::minNormal << 1), v, T(FPBits(FPBits::minNormal))), in testSpecialNumbers() 62 T z = T(FPBits(FPBits::maxNormal)); in testSpecialNumbers() 69 (FPBits::maxSubnormal - FPBits::minSubnormal) / count; in testSubnormalRange() 73 T x = T(FPBits(getRandomBitPattern())), y = T(FPBits(v)), in testSubnormalRange() 84 for (UIntType v = FPBits::minNormal, w = FPBits::maxNormal; in testNormalRange() 85 v <= FPBits::maxNormal && w >= FPBits::minNormal; in testNormalRange() [all …]
|
H A D | HypotTest.h | 26 using FPBits = __llvm_libc::fputil::FPBits<T>; variable 27 using UIntType = typename FPBits::UIntType; 29 const T inf = T(__llvm_libc::fputil::FPBits<T>::inf()); 51 (FPBits::maxSubnormal - FPBits::minSubnormal) / count; in testSubnormalRange() 52 for (UIntType v = FPBits::minSubnormal, w = FPBits::maxSubnormal; in testSubnormalRange() 53 v <= FPBits::maxSubnormal && w >= FPBits::minSubnormal; in testSubnormalRange() 55 T x = T(FPBits(v)), y = T(FPBits(w)); in testSubnormalRange() 64 constexpr UIntType step = (FPBits::maxNormal - FPBits::minNormal) / count; in testNormalRange() 65 for (UIntType v = FPBits::minNormal, w = FPBits::maxNormal; in testNormalRange() 66 v <= FPBits::maxNormal && w >= FPBits::minNormal; in testNormalRange() [all …]
|
/dports/devel/wasi-compiler-rt13/llvm-project-13.0.1.src/libc/test/src/math/ |
H A D | FmaTest.h | 24 using FPBits = __llvm_libc::fputil::FPBits<T>; variable 53 EXPECT_FP_EQ(func(T(0.5), T(FPBits(FPBits::minSubnormal)), in testSpecialNumbers() 54 T(FPBits(FPBits::minSubnormal))), in testSpecialNumbers() 57 T v = T(FPBits(FPBits::minNormal + UIntType(1))); in testSpecialNumbers() 59 func(T(1) / T(FPBits::minNormal << 1), v, T(FPBits(FPBits::minNormal))), in testSpecialNumbers() 62 T z = T(FPBits(FPBits::maxNormal)); in testSpecialNumbers() 69 (FPBits::maxSubnormal - FPBits::minSubnormal) / count; in testSubnormalRange() 73 T x = T(FPBits(getRandomBitPattern())), y = T(FPBits(v)), in testSubnormalRange() 84 for (UIntType v = FPBits::minNormal, w = FPBits::maxNormal; in testNormalRange() 85 v <= FPBits::maxNormal && w >= FPBits::minNormal; in testNormalRange() [all …]
|
H A D | HypotTest.h | 26 using FPBits = __llvm_libc::fputil::FPBits<T>; variable 27 using UIntType = typename FPBits::UIntType; 29 const T inf = T(__llvm_libc::fputil::FPBits<T>::inf()); 51 (FPBits::maxSubnormal - FPBits::minSubnormal) / count; in testSubnormalRange() 52 for (UIntType v = FPBits::minSubnormal, w = FPBits::maxSubnormal; in testSubnormalRange() 53 v <= FPBits::maxSubnormal && w >= FPBits::minSubnormal; in testSubnormalRange() 55 T x = T(FPBits(v)), y = T(FPBits(w)); in testSubnormalRange() 64 constexpr UIntType step = (FPBits::maxNormal - FPBits::minNormal) / count; in testNormalRange() 65 for (UIntType v = FPBits::minNormal, w = FPBits::maxNormal; in testNormalRange() 66 v <= FPBits::maxNormal && w >= FPBits::minNormal; in testNormalRange() [all …]
|
/dports/devel/llvm13/llvm-project-13.0.1.src/libc/test/src/math/ |
H A D | FmaTest.h | 24 using FPBits = __llvm_libc::fputil::FPBits<T>; variable 53 EXPECT_FP_EQ(func(T(0.5), T(FPBits(FPBits::minSubnormal)), in testSpecialNumbers() 54 T(FPBits(FPBits::minSubnormal))), in testSpecialNumbers() 57 T v = T(FPBits(FPBits::minNormal + UIntType(1))); in testSpecialNumbers() 59 func(T(1) / T(FPBits::minNormal << 1), v, T(FPBits(FPBits::minNormal))), in testSpecialNumbers() 62 T z = T(FPBits(FPBits::maxNormal)); in testSpecialNumbers() 69 (FPBits::maxSubnormal - FPBits::minSubnormal) / count; in testSubnormalRange() 73 T x = T(FPBits(getRandomBitPattern())), y = T(FPBits(v)), in testSubnormalRange() 84 for (UIntType v = FPBits::minNormal, w = FPBits::maxNormal; in testNormalRange() 85 v <= FPBits::maxNormal && w >= FPBits::minNormal; in testNormalRange() [all …]
|
H A D | HypotTest.h | 26 using FPBits = __llvm_libc::fputil::FPBits<T>; variable 27 using UIntType = typename FPBits::UIntType; 29 const T inf = T(__llvm_libc::fputil::FPBits<T>::inf()); 51 (FPBits::maxSubnormal - FPBits::minSubnormal) / count; in testSubnormalRange() 52 for (UIntType v = FPBits::minSubnormal, w = FPBits::maxSubnormal; in testSubnormalRange() 53 v <= FPBits::maxSubnormal && w >= FPBits::minSubnormal; in testSubnormalRange() 55 T x = T(FPBits(v)), y = T(FPBits(w)); in testSubnormalRange() 64 constexpr UIntType step = (FPBits::maxNormal - FPBits::minNormal) / count; in testNormalRange() 65 for (UIntType v = FPBits::minNormal, w = FPBits::maxNormal; in testNormalRange() 66 v <= FPBits::maxNormal && w >= FPBits::minNormal; in testNormalRange() [all …]
|
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/llvm/libc/test/src/math/ |
H A D | modfl_test.cpp | 16 using FPBits = __llvm_libc::fputil::FPBits<long double>; typedef 21 EXPECT_TRUE(FPBits::zero() == __llvm_libc::modfl(FPBits::inf(), &integral)); in TEST() 22 EXPECT_TRUE(FPBits::inf() == integral); in TEST() 24 EXPECT_TRUE(FPBits::negZero() == in TEST() 25 __llvm_libc::modfl(FPBits::negInf(), &integral)); in TEST() 26 EXPECT_TRUE(FPBits::negInf() == integral); in TEST() 28 EXPECT_TRUE(FPBits::zero() == __llvm_libc::modfl(FPBits::zero(), &integral)); in TEST() 31 EXPECT_TRUE(FPBits::negZero() == in TEST() 36 FPBits(__llvm_libc::modfl(FPBits::buildNaN(1), &integral)).isNaN()); in TEST() 84 using UIntType = FPBits::UIntType; in TEST() [all …]
|
H A D | hypotf_test.cpp | 16 using FPBits = __llvm_libc::fputil::FPBits<float>; typedef 17 using UIntType = FPBits::UIntType; 39 (FPBits::maxSubnormal - FPBits::minSubnormal) / count; in TEST() 40 for (UIntType v = FPBits::minSubnormal, w = FPBits::maxSubnormal; in TEST() 41 v <= FPBits::maxSubnormal && w >= FPBits::minSubnormal; in TEST() 43 float x = FPBits(v), y = FPBits(w); in TEST() 52 constexpr UIntType step = (FPBits::maxNormal - FPBits::minNormal) / count; in TEST() 53 for (UIntType v = FPBits::minNormal, w = FPBits::maxNormal; in TEST() 54 v <= FPBits::maxNormal && w >= FPBits::minNormal; v += step, w -= step) { in TEST() 55 float x = FPBits(v), y = FPBits(w); in TEST()
|
H A D | ILogbTest.h | 30 EXPECT_EQ(INT_MAX, func(__llvm_libc::fputil::FPBits<T>::inf())); in testSpecialNumbers() 74 using FPBits = __llvm_libc::fputil::FPBits<T>; in testSubnormalRange() local 75 using UIntType = typename FPBits::UIntType; in testSubnormalRange() 78 (FPBits::maxSubnormal - FPBits::minSubnormal) / count; in testSubnormalRange() 79 for (UIntType v = FPBits::minSubnormal; v <= FPBits::maxSubnormal; in testSubnormalRange() 81 T x = FPBits(v); in testSubnormalRange() 92 using FPBits = __llvm_libc::fputil::FPBits<T>; in testNormalRange() local 93 using UIntType = typename FPBits::UIntType; in testNormalRange() 95 constexpr UIntType step = (FPBits::maxNormal - FPBits::minNormal) / count; in testNormalRange() 96 for (UIntType v = FPBits::minNormal; v <= FPBits::maxNormal; v += step) { in testNormalRange() [all …]
|