Lines Matching refs:mult

45 	int mult;  member
135 rp->mult = defmult; in parse_ranges()
192 if ((*parse_func) (multstr, &rp->mult) < 0) { in parse_ranges()
250 return ((struct range *)rbuf)[r].mult; in range_mult()
278 long random_range(int min, int max, int mult, char **errp) in random_range() argument
288 if (mult < 1) { in random_range()
302 orig_mult = mult; in random_range()
318 if ((r = min % mult)) /* bump to the next higher 'mult' multiple */ in random_range()
319 min += mult - r; in random_range()
321 if ((r = max % mult)) /* reduce to the next lower 'mult' multiple */ in random_range()
338 nmults = ((max - min) / mult) + 1; in random_range()
345 return (long)(min + (((long)lrand48() % nmults) * mult)); in random_range()
353 return (long)(min + ((randnum % nmults) * mult)); in random_range()
357 return (min + ((lrand48() % nmults) * mult)); in random_range()
365 long random_rangel(long min, long max, long mult, char **errp) in random_rangel() argument
375 if (mult < 1) { in random_rangel()
389 orig_mult = mult; in random_rangel()
405 if ((r = min % mult)) /* bump to the next higher 'mult' multiple */ in random_rangel()
406 min += mult - r; in random_rangel()
408 if ((r = max % mult)) /* reduce to the next lower 'mult' multiple */ in random_rangel()
425 nmults = ((max - min) / mult) + 1; in random_rangel()
432 return (long)(min + (((long)lrand48() % nmults) * mult)); in random_rangel()
440 return (long)(min + ((randnum % nmults) * mult)); in random_rangel()
444 return (min + ((lrand48() % nmults) * mult)); in random_rangel()
452 long long mult, char **errp) in random_rangell() argument
463 if (mult < 1) { in random_rangell()
477 orig_mult = mult; in random_rangell()
493 if ((r = min % mult)) /* bump to the next higher 'mult' multiple */ in random_rangell()
494 min += mult - r; in random_rangell()
496 if ((r = max % mult)) /* reduce to the next lower 'mult' multiple */ in random_rangell()
513 nmults = ((max - min) / mult) + 1; in random_rangell()
520 (((long long)lrand48() % nmults) * mult)); in random_rangell()
527 return (long long)(min + ((randnum % nmults) * mult)); in random_rangell()