]> sourceware.org Git - glibc.git/commitdiff
(do_lookup_x): Minimal improvement in hash lookup loop.
authorUlrich Drepper <drepper@redhat.com>
Tue, 21 Aug 2007 14:05:39 +0000 (14:05 +0000)
committerUlrich Drepper <drepper@redhat.com>
Tue, 21 Aug 2007 14:05:39 +0000 (14:05 +0000)
elf/do-lookup.h

index ab9a510ba1804bba363461f11b2df157f913c260..e17d4635262a295eba663978427b3100b718b1cd 100644 (file)
@@ -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]);
This page took 0.043464 seconds and 5 git commands to generate.