Lines Matching refs:prng_rand_n

53     src_bpp = (prng_rand_n (2) == 0) ? 2 : 4;
54 dst_bpp = (prng_rand_n (2) == 0) ? 2 : 4;
55 op = (prng_rand_n (2) == 0) ? PIXMAN_OP_SRC : PIXMAN_OP_OVER;
57 src_width = prng_rand_n (MAX_SRC_WIDTH) + 1;
58 src_height = prng_rand_n (MAX_SRC_HEIGHT) + 1;
59 dst_width = prng_rand_n (MAX_DST_WIDTH) + 1;
60 dst_height = prng_rand_n (MAX_DST_HEIGHT) + 1;
61 src_stride = src_width * src_bpp + prng_rand_n (MAX_STRIDE) * src_bpp;
62 dst_stride = dst_width * dst_bpp + prng_rand_n (MAX_STRIDE) * dst_bpp;
70 src_x = -(src_width / 4) + prng_rand_n (src_width * 3 / 2);
71 src_y = -(src_height / 4) + prng_rand_n (src_height * 3 / 2);
72 dst_x = -(dst_width / 4) + prng_rand_n (dst_width * 3 / 2);
73 dst_y = -(dst_height / 4) + prng_rand_n (dst_height * 3 / 2);
74 w = prng_rand_n (dst_width * 3 / 2 - dst_x);
75 h = prng_rand_n (dst_height * 3 / 2 - dst_y);
83 if (prng_rand_n (2) == 0)
89 if (prng_rand_n (2) == 0)
95 src_fmt = src_bpp == 4 ? (prng_rand_n (2) == 0 ?
98 dst_fmt = dst_bpp == 4 ? (prng_rand_n (2) == 0 ?
112 if (prng_rand_n (3) > 0)
114 scale_x = -65536 * 3 + prng_rand_n (65536 * 6);
115 if (prng_rand_n (2))
116 scale_y = -65536 * 3 + prng_rand_n (65536 * 6);
121 if (prng_rand_n (3) > 0)
123 translate_x = -65536 * 3 + prng_rand_n (6 * 65536);
124 if (prng_rand_n (2))
125 translate_y = -65536 * 3 + prng_rand_n (6 * 65536);
131 if (prng_rand_n (4) > 0)
134 switch (prng_rand_n (4))
157 c = prng_rand_n (2 * 65536) - 65536;
158 s = prng_rand_n (2 * 65536) - 65536;
165 if (prng_rand_n (8) == 0)
171 int i = prng_rand_n (2);
172 int j = prng_rand_n (3);
173 int bitnum = prng_rand_n (32);
175 if (prng_rand_n (2))
182 switch (prng_rand_n (4))
205 if (prng_rand_n (2))
232 if (prng_rand_n (8) == 0)
235 int n = prng_rand_n (2) + 1;
239 clip_boxes[i].x1 = prng_rand_n (src_width);
240 clip_boxes[i].y1 = prng_rand_n (src_height);
242 clip_boxes[i].x1 + prng_rand_n (src_width - clip_boxes[i].x1);
244 clip_boxes[i].y1 + prng_rand_n (src_height - clip_boxes[i].y1);
260 if (prng_rand_n (8) == 0)
263 int n = prng_rand_n (2) + 1;
266 clip_boxes[i].x1 = prng_rand_n (dst_width);
267 clip_boxes[i].y1 = prng_rand_n (dst_height);
269 clip_boxes[i].x1 + prng_rand_n (dst_width - clip_boxes[i].x1);
271 clip_boxes[i].y1 + prng_rand_n (dst_height - clip_boxes[i].y1);