Searched refs:xseed (Results 1 - 5 of 5) sorted by relevance

/freebsd-11-stable/lib/libc/gen/
H A Dnrand48.c20 nrand48(unsigned short xseed[3]) argument
22 _dorand48(xseed);
23 return ((long) xseed[2] << 15) + ((long) xseed[1] >> 1);
H A Derand48.c20 erand48(unsigned short xseed[3]) argument
22 _dorand48(xseed);
23 return ldexp((double) xseed[0], -48) +
24 ldexp((double) xseed[1], -32) +
25 ldexp((double) xseed[2], -16);
H A Djrand48.c22 jrand48(unsigned short xseed[3]) argument
25 _dorand48(xseed);
26 return ((int32_t)(((uint32_t)xseed[2] << 16) | (uint32_t)xseed[1]));
H A D_rand48.c32 _dorand48(unsigned short xseed[3]) argument
37 accu = (unsigned long) _rand48_mult[0] * (unsigned long) xseed[0] +
41 accu += (unsigned long) _rand48_mult[0] * (unsigned long) xseed[1] +
42 (unsigned long) _rand48_mult[1] * (unsigned long) xseed[0];
45 accu += _rand48_mult[0] * xseed[2] + _rand48_mult[1] * xseed[1] + _rand48_mult[2] * xseed[0];
46 xseed[0] = temp[0];
47 xseed[1] = temp[1];
48 xseed[
[all...]
H A Dseed48.c24 seed48(unsigned short xseed[3]) argument
31 _rand48_seed[0] = xseed[0];
32 _rand48_seed[1] = xseed[1];
33 _rand48_seed[2] = xseed[2];

Completed in 93 milliseconds