[PATCH 2/2] Improve 64bit memcpy/memmove for Corei7 with avx2 instruction

Nix nix@esperi.org.uk
Fri Jun 7 12:18:00 GMT 2013


On 7 Jun 2013, Ondřej Bílka said:

> On Thu, Jun 06, 2013 at 08:11:15PM +0800, Ling Ma wrote:
> I got some afterthoughts how improve memcpy/memset.
>
> First is to copy in backward direction.

Don't we already do this in some situations? That's why there's a new
symbol version of memcpy() et al on glibc 2.14+, because overlapping
memcpy() no longer works and lots and lots of programs were relying on
this (even though it was never ever guaranteed) and were breaking.

-- 
NULL && (void)



More information about the Libc-alpha mailing list