From: Nick Clifton Date: Fri, 17 May 2002 09:52:04 +0000 (+0000) Subject: Remove computation of len from inside hash loop. X-Git-Tag: binutils-2_13-branchpoint~857 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2c13d98be13219212a2038968b616b5c542a46cb;p=external%2Fbinutils.git Remove computation of len from inside hash loop. --- 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 + + * hash.c (bfd_hash_lookup): Remove computation of len from inside + hash loop. + 2002-05-16 Nick Clifton * config.bfd: Add targets for sh64-linux (little endian and diff --git a/bfd/hash.c b/bfd/hash.c index 9766eaf..a498cce 100644 --- a/bfd/hash.c +++ b/bfd/hash.c @@ -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;