Lines Matching refs:j
117 for (unsigned j = 0; j < i; j++) { in DEF_TEST() local
119 if (buffer[j][k] != data[j][k]) { in DEF_TEST()
120 ERRORF(r, "(%u, %u) - a: %g r: %g\n", j, k, data[j][k], buffer[j][k]); in DEF_TEST()
124 for (int j = i; j < 4; j++) { in DEF_TEST() local
125 for (auto f : buffer[j]) { in DEF_TEST()
151 for (unsigned j = 0; j < i; j++) { in DEF_TEST() local
153 if (buffer[j][k] != data[j][k]) { in DEF_TEST()
154 ERRORF(r, "(%u, %u) - a: %g r: %g\n", j, k, data[j][k], buffer[j][k]); in DEF_TEST()
157 if (buffer[j][2] != 0) { in DEF_TEST()
158 ERRORF(r, "(%u, 2) - a: 0 r: %g\n", j, buffer[j][2]); in DEF_TEST()
160 if (buffer[j][3] != 1) { in DEF_TEST()
161 ERRORF(r, "(%u, 3) - a: 1 r: %g\n", j, buffer[j][3]); in DEF_TEST()
164 for (int j = i; j < 4; j++) { in DEF_TEST() local
165 for (auto f : buffer[j]) { in DEF_TEST()
191 for (unsigned j = 0; j < i; j++) { in DEF_TEST() local
193 if (buffer[j][k] != data[j][k]) { in DEF_TEST()
194 ERRORF(r, "(%u, %u) - a: %g r: %g\n", j, k, data[j][k], buffer[j][k]); in DEF_TEST()
198 for (int j = i; j < 4; j++) { in DEF_TEST() local
199 for (auto f : buffer[j]) { in DEF_TEST()
223 for (unsigned j = 0; j < i; j++) { in DEF_TEST() local
225 REPORTER_ASSERT(r, buffer[j][k] == data[j][k]); in DEF_TEST()
228 for (int j = i; j < 4; j++) { in DEF_TEST() local
229 for (auto f : buffer[j]) { in DEF_TEST()
253 for (unsigned j = 0; j < i; j++) { in DEF_TEST() local
254 uint16_t expected[] = {0, 0, 0, data[j]}; in DEF_TEST()
255 REPORTER_ASSERT(r, !memcmp(expected, &buffer[j][0], sizeof(buffer[j]))); in DEF_TEST()
257 for (int j = i; j < 4; j++) { in DEF_TEST() local
258 for (auto f : buffer[j]) { in DEF_TEST()
282 for (unsigned j = 0; j < i; j++) { in DEF_TEST() local
283 REPORTER_ASSERT(r, !memcmp(&data[j][3], &buffer[j], sizeof(buffer[j]))); in DEF_TEST()
285 for (int j = i; j < 4; j++) { in DEF_TEST() local
286 REPORTER_ASSERT(r, buffer[j] == 0xffff); in DEF_TEST()
308 for (unsigned j = 0; j < i; j++) { in DEF_TEST() local
309 REPORTER_ASSERT(r, !memcmp(&buffer[j], &data[j], 2 * sizeof(uint16_t))); in DEF_TEST()
311 for (int j = i; j < 4; j++) { in DEF_TEST() local
312 for (auto h : buffer[j]) { in DEF_TEST()
336 for (unsigned j = 0; j < i; j++) { in DEF_TEST() local
337 uint16_t expected[] = {data[j][0], data[j][1], h(0), h(1)}; in DEF_TEST()
338 REPORTER_ASSERT(r, !memcmp(&buffer[j], expected, sizeof(expected))); in DEF_TEST()
340 for (int j = i; j < 4; j++) { in DEF_TEST() local
341 for (auto h : buffer[j]) { in DEF_TEST()
367 for (unsigned j = 0; j < i; j++) { in DEF_TEST() local
369 SkToU8(data[j][0] >> 8), in DEF_TEST()
370 SkToU8(data[j][1] >> 8), in DEF_TEST()
374 REPORTER_ASSERT(r, !memcmp(&buffer[j], expected, sizeof(expected))); in DEF_TEST()
376 for (int j = i; j < 4; j++) { in DEF_TEST() local
377 for (auto b : buffer[j]) { in DEF_TEST()
401 for (unsigned j = 0; j < i; j++) { in DEF_TEST() local
402 uint8_t expected[] = {0x00, 0x00, 0x00, SkToU8(data[j] >> 8)}; in DEF_TEST()
403 REPORTER_ASSERT(r, !memcmp(&buffer[j], expected, sizeof(expected))); in DEF_TEST()
405 for (int j = i; j < 4; j++) { in DEF_TEST() local
406 for (auto b : buffer[j]) { in DEF_TEST()
430 for (unsigned j = 0; j < i; j++) { in DEF_TEST() local
431 uint16_t expected = (data[j][3] << 8) | data[j][3]; in DEF_TEST()
432 REPORTER_ASSERT(r, buffer[j] == expected); in DEF_TEST()
434 for (int j = i; j < 4; j++) { in DEF_TEST() local
435 REPORTER_ASSERT(r, buffer[j] == 0xffff); in DEF_TEST()
458 for (unsigned j = 0; j < i; j++) { in DEF_TEST() local
459 uint16_t expected[4] = {data[j][2], data[j][1], data[j][0], data[j][3]}; in DEF_TEST()
460 REPORTER_ASSERT(r, !memcmp(&expected[0], &buffer[j], sizeof(expected))); in DEF_TEST()
462 for (int j = i; j < 4; j++) { in DEF_TEST() local
463 for (uint16_t u16 : buffer[j]) in DEF_TEST()