This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/1262] Use larger-block comparisons for memcmp on x86?
- From: "greenrd at greenrd dot org" <sourceware-bugzilla at sources dot redhat dot com>
- To: glibc-bugs at sources dot redhat dot com
- Date: 29 Aug 2005 00:41:26 -0000
- Subject: [Bug libc/1262] Use larger-block comparisons for memcmp on x86?
- References: <20050829003224.1262.greenrd@greenrd.org>
- Reply-to: sourceware-bugzilla at sources dot redhat dot com
------- 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.