Searched refs:ARRAY_LENGTH (Results 1 - 25 of 27) sorted by relevance

12

/xsrc/external/mit/pixman/dist/test/
H A Dtrap-crasher.c37 pixman_add_trapezoids (dst, 0, 0, ARRAY_LENGTH (traps), traps);
H A Dpdf-op-test.c41 for (o = 0; o < ARRAY_LENGTH (pdf_ops); ++o)
45 for (s = 0; s < ARRAY_LENGTH (pixels); ++s)
52 for (m = -1; m < ARRAY_LENGTH (pixels); ++m)
61 for (d = 0; d < ARRAY_LENGTH (pixels); ++d)
H A Drotate-test.c46 (formats[prng_rand_n (ARRAY_LENGTH (formats))])
49 (ops[prng_rand_n (ARRAY_LENGTH (ops))])
52 (&(transforms[prng_rand_n (ARRAY_LENGTH (transforms))]))
H A Dgradient-crash-test.c109 num_stops = ARRAY_LENGTH (onestop);
114 num_stops = ARRAY_LENGTH (subsetstops);
119 num_stops = ARRAY_LENGTH (stops01);
124 for (p = 0; p < ARRAY_LENGTH (point_pairs); ++p)
139 for (k = 0; k < ARRAY_LENGTH (transformations); ++k)
H A Dalphamap.c324 for (i = 0; i < ARRAY_LENGTH (formats); ++i)
326 for (j = 0; j < ARRAY_LENGTH (formats); ++j)
328 for (a = 0; a < ARRAY_LENGTH (alpha_formats); ++a)
330 for (b = 0; b < ARRAY_LENGTH (alpha_formats); ++b)
332 for (x = 0; x < ARRAY_LENGTH (origins); ++x)
334 for (y = 0; y < ARRAY_LENGTH (origins); ++y)
H A Doob-test.c101 for (i = 0; i < ARRAY_LENGTH (info); ++i)
H A Dradial-perf-test.c30 &inner, &outer, r_inner, r_outer, stops, ARRAY_LENGTH (stops));
H A Dcover-test.c275 static pixman_image_t *src_imgs[ARRAY_LENGTH (img_fmt_list)];
290 for (i = 0; i < ARRAY_LENGTH (img_fmt_list); i++)
307 op = op_list[prng_rand_n (ARRAY_LENGTH (op_list))];
309 dst_fmt = img_fmt_list[prng_rand_n (ARRAY_LENGTH (img_fmt_list))];
317 src_fmt_index = prng_rand_n (ARRAY_LENGTH (img_fmt_list));
H A Dscaling-crash-test.c138 for (i = 0; i < ARRAY_LENGTH (filters); ++i)
140 for (j = 0; j < ARRAY_LENGTH (repeats); ++j)
H A Dcombiner-test.c128 for (i = 0; i < ARRAY_LENGTH (op_list); ++i)
H A Dcomposite.c422 return prng_rand_n (ARRAY_LENGTH (sizes));
428 return prng_rand_n (ARRAY_LENGTH (colors));
434 return prng_rand_n (ARRAY_LENGTH (formats));
451 op = operators [prng_rand_n (ARRAY_LENGTH (operators))];
H A Dfilter-reduction-test.c70 const pixman_fixed_t *end = entries + ARRAY_LENGTH (entries);
H A Dcomposite-traps-test.c29 ((array)[prng_rand_n(ARRAY_LENGTH((array)))])
88 &(colors[prng_rand_n (ARRAY_LENGTH (colors))]));
H A Dglyph-test.c275 pixman_op_t op = operators[prng_rand_n (ARRAY_LENGTH (operators))];
289 pixman_op_t op = operators[prng_rand_n (ARRAY_LENGTH (operators))];
H A Dfetch-test.c106 int n_test_cases = ARRAY_LENGTH (testcases);
H A Dthread-test.c77 arr[prng_rand_r(&info->prng_state) % ARRAY_LENGTH (arr)]
H A Dstress-test.c236 int n = prng_rand_n (ARRAY_LENGTH (image_formats));
243 format = image_formats[n++ % ARRAY_LENGTH (image_formats)];
391 filter = filters[prng_rand_n (ARRAY_LENGTH (filters))];
453 repeat = repeats[prng_rand_n (ARRAY_LENGTH (repeats))];
932 op = op_list [prng_rand_n (ARRAY_LENGTH (op_list))];
967 op = op_list [prng_rand_n (ARRAY_LENGTH (op_list))];
H A Dsolid-test.c284 op = op_list[prng_rand_n (ARRAY_LENGTH (op_list))];
H A Dblitters-test.c266 op = op_list[prng_rand_n (ARRAY_LENGTH (op_list))];
H A Dlowlevel-blt-bench.c846 for (i = 0; i < ARRAY_LENGTH (special_patterns); i++)
948 for (i = 0; i < ARRAY_LENGTH (tests_tbl); i++)
1028 for (i = 0; i < ARRAY_LENGTH (tests_tbl); i++)
/xsrc/external/mit/pixman/dist/demos/
H A Dlinear-gradient.c34 src_img = pixman_image_create_linear_gradient (&p1, &p2, stops, ARRAY_LENGTH (stops));
H A Dtri-test.c40 ARRAY_LENGTH (tris), tris);
H A Ddither.c252 &p1, &p2, stops, ARRAY_LENGTH (stops))))
/xsrc/external/mit/pixman/dist/test/utils/
H A Dutils.h14 #define ARRAY_LENGTH(A) ((int) (sizeof (A) / sizeof ((A) [0]))) macro
H A Dutils.c1339 for (i = 0; i < ARRAY_LENGTH (format_list); ++i)
1375 for (i = 0; i < ARRAY_LENGTH (format_list); ++i)
1397 for (i = 0; i < ARRAY_LENGTH (op_list); ++i)
1426 for (i = 0; i < ARRAY_LENGTH (dither_list); ++i)
1444 for (i = 0; i < ARRAY_LENGTH (op_list); ++i)
1468 for (i = 0; i < ARRAY_LENGTH (dither_list); ++i)
1484 for (i = 0; i < ARRAY_LENGTH (op_list); ++i)
1500 for (i = 0; i < ARRAY_LENGTH (format_list); ++i)
1516 for (i = 0; i < ARRAY_LENGTH (dither_list); ++i)

Completed in 25 milliseconds

12