Lines Matching defs:mt
32 static unsigned long mt[N]; /* the array for the state vector */
33 static int mti=N+1; /* mti==N+1 means mt[N] is not initialized */
37 /* setting initial seeds to mt[N] using the generator Line 25 of Table 1
43 mt[0]= seed & 0xffffffff;
45 mt[mti] = (69069 * mt[mti-1]) & 0xffffffff;
78 y = (mt[kk]&UPPER_MASK)|(mt[kk+1]&LOWER_MASK);
79 mt[kk] = mt[kk+M] ^ (y >> 1) ^ mag01[y & 0x1];
82 y = (mt[kk]&UPPER_MASK)|(mt[kk+1]&LOWER_MASK);
83 mt[kk] = mt[kk+(M-N)] ^ (y >> 1) ^ mag01[y & 0x1];
85 y = (mt[N-1]&UPPER_MASK)|(mt[0]&LOWER_MASK);
86 mt[N-1] = mt[M-1] ^ (y >> 1) ^ mag01[y & 0x1];
90 y = mt[mti++];