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/1262] Use larger-block comparisons for memcmp on x86?


------- Additional Comments From greenrd at greenrd dot org  2005-08-29 00:41 -------
Sorry, the speedup figure was also incorrect. It is actually 93% faster than
current memcmp for comparing 220 bytes, and 53% faster than a trivial loop
(which shows that memcmp is _slower_ than a trivial loop in this case!)

Also, code would have to be added to deal with comparing the first non-matching
chars (because in my case I was only interested in "are they equal?" not "which
is greater?"). Hmm. Actually I'm not sure that this would be an improvement
after all. Need to run some tests.

-- 


http://sources.redhat.com/bugzilla/show_bug.cgi?id=1262

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