Lines Matching refs:state
214 static long int *state = &randtbl[1]; variable
233 state[0] = x; in srandom()
238 state[i] = (1103515145 * state[i - 1]) + 12345; in srandom()
239 fptr = &state[rand_sep]; in srandom()
240 rptr = &state[0]; in srandom()
260 PTR ostate = (PTR) &state[-1]; in initstate()
263 state[-1] = rand_type; in initstate()
265 state[-1] = (MAX_TYPES * (rptr - state)) + rand_type; in initstate()
302 state = &((long int *) arg_state)[1]; /* First location. */ in initstate()
304 end_ptr = &state[rand_deg]; in initstate()
307 state[-1] = rand_type; in initstate()
309 state[-1] = (MAX_TYPES * (rptr - state)) + rand_type; in initstate()
329 PTR ostate = (PTR) &state[-1]; in setstate()
332 state[-1] = rand_type; in setstate()
334 state[-1] = (MAX_TYPES * (rptr - state)) + rand_type; in setstate()
353 state = &new_state[1]; in setstate()
356 rptr = &state[rear]; in setstate()
357 fptr = &state[(rear + rand_sep) % rand_deg]; in setstate()
360 end_ptr = &state[rand_deg]; in setstate()
381 state[0] = ((state[0] * 1103515245) + 12345) & LONG_MAX; in random()
382 return state[0]; in random()
393 fptr = state; in random()
400 rptr = state; in random()