diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-02-25 03:51:23 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-02-25 03:51:23 +0000 |
commit | 7ed66b9e1da2b1a364659562ff918afbec005004 (patch) | |
tree | 74fe517ce81fe2fccac087b9970e23523517a796 /hash.c | |
parent | e13f96f413dc40adaf1104decb10f80ddf636aa3 (diff) | |
download | ruby-7ed66b9e1da2b1a364659562ff918afbec005004.tar.gz |
2000-02-25
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@627 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'hash.c')
-rw-r--r-- | hash.c | 16 |
1 files changed, 0 insertions, 16 deletions
@@ -89,23 +89,7 @@ rb_any_hash(a) break; case T_STRING: -#if 0 hval = rb_str_hash(a); -#else - { - register const char *p = RSTRING(a)->ptr; - register int len = RSTRING(a)->len; - register unsigned int h = 0, g; - - while (len--) { - h = ( h << 4 ) + *p++; - if ( g = h & 0xF0000000 ) - h ^= g >> 24; - h &= ~g; - } - hval = h; - } -#endif break; default: |