Home
last modified time | relevance | path

Searched refs:mti (Results 1 – 2 of 2) sorted by relevance

/external/webkit/JavaScriptCore/wtf/wince/
Dmt19937ar.c54 static int mti=N+1; /* mti==N+1 means mt[N] is not initialized */ variable
60 for (mti=1; mti<N; mti++) { in init_genrand()
61 mt[mti] = (1812433253UL * (mt[mti-1] ^ (mt[mti-1] >> 30)) + mti); in init_genrand()
66 mt[mti] &= 0xffffffffUL; in init_genrand()
107 if (mti >= N) { /* generate N words at one time */ in genrand_int32()
110 if (mti == N+1) /* if init_genrand() has not been called, */ in genrand_int32()
124 mti = 0; in genrand_int32()
127 y = mt[mti++]; in genrand_int32()
/external/bluetooth/glib/glib/
Dgrand.c114 guint mti; member
282 for (rand->mti=1; rand->mti<N; rand->mti++) in g_rand_set_seed()
283 rand->mt[rand->mti] = (69069 * rand->mt[rand->mti-1]); in g_rand_set_seed()
292 for (rand->mti=1; rand->mti<N; rand->mti++) in g_rand_set_seed()
293 rand->mt[rand->mti] = 1812433253UL * in g_rand_set_seed()
294 (rand->mt[rand->mti-1] ^ (rand->mt[rand->mti-1] >> 30)) + rand->mti; in g_rand_set_seed()
377 if (rand->mti >= N) { /* generate N words at one time */ in g_rand_int()
391 rand->mti = 0; in g_rand_int()
394 y = rand->mt[rand->mti++]; in g_rand_int()