File tree Expand file tree Collapse file tree 11 files changed +17
-17
lines changed Expand file tree Collapse file tree 11 files changed +17
-17
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ class FmaTestTemplate : public __llvm_libc::testing::Test {
67
67
}
68
68
69
69
void test_subnormal_range (Func func) {
70
- constexpr UIntType COUNT = 1000001 ;
70
+ constexpr UIntType COUNT = 100'001 ;
71
71
constexpr UIntType STEP =
72
72
(FPBits::MAX_SUBNORMAL - FPBits::MIN_SUBNORMAL) / COUNT;
73
73
for (UIntType v = FPBits::MIN_SUBNORMAL, w = FPBits::MAX_SUBNORMAL;
@@ -82,7 +82,7 @@ class FmaTestTemplate : public __llvm_libc::testing::Test {
82
82
}
83
83
84
84
void test_normal_range (Func func) {
85
- constexpr UIntType COUNT = 1000001 ;
85
+ constexpr UIntType COUNT = 100'001 ;
86
86
constexpr UIntType STEP = (FPBits::MAX_NORMAL - FPBits::MIN_NORMAL) / COUNT;
87
87
for (UIntType v = FPBits::MIN_NORMAL, w = FPBits::MAX_NORMAL;
88
88
v <= FPBits::MAX_NORMAL && w >= FPBits::MIN_NORMAL;
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ class HypotTestTemplate : public __llvm_libc::testing::Test {
59
59
}
60
60
61
61
void test_subnormal_range (Func func) {
62
- constexpr UIntType COUNT = 100001 ;
62
+ constexpr UIntType COUNT = 10'001 ;
63
63
for (unsigned scale = 0 ; scale < 4 ; ++scale) {
64
64
UIntType max_value = FPBits::MAX_SUBNORMAL << scale;
65
65
UIntType step = (max_value - FPBits::MIN_SUBNORMAL) / COUNT;
@@ -84,7 +84,7 @@ class HypotTestTemplate : public __llvm_libc::testing::Test {
84
84
}
85
85
86
86
void test_normal_range (Func func) {
87
- constexpr UIntType COUNT = 100001 ;
87
+ constexpr UIntType COUNT = 10'001 ;
88
88
constexpr UIntType STEP = (FPBits::MAX_NORMAL - FPBits::MIN_NORMAL) / COUNT;
89
89
for (int signs = 0 ; signs < 4 ; ++signs) {
90
90
for (UIntType v = FPBits::MIN_NORMAL, w = FPBits::MAX_NORMAL;
Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ class RIntTestTemplate : public __llvm_libc::testing::Test {
93
93
}
94
94
95
95
void testSubnormalRange (RIntFunc func) {
96
- constexpr UIntType COUNT = 1000001 ;
96
+ constexpr UIntType COUNT = 100'001 ;
97
97
constexpr UIntType STEP =
98
98
(FPBits::MAX_SUBNORMAL - FPBits::MIN_SUBNORMAL) / COUNT;
99
99
for (UIntType i = FPBits::MIN_SUBNORMAL; i <= FPBits::MAX_SUBNORMAL;
@@ -108,7 +108,7 @@ class RIntTestTemplate : public __llvm_libc::testing::Test {
108
108
}
109
109
110
110
void testNormalRange (RIntFunc func) {
111
- constexpr UIntType COUNT = 1000001 ;
111
+ constexpr UIntType COUNT = 100'001 ;
112
112
constexpr UIntType STEP = (FPBits::MAX_NORMAL - FPBits::MIN_NORMAL) / COUNT;
113
113
for (UIntType i = FPBits::MIN_NORMAL; i <= FPBits::MAX_NORMAL; i += STEP) {
114
114
T x = T (FPBits (i));
Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ class RemQuoTestTemplate : public __llvm_libc::testing::Test {
95
95
}
96
96
97
97
void testSubnormalRange (RemQuoFunc func) {
98
- constexpr UIntType COUNT = 1000001 ;
98
+ constexpr UIntType COUNT = 100'001 ;
99
99
constexpr UIntType STEP =
100
100
(FPBits::MAX_SUBNORMAL - FPBits::MIN_SUBNORMAL) / COUNT;
101
101
for (UIntType v = FPBits::MIN_SUBNORMAL, w = FPBits::MAX_SUBNORMAL;
@@ -110,7 +110,7 @@ class RemQuoTestTemplate : public __llvm_libc::testing::Test {
110
110
}
111
111
112
112
void testNormalRange (RemQuoFunc func) {
113
- constexpr UIntType COUNT = 234561 ;
113
+ constexpr UIntType COUNT = 1'001 ;
114
114
constexpr UIntType STEP = (FPBits::MAX_NORMAL - FPBits::MIN_NORMAL) / COUNT;
115
115
for (UIntType v = FPBits::MIN_NORMAL, w = FPBits::MAX_NORMAL;
116
116
v <= FPBits::MAX_NORMAL && w >= FPBits::MIN_NORMAL;
Original file line number Diff line number Diff line change @@ -214,7 +214,7 @@ class RoundToIntegerTestTemplate : public __llvm_libc::testing::Test {
214
214
}
215
215
216
216
void testSubnormalRange (RoundToIntegerFunc func) {
217
- constexpr UIntType COUNT = 1000001 ;
217
+ constexpr UIntType COUNT = 1'000'001 ;
218
218
constexpr UIntType STEP =
219
219
(FPBits::MAX_SUBNORMAL - FPBits::MIN_SUBNORMAL) / COUNT;
220
220
for (UIntType i = FPBits::MIN_SUBNORMAL; i <= FPBits::MAX_SUBNORMAL;
@@ -258,7 +258,7 @@ class RoundToIntegerTestTemplate : public __llvm_libc::testing::Test {
258
258
if (sizeof (I) > sizeof (long ))
259
259
return ;
260
260
261
- constexpr UIntType COUNT = 1000001 ;
261
+ constexpr UIntType COUNT = 1'000'001 ;
262
262
constexpr UIntType STEP = (FPBits::MAX_NORMAL - FPBits::MIN_NORMAL) / COUNT;
263
263
for (UIntType i = FPBits::MIN_NORMAL; i <= FPBits::MAX_NORMAL; i += STEP) {
264
264
F x = F (FPBits (i));
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ template <typename T> class SqrtTest : public __llvm_libc::testing::Test {
45
45
test_all_rounding_modes (func, T (denormal));
46
46
}
47
47
48
- constexpr UIntType COUNT = 1'000 '001 ;
48
+ constexpr UIntType COUNT = 200 '001 ;
49
49
constexpr UIntType STEP = HIDDEN_BIT / COUNT;
50
50
for (UIntType i = 0 , v = 0 ; i <= COUNT; ++i, v += STEP) {
51
51
T x = __llvm_libc::cpp::bit_cast<T>(v);
@@ -54,7 +54,7 @@ template <typename T> class SqrtTest : public __llvm_libc::testing::Test {
54
54
}
55
55
56
56
void test_normal_range (SqrtFunc func) {
57
- constexpr UIntType COUNT = 1'234'561 ;
57
+ constexpr UIntType COUNT = 200'001 ;
58
58
constexpr UIntType STEP = UIntType (-1 ) / COUNT;
59
59
for (UIntType i = 0 , v = 0 ; i <= COUNT; ++i, v += STEP) {
60
60
T x = __llvm_libc::cpp::bit_cast<T>(v);
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ TEST(LlvmLibcAsinhfTest, SpecialNumbers) {
43
43
}
44
44
45
45
TEST (LlvmLibcAsinhfTest, InFloatRange) {
46
- constexpr uint32_t COUNT = 234561 ;
46
+ constexpr uint32_t COUNT = 1'001 ;
47
47
constexpr uint32_t STEP = UINT32_MAX / COUNT;
48
48
for (uint32_t i = 0 , v = 0 ; i <= COUNT; ++i, v += STEP) {
49
49
float x = float (FPBits_t (v));
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ TEST(LlvmLibcLog10Test, AllExponents) {
78
78
}
79
79
80
80
TEST (LlvmLibcLog10Test, InDoubleRange) {
81
- constexpr uint64_t COUNT = 234561 ;
81
+ constexpr uint64_t COUNT = 1'001 ;
82
82
constexpr uint64_t START = 0x3FD0'0000'0000'0000ULL ; // 0.25
83
83
constexpr uint64_t STOP = 0x4010'0000'0000'0000ULL ; // 4.0
84
84
// constexpr uint64_t START = 0x3FF0'0000'0000'0000ULL; // 1.0
Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ TEST(LlvmLibcLog1pTest, AllExponents) {
81
81
}
82
82
83
83
TEST (LlvmLibcLog1pTest, InDoubleRange) {
84
- constexpr uint64_t COUNT = 234561 ;
84
+ constexpr uint64_t COUNT = 4501 ;
85
85
86
86
auto test = [&](uint64_t start, uint64_t stop,
87
87
mpfr::RoundingMode rounding_mode) {
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ TEST(LlvmLibcLog2Test, AllExponents) {
78
78
}
79
79
80
80
TEST (LlvmLibcLog2Test, InDoubleRange) {
81
- constexpr uint64_t COUNT = 234561 ;
81
+ constexpr uint64_t COUNT = 1'001 ;
82
82
constexpr uint64_t START = 0x3FD0'0000'0000'0000ULL ; // 0.25
83
83
constexpr uint64_t STOP = 0x4010'0000'0000'0000ULL ; // 4.0
84
84
// constexpr uint64_t START = 0x3FF0'0000'0000'0000ULL; // 1.0
Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ TEST(LlvmLibcSinCosfTest, SpecialNumbers) {
90
90
}
91
91
92
92
TEST (LlvmLibcSinCosfTest, InFloatRange) {
93
- constexpr uint32_t COUNT = 234561 ;
93
+ constexpr uint32_t COUNT = 1'001 ;
94
94
constexpr uint32_t STEP = UINT32_MAX / COUNT;
95
95
for (uint32_t i = 0 , v = 0 ; i <= COUNT; ++i, v += STEP) {
96
96
float x = float (FPBits ((v)));
You can’t perform that action at this time.
0 commit comments