mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-24 12:23:31 +08:00
Remove computation of len from inside hash loop.
This commit is contained in:
@ -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>
|
2002-05-16 Nick Clifton <nickc@cambridge.redhat.com>
|
||||||
|
|
||||||
* config.bfd: Add targets for sh64-linux (little endian and
|
* 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 += c + (c << 17);
|
||||||
hash ^= hash >> 2;
|
hash ^= hash >> 2;
|
||||||
++len;
|
|
||||||
}
|
}
|
||||||
|
len = (s - (const unsigned char *) string) - 1;
|
||||||
hash += len + (len << 17);
|
hash += len + (len << 17);
|
||||||
hash ^= hash >> 2;
|
hash ^= hash >> 2;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user