[PATCH] Improve memcmp with unaligned loads.

Florian Weimer fweimer@redhat.com
Wed Feb 12 12:21:00 GMT 2014


On 09/18/2013 11:58 PM, Ondřej Bílka wrote:

> A solution come from bit unexpected direction, when I tried to implement
> strcmp I noticed that a same idea applies to memcmp as well and this
> gains us 10% in real workloads.

And more than that in some cases.

Can you add comments to the assembler version, indicating what each of 
the section handles and documenting some of the tricks being used?

-- 
Florian Weimer / Red Hat Product Security Team



More information about the Libc-alpha mailing list