diff options
author | Nick Clifton <nickc@redhat.com> | 2002-05-17 09:52:04 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2002-05-17 09:52:04 +0000 |
commit | 2c13d98be13219212a2038968b616b5c542a46cb (patch) | |
tree | 21345dd4214d694a024cd0e1757ea17f828640fb /bfd | |
parent | ab3b81262e3164b572fc8eada737809cc09c92f8 (diff) | |
download | gdb-2c13d98be13219212a2038968b616b5c542a46cb.zip gdb-2c13d98be13219212a2038968b616b5c542a46cb.tar.gz gdb-2c13d98be13219212a2038968b616b5c542a46cb.tar.bz2 |
Remove computation of len from inside hash loop.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 5 | ||||
-rw-r--r-- | bfd/hash.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 98281dd..9d1a0b0 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2002-05-17 Stuart Balfour <sbalfour@cisco.com> + + * hash.c (bfd_hash_lookup): Remove computation of len from inside + hash loop. + 2002-05-16 Nick Clifton <nickc@cambridge.redhat.com> * config.bfd: Add targets for sh64-linux (little endian and @@ -375,8 +375,8 @@ bfd_hash_lookup (table, string, create, copy) { hash += c + (c << 17); hash ^= hash >> 2; - ++len; } + len = (s - (const unsigned char *) string) - 1; hash += len + (len << 17); hash ^= hash >> 2; |