Lines Matching refs:state
34 isc_lfsr_init(isc_lfsr_t *lfsr, isc_uint32_t state, unsigned int bits,
42 lfsr->state = state;
51 if (lfsr->state == 0)
52 lfsr->state = 0xffffffffU >> (32 - lfsr->bits);
56 * Return the next state of the lfsr.
63 * If the previous state is zero, we must fill it with something
66 * First, give the reseed function a crack at it. If the state is
69 if (lfsr->state == 0) {
72 if (lfsr->state == 0)
73 lfsr->state = 0xffffffffU >> (32 - lfsr->bits);
76 if (lfsr->state & 0x01) {
77 lfsr->state = (lfsr->state >> 1) ^ lfsr->tap;
80 lfsr->state >>= 1;
125 return (lfsr->state);
141 * Skip states in lfsr1 and lfsr2 using the other's current state.
142 * Return the final state of lfsr1 ^ lfsr2.
153 skip1 = lfsr1->state & 0x01;
154 skip2 = lfsr2->state & 0x01;