diff options
| author | Yukihiro Matsumoto <[email protected]> | 2012-05-22 18:49:30 +0900 |
|---|---|---|
| committer | Yukihiro Matsumoto <[email protected]> | 2012-05-22 18:49:30 +0900 |
| commit | c9930d1c3246015fdb3e923065244c976ebddcc0 (patch) | |
| tree | 88403f1e0696a077186d964d9f60f45dcadb3319 /include | |
| parent | 6e67d83c95e8dd8f216ca07d4a1f939f4a315938 (diff) | |
| download | mruby-c9930d1c3246015fdb3e923065244c976ebddcc0.tar.gz mruby-c9930d1c3246015fdb3e923065244c976ebddcc0.zip | |
remove unused MT code from hash.h
Diffstat (limited to 'include')
| -rw-r--r-- | include/mruby/hash.h | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/include/mruby/hash.h b/include/mruby/hash.h index acc8181ad..0de5c5f7e 100644 --- a/include/mruby/hash.h +++ b/include/mruby/hash.h @@ -17,22 +17,6 @@ struct RHash { struct kh_ht *ht; }; -#define N 624 -#define M 397 -#define MATRIX_A 0x9908b0dfU /* constant vector a */ -#define UMASK 0x80000000U /* most significant w-r bits */ -#define LMASK 0x7fffffffU /* least significant r bits */ -#define MIXBITS(u,v) ( ((u) & UMASK) | ((v) & LMASK) ) -#define TWIST(u,v) ((MIXBITS(u,v) >> 1) ^ ((v)&1U ? MATRIX_A : 0U)) -enum {MT_MAX_STATE = N}; - -struct MT { - /* assume int is enough to store 32bits */ - unsigned int state[N]; /* the array for the state vector */ - unsigned int *next; - int left; -}; - #define mrb_hash_end(h) st_hash_end(h) #define mrb_hash_uint(h, i) st_hash_uint(h, i) |
