PATCH: Optimize memcmp for ia32

H. J. Lu hjl@lucon.org
Fri Feb 6 06:08:00 GMT 2004


On Thu, Feb 05, 2004 at 07:02:33AM +0100, Andreas Jaeger wrote:
> "H. J. Lu" <hjl@lucon.org> writes:
> 
> > This patch optimizes memcmp for ia32. I got average speeup by around
> > 400%.
> 
> ia32? I haven't seen a processor called ia32 ;-)
> 
> On which actual implementations did you test it?  Does it bring a
> speed up on all supported platforms?
> 

I tested it on all available Pentium 4/M processors. I believe it
should benefit all modern processors. BTW, I used test-memcmp.c to
measure the speedup.


H.J.



More information about the Libc-alpha mailing list