[PATCH] x86-64: Add memcmp/wmemcmp optimized with AVX2

H.J. Lu hjl.tools@gmail.com
Thu Jun 1 22:29:00 GMT 2017


On Thu, Jun 1, 2017 at 3:14 PM, Richard Henderson <rth@twiddle.net> wrote:
> On 06/01/2017 02:20 PM, Florian Weimer wrote:
>>
>>    bswapq is needed to get an
>> equivalent to that big-endian load.
>
>
> Don't forget about movbe, which will also be available on these avx2
> machines.
>

Here is the updated patch with movbe, bswap and tzcnt.

Any comments?

Thanks.


-- 
H.J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-x86-64-Optimize-memcmp-wmemcmp-with-AVX2-and-MOVBE.patch
Type: text/x-patch
Size: 16536 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20170601/a0b4b109/attachment.bin>


More information about the Libc-alpha mailing list