This is the mail archive of the
libc-hacker@sourceware.cygnus.com
mailing list for the glibc project.
ELF hash function
- To: libc-hacker@cygnus.com
- Subject: ELF hash function
- From: Ulrich Drepper <drepper@cygnus.com>
- Date: 26 Dec 1998 09:31:48 -0800
- Reply-To: drepper@cygnus.com (Ulrich Drepper)
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 `------------------------