This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

ELF hash function


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   `------------------------


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]