mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-01-18 12:24:38 +08:00
Remove computation of len from inside hash loop.
This commit is contained in:
parent
ab3b81262e
commit
2c13d98be1
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user