Lines Matching refs:BcRandState
63 static BcRandState bc_rand_addition(uint_fast64_t a, uint_fast64_t b) {
65 BcRandState res;
73 static BcRandState bc_rand_addition2(BcRandState a, BcRandState b) {
75 BcRandState temp, res;
84 static BcRandState bc_rand_multiply(uint_fast64_t a, uint_fast64_t b) {
87 BcRandState carry, res;
107 static BcRandState bc_rand_multiply2(BcRandState a, BcRandState b) {
109 BcRandState c0, c1, c2, carry;
127 r->inc |= (BcRandState) 1UL;
136 r->inc &= ~((BcRandState) 1UL);
197 static BcRandState bc_rand_inc(BcRNGData *r) {
199 BcRandState inc;
222 static void bc_rand_seedState(BcRandState *state, ulong val1, ulong val2) {
225 *state = ((BcRandState) val1) | ((BcRandState) val2) << (BC_LONG_BIT);
254 BcRandState temp = bc_rand_mul2(r->state, bc_rand_multiplier);
360 memcpy(&rng->state, &rng->inc, sizeof(BcRandState));
368 static BcRandState bc_rand_getInc(BcRNGData *r) {
370 BcRandState res;
386 BcRandState inc;