This is the mail archive of the glibc-bugs@sourceware.org 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]
Other format: [Raw text]

[Bug libc/4937] RFE: micro-efficiency in symbol lookup for GNU_HASH chains


------- Additional Comments From jreiser at BitWagon dot com  2007-08-19 17:00 -------
The second re-writing is incorrect.
    if (*hasharr == (new_hash | (1u & *hasharr)))
fails when (1u == (1u & new_hash)) and (0 == (1u & *hasharr)).  This happens
when the hash of a non-last symbol has the low bit set.  The proposed re-writing
will skip over the chain member even though the original code does not, and the
detailed comparison of the THEN might find the symbol.

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=4937

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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