Lines Matching defs:state
25 isc_lfsr_init(isc_lfsr_t *lfsr, isc_uint32_t state, unsigned int bits,
33 lfsr->state = state;
42 if (lfsr->state == 0)
43 lfsr->state = 0xffffffffU >> (32 - lfsr->bits);
47 * Return the next state of the lfsr.
54 * If the previous state is zero, we must fill it with something
57 * First, give the reseed function a crack at it. If the state is
60 if (lfsr->state == 0) {
63 if (lfsr->state == 0)
64 lfsr->state = 0xffffffffU >> (32 - lfsr->bits);
67 if (lfsr->state & 0x01) {
68 lfsr->state = (lfsr->state >> 1) ^ lfsr->tap;
71 lfsr->state >>= 1;
116 return (lfsr->state);
132 * Skip states in lfsr1 and lfsr2 using the other's current state.
133 * Return the final state of lfsr1 ^ lfsr2.
144 skip1 = lfsr1->state & 0x01;
145 skip2 = lfsr2->state & 0x01;