Lines Matching refs:mt
124 uint32_t *mt; in genrand_uint32() local
126 mt = self->state; in genrand_uint32()
131 y = (mt[kk]&UPPER_MASK)|(mt[kk+1]&LOWER_MASK); in genrand_uint32()
132 mt[kk] = mt[kk+M] ^ (y >> 1) ^ mag01[y & 0x1U]; in genrand_uint32()
135 y = (mt[kk]&UPPER_MASK)|(mt[kk+1]&LOWER_MASK); in genrand_uint32()
136 mt[kk] = mt[kk+(M-N)] ^ (y >> 1) ^ mag01[y & 0x1U]; in genrand_uint32()
138 y = (mt[N-1]&UPPER_MASK)|(mt[0]&LOWER_MASK); in genrand_uint32()
139 mt[N-1] = mt[M-1] ^ (y >> 1) ^ mag01[y & 0x1U]; in genrand_uint32()
144 y = mt[self->index++]; in genrand_uint32()
183 uint32_t *mt; in init_genrand() local
185 mt = self->state; in init_genrand()
186 mt[0]= s; in init_genrand()
188 mt[mti] = in init_genrand()
189 (1812433253U * (mt[mti-1] ^ (mt[mti-1] >> 30)) + mti); in init_genrand()
206 uint32_t *mt; in init_by_array() local
208 mt = self->state; in init_by_array()
213 mt[i] = (mt[i] ^ ((mt[i-1] ^ (mt[i-1] >> 30)) * 1664525U)) in init_by_array()
216 if (i>=N) { mt[0] = mt[N-1]; i=1; } in init_by_array()
220 mt[i] = (mt[i] ^ ((mt[i-1] ^ (mt[i-1] >> 30)) * 1566083941U)) in init_by_array()
223 if (i>=N) { mt[0] = mt[N-1]; i=1; } in init_by_array()
226 mt[0] = 0x80000000U; /* MSB is 1; assuring non-zero initial array */ in init_by_array()