Searched refs:BcRand (Results 1 – 7 of 7) sorted by relevance
/external/bc/include/ |
D | rand.h | 76 typedef uint64_t BcRand; typedef 132 #define BC_RAND_FOLD(s) ((BcRand) (BC_RAND_CHOP(s) ^ BC_RAND_TRUNC(s))) 139 typedef uint32_t BcRand; typedef 161 #define BC_RAND_FOLD(s) ((BcRand) ((((s) >> 18U) ^ (s)) >> 27U)) 166 ((BcRand) (((v) >> (r)) | ((v) << ((0 - (r)) & BC_RAND_ROTC)))) 168 #define BC_RAND_BITS (sizeof(BcRand) * CHAR_BIT) 193 BcRand bc_rand_int(BcRNG *r); 194 BcRand bc_rand_bounded(BcRNG *r, BcRand bound); 198 void bc_rand_getRands(BcRNG *r, BcRand *s1, BcRand *s2, BcRand *i1, BcRand *i2);
|
D | vm.h | 179 #define BC_MAX_RAND ((BcBigDig) (((BcRand) 0) - 1))
|
/external/bc/src/ |
D | rand.c | 258 static BcRand bc_rand_output(BcRNGData *r) { in bc_rand_output() 328 BcRand bc_rand_int(BcRNG *r) { in bc_rand_int() 340 BcRand bc_rand_bounded(BcRNG *r, BcRand bound) { in bc_rand_bounded() 342 BcRand rand, threshold = (0 - bound) % bound; in bc_rand_bounded() 384 void bc_rand_getRands(BcRNG *r, BcRand *s1, BcRand *s2, BcRand *i1, BcRand *i2) in bc_rand_getRands()
|
D | num.c | 2271 BcRand state1, state2, inc1, inc2; in bc_num_rng() 2353 BcRand s1, s2, i1, i2; in bc_num_createFromRNG() 2415 BcRand r; in bc_num_irand() 2433 BcRand bits = 0; in bc_num_irand() 2503 else r = bc_rand_bounded(rng, (BcRand) modl); in bc_num_irand() 2508 carry = (r >= (BcRand) modl); in bc_num_irand()
|
D | vm.c | 986 vm.maxes[BC_PROG_MAX_RAND] = ((BcRand) 0) - 1;
|
D | library.c | 1178 return (BclRandInt) bc_rand_bounded(&vm.rng, (BcRand) bound); in bcl_rand_bounded()
|
D | program.c | 501 BcRand rand = bc_rand_int(&p->rng); in bc_program_rand()
|