diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-02-26 00:10:06 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-02-26 00:10:06 +0900 |
| commit | f3e9a066aa267b3b2ed5b95cb6fbc86d68bd9187 (patch) | |
| tree | 6ea0abf58adceb58cc02cc5b4c5c1439f0ec6f72 /mrbgems/mruby-random/src/mt19937ar.c | |
| parent | d747ea72c483446cb6d689cb888cf2488eb2a837 (diff) | |
| parent | feeaea8dcd56566d2b327adc01dc2810d56de9f4 (diff) | |
| download | mruby-f3e9a066aa267b3b2ed5b95cb6fbc86d68bd9187.tar.gz mruby-f3e9a066aa267b3b2ed5b95cb6fbc86d68bd9187.zip | |
Merge branch 'master' of github.com:mruby/mruby
Diffstat (limited to 'mrbgems/mruby-random/src/mt19937ar.c')
| -rw-r--r-- | mrbgems/mruby-random/src/mt19937ar.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mrbgems/mruby-random/src/mt19937ar.c b/mrbgems/mruby-random/src/mt19937ar.c index 2c22b23ad..b237af56d 100644 --- a/mrbgems/mruby-random/src/mt19937ar.c +++ b/mrbgems/mruby-random/src/mt19937ar.c @@ -14,8 +14,10 @@ #define UPPER_MASK 0x80000000UL /* most significant w-r bits */ #define LOWER_MASK 0x7fffffffUL /* least significant r bits */ +#if 0 /* dead_code */ static unsigned long mt[N]; /* the array for the state vector */ static int mti=N+1; /* mti==N+1 means mt[N] is not initialized */ +#endif /* dead_code */ void mrb_random_init_genrand(mt_state *t, unsigned long s) { @@ -74,6 +76,7 @@ double mrb_random_genrand_real1(mt_state *t) /* divided by 2^32-1 */ } +#if 0 /* dead_code */ /* initializes mt[N] with a seed */ void init_genrand(unsigned long s) { @@ -191,3 +194,4 @@ double genrand_res53(void) return(a*67108864.0+b)*(1.0/9007199254740992.0); } /* These real versions are due to Isaku Wada, 2002/01/09 added */ +#endif /* dead_code */ |
