Searched refs:prng_rand_n (Results 1 – 16 of 16) sorted by relevance
53 src_bpp = (prng_rand_n (2) == 0) ? 2 : 4; in test_composite()54 dst_bpp = (prng_rand_n (2) == 0) ? 2 : 4; in test_composite()55 op = (prng_rand_n (2) == 0) ? PIXMAN_OP_SRC : PIXMAN_OP_OVER; in test_composite()57 src_width = prng_rand_n (MAX_SRC_WIDTH) + 1; in test_composite()58 src_height = prng_rand_n (MAX_SRC_HEIGHT) + 1; in test_composite()59 dst_width = prng_rand_n (MAX_DST_WIDTH) + 1; in test_composite()60 dst_height = prng_rand_n (MAX_DST_HEIGHT) + 1; in test_composite()61 src_stride = src_width * src_bpp + prng_rand_n (MAX_STRIDE) * src_bpp; in test_composite()62 dst_stride = dst_width * dst_bpp + prng_rand_n (MAX_STRIDE) * dst_bpp; in test_composite()70 src_x = -(src_width / 4) + prng_rand_n (src_width * 3 / 2); in test_composite()[all …]
29 switch (prng_rand_n (4)) in get_format()85 src_bpp = (prng_rand_n (2) == 0) ? 2 : 4; in test_composite()86 dst_bpp = (prng_rand_n (2) == 0) ? 2 : 4; in test_composite()87 switch (prng_rand_n (3)) in test_composite()100 src_width = prng_rand_n (MAX_SRC_WIDTH) + 1; in test_composite()101 src_height = prng_rand_n (MAX_SRC_HEIGHT) + 1; in test_composite()103 if (prng_rand_n (2)) in test_composite()105 mask_width = prng_rand_n (MAX_SRC_WIDTH) + 1; in test_composite()106 mask_height = prng_rand_n (MAX_SRC_HEIGHT) + 1; in test_composite()113 dst_width = prng_rand_n (MAX_DST_WIDTH) + 1; in test_composite()[all …]
110 return formats[prng_rand_n (i)]; in random_format()125 if ((flags & ALLOW_SOLID) && prng_rand_n (4) == 0) in create_image()137 width = prng_rand_n (max_size) + 1; in create_image()138 height = prng_rand_n (max_size) + 1; in create_image()142 stride = (width * bpp + 7) / 8 + prng_rand_n (17); in create_image()145 if (prng_rand_n (64) == 0) in create_image()164 if ((flags & ALLOW_CLIPPED) && prng_rand_n (8) == 0) in create_image()168 int n = prng_rand_n (8) + 1; in create_image()172 clip_boxes[i].x1 = prng_rand_n (width); in create_image()173 clip_boxes[i].y1 = prng_rand_n (height); in create_image()[all …]
29 ((array)[prng_rand_n(ARRAY_LENGTH((array)))])40 return prng_rand_n (n << 16); in random_fixed()85 if (prng_rand_n (4) == 0) in test_composite()88 &(colors[prng_rand_n (ARRAY_LENGTH (colors))])); in test_composite()97 int src_width = prng_rand_n (MAX_SRC_WIDTH) + 1; in test_composite()98 int src_height = prng_rand_n (MAX_SRC_HEIGHT) + 1; in test_composite()99 int src_stride = src_width * src_bpp + prng_rand_n (MAX_STRIDE) * src_bpp; in test_composite()102 src_x = -(src_width / 4) + prng_rand_n (src_width * 3 / 2); in test_composite()103 src_y = -(src_height / 4) + prng_rand_n (src_height * 3 / 2); in test_composite()109 if (prng_rand_n (2) == 0) in test_composite()[all …]
79 switch (prng_rand_n (28)) in get_size()89 return prng_rand_n (100); in get_size()92 return prng_rand_n (2000) + 1000; in get_size()101 return prng_rand_n (64000) + 63000; in get_size()200 mask = (1 << prng_rand_n (10)) - 1; in log_rand()209 return prng_rand_n (image->bits.width); in rand_x()218 return prng_rand_n (image->bits.height); in rand_y()234 int n = prng_rand_n (ARRAY_LENGTH (image_formats)); in random_format()237 (alpha == REQUIRE_ALPHA || prng_rand_n (4) != 0)) in random_format()272 align_add = align_mask + prng_rand_n (65); in create_random_bits_image()[all …]
36 if (n > N_MOST_LIKELY_FORMATS && prng_rand_n (4) != 0) in create_random_image()38 fmt = allowed_formats[prng_rand_n (n)]; in create_random_image()40 width = prng_rand_n (max_width) + 1; in create_random_image()41 height = prng_rand_n (max_height) + 1; in create_random_image()43 prng_rand_n (max_extra_stride + 1); in create_random_image()49 if (prng_rand_n (4) == 0) in create_random_image()61 if (prng_rand_n (4) == 0) in create_random_image()78 if (prng_rand_n (16) == 0) in create_random_image()266 op = op_list[prng_rand_n (ARRAY_LENGTH (op_list))]; in test_composite()268 if (prng_rand_n (8)) in test_composite()[all …]
171 if (n > N_MOST_LIKELY_FORMATS && prng_rand_n (4) != 0) in random_format()174 return allowed_formats[prng_rand_n (n)]; in random_format()209 if (prng_rand_n (2)) in create_solid_image()233 *buffer = prng_rand_n (2) ? 0xFFFFFFFFu : 0; in create_solid_image()255 color.alpha = prng_rand_n (UINT16_MAX + 1); in create_solid_image()256 color.red = prng_rand_n (UINT16_MAX + 1); in create_solid_image()257 color.green = prng_rand_n (UINT16_MAX + 1); in create_solid_image()258 color.blue = prng_rand_n (UINT16_MAX + 1); in create_solid_image()284 op = op_list[prng_rand_n (ARRAY_LENGTH (op_list))]; in test_solid()287 switch (prng_rand_n (3)) in test_solid()[all …]
157 f >>= 31 - 16 + prng_rand_n (2 * LOG2_MAX_FACTOR + 1) - LOG2_MAX_FACTOR; in random_scale_factor()198 if (prng_rand_n (2)) in random_offset()204 if (prng_rand_n (2)) in random_offset()208 offset += prng_rand_n (32); in random_offset()211 if (prng_rand_n (2)) in random_offset()302 left_align = prng_rand_n (2); in test_cover()303 top_align = prng_rand_n (2); in test_cover()304 bilinear = prng_rand_n (2); in test_cover()307 op = op_list[prng_rand_n (ARRAY_LENGTH (op_list))]; in test_cover()309 dst_fmt = img_fmt_list[prng_rand_n (ARRAY_LENGTH (img_fmt_list))]; in test_cover()[all …]
148 if (prng_rand_n (3) == 0) in test_matrix()149 vi.v[j] >>= prng_rand_n (46); in test_matrix()152 if (prng_rand_n (2)) in test_matrix()157 ti.matrix[j][k] >>= prng_rand_n (30); in test_matrix()160 if (prng_rand_n (2)) in test_matrix()168 if (prng_rand_n (2)) in test_matrix()179 if (is_affine && prng_rand_n (2)) in test_matrix()
60 pixman_fixed_t vx = prng_rand_n(10000 << 16) - (3000 << 16); in main()61 int32_t width = prng_rand_n(10000); in main()62 int32_t source_image_width = prng_rand_n(10000) + 1; in main()63 pixman_fixed_t unit_x = prng_rand_n(10 << 16) + 1; in main()
96 prng_rand_n (image_size), in main()97 prng_rand_n (image_size), in main()98 prng_rand_n (25), in main()99 prng_rand_n (25)); in main()
46 (formats[prng_rand_n (ARRAY_LENGTH (formats))])49 (ops[prng_rand_n (ARRAY_LENGTH (ops))])52 (&(transforms[prng_rand_n (ARRAY_LENGTH (transforms))]))72 if (prng_rand_n (2) == 0) in make_image()
86 (array[prng_rand_n (ARRAY_LENGTH (array))])99 int width = prng_rand_n (MAX_WIDTH); in create_image()100 int height = prng_rand_n (MAX_HEIGHT); in create_image()293 x = prng_rand_n (MAX_WIDTH); in do_check()294 y = prng_rand_n (MAX_HEIGHT); in do_check()295 width = prng_rand_n (MAX_WIDTH) + 4; in do_check()296 height = prng_rand_n (MAX_HEIGHT) + 4; in do_check()311 if (prng_rand_n (2)) in do_check()317 component_alpha = prng_rand_n (2); in do_check()
12 n_boxes = prng_rand_n (64); in make_random_region()40 if (prng_rand_n (14)) in random_coord()45 b = bb + prng_rand_n (n_boxes); in random_coord()65 switch (prng_rand_n (5)) in random_coord()
421 return prng_rand_n (ARRAY_LENGTH (sizes)); in random_size()427 return prng_rand_n (ARRAY_LENGTH (colors)); in random_color()433 return prng_rand_n (ARRAY_LENGTH (formats)); in random_format()450 op = operators [prng_rand_n (ARRAY_LENGTH (operators))]; in run_test()452 ca = prng_rand_n (3); in run_test()
49 prng_rand_n (int max) in prng_rand_n() function