ELF hash function

Ulrich Drepper drepper@cygnus.com
Sat Dec 26 09:35:00 GMT 1998


hi,

I've checked in some changes to change the ELF hash function.  The
firts correct a bug (the string has to be unsigned).  Then I moved it
to sysdeps/generic since I have a fast i686 version.  Finaly I rewrote
the inner look a bit.  I found the `if' to slow things done only.
Modern machines execute the shift operation fast to enough to let the
conditional jump dominate the time.  I mention this because on some
machines this might be different (I think mainly about m68k).  In this
case simply create another version with the `if'.  The last change was
simply a reversal of the two bit operation which gained relatively much.

-- 
---------------.      drepper at gnu.org  ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Cygnus Solutions `--' drepper at cygnus.com   `------------------------



More information about the Libc-hacker mailing list