projects
/
platform
/
upstream
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b211fe0
)
(do_lookup_x): Minimal improvement in hash lookup loop.
author
Ulrich Drepper
<drepper@redhat.com>
Tue, 21 Aug 2007 14:05:39 +0000
(14:05 +0000)
committer
Ulrich Drepper
<drepper@redhat.com>
Tue, 21 Aug 2007 14:05:39 +0000
(14:05 +0000)
elf/do-lookup.h
patch
|
blob
|
history
diff --git
a/elf/do-lookup.h
b/elf/do-lookup.h
index ab9a510ba1804bba363461f11b2df157f913c260..e17d4635262a295eba663978427b3100b718b1cd 100644
(file)
--- a/
elf/do-lookup.h
+++ b/
elf/do-lookup.h
@@
-190,7
+190,7
@@
do_lookup_x (const char *undef_name, uint_fast32_t new_hash,
const Elf32_Word *hasharr = &map->l_gnu_chain_zero[bucket];
do
- if ((
*hasharr & ~1u) == (new_hash & ~1u)
)
+ if ((
(*hasharr ^ new_hash) >> 1) == 0
)
{
symidx = hasharr - map->l_gnu_chain_zero;
sym = check_match (&symtab[symidx]);