106 {
107#if DEBUG_UNDER_DEVELOPMENT
108 return;
109#endif
113 for (int samples = 0; samples <= 64; ++samples) {
115 int bitCount = samples < 32 ? samples : 64 - samples;
116 int index1 = 63;
117 int index2 = 62;
118 switch (bitCount) {
119 case 0:
121 break;
122 case 1:
124 break;
125 case 2:
127 break;
128 default:
130 break;
131 }
133 uint64_t testlines;
134 switch (bitCount) {
135 case 0:
136 testlines = 0;
137 break;
138 case 1:
139 testlines = 1LL <<
test;
140 break;
141 case 2:
142 if (
reporter->allowExtendedTest()) {
145 testlines = 1LL << index1;
146 testlines |= 1LL << index2;
147 if (--index2 < 0) {
148 --index1;
149 index2 = index1 - 1;
150 }
151 break;
152 }
153 [[fallthrough]];
154 default:
155 testlines = 0;
156 for (
int i = 0;
i < bitCount; ++
i) {
157 int bit;
158 do {
160 } while (testlines & (1LL << bit));
161 testlines |= 1LL << bit;
162 }
163 }
164 if (samples >= 32) {
165 testlines ^= 0xFFFFFFFFFFFFFFFFLL;
166 }
167 *testRunner.fRunnables.append() =
169 (int) (unsigned) (testlines & 0xFFFFFFFF),
170 (int) (unsigned) (testlines >> 32),
171 0, 0, &testRunner);
172 }
173 }
174 testRunner.render();
175}
static const size_t testCount
static void testChalkboard(PathOpsThreadState *data)
void initializeTests(skiatest::Reporter *reporter, const char *test)
uint32_t nextRangeU(uint32_t min, uint32_t max)