Lines Matching refs:max

44 	int max;  member
134 rp->max = defmax; in parse_ranges()
172 rp->max = rp->min; in parse_ranges()
174 if ((*parse_func) (n2str, &rp->max) < 0) { in parse_ranges()
245 return ((struct range *)rbuf)[r].max; in range_max()
278 long random_range(int min, int max, int mult, char **errp) in random_range() argument
301 orig_max = max; in random_range()
308 if (max < min) { in random_range()
309 tmp = max; in random_range()
310 max = min; in random_range()
321 if ((r = max % mult)) /* reduce to the next lower 'mult' multiple */ in random_range()
322 max -= r; in random_range()
324 if (min > max) { /* no 'mult' multiples between min & max */ in random_range()
338 nmults = ((max - min) / mult) + 1; in random_range()
344 if (max <= (long)2147483647) { in random_range()
352 randnum = divider(min, max, 0, -1); in random_range()
365 long random_rangel(long min, long max, long mult, char **errp) in random_rangel() argument
388 orig_max = max; in random_rangel()
395 if (max < min) { in random_rangel()
396 tmp = max; in random_rangel()
397 max = min; in random_rangel()
408 if ((r = max % mult)) /* reduce to the next lower 'mult' multiple */ in random_rangel()
409 max -= r; in random_rangel()
411 if (min > max) { /* no 'mult' multiples between min & max */ in random_rangel()
425 nmults = ((max - min) / mult) + 1; in random_rangel()
431 if (max <= (long)2147483647) { in random_rangel()
439 randnum = divider(min, max, 0, -1); in random_rangel()
451 long long random_rangell(long long min, long long max, in random_rangell() argument
476 orig_max = max; in random_rangell()
483 if (max < min) { in random_rangell()
484 tmp = max; in random_rangell()
485 max = min; in random_rangell()
496 if ((r = max % mult)) /* reduce to the next lower 'mult' multiple */ in random_rangell()
497 max -= r; in random_rangell()
499 if (min > max) { /* no 'mult' multiples between min & max */ in random_rangell()
513 nmults = ((max - min) / mult) + 1; in random_rangell()
518 if (max <= (long)2147483647) { in random_rangell()
526 randnum = divider(min, max, 0, -1); in random_rangell()
547 divider(long long min, long long max, long long cnt, long long rand) in divider() argument
566 diff = max - min; in divider()
575 printf("divider: min=%lld, max=%lld, cnt=%lld, rand=%lld\n", min, max, in divider()
596 return divider(med, max, cnt + 1, rand); in divider()