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 | a4fce2fabf06a1b1f9438148376b35e3dffd3eb5 (patch) | |
| tree | 74fe517ce81fe2fccac087b9970e23523517a796 /hash.c | |
| parent | 4d76d718e28965be1835c735ee6ed6ca576e2e3e (diff) | |
| download | ruby-a4fce2fabf06a1b1f9438148376b35e3dffd3eb5.tar.gz ruby-a4fce2fabf06a1b1f9438148376b35e3dffd3eb5.tar.xz ruby-a4fce2fabf06a1b1f9438148376b35e3dffd3eb5.zip | |
2000-02-25
git-svn-id: http://svn.ruby-lang.org/repos/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: |
