[PATCH] PowerPC: memmove default implementation cleanup

Ondřej Bílka neleai@seznam.cz
Tue Jun 24 16:11:00 GMT 2014


On Tue, Jun 24, 2014 at 11:21:30AM -0300, Adhemerval Zanella wrote:
> This patch removes the powerpc specific logic in memmove and instead
> include default implementation with MEMCPY_OK_FOR_FWD_MEMMOVE defined.
> This lead in a increase performance, since the constraints to use
> memcpy in powerpc code are too restrictive and memcpy can be used for
> any forward memmove (and the rest to PPC implementation is just a copy
> of default one).
> 
> Checked on powerpc32-fpu and powerpc64be. OK to apply?
> 
That looks ok, I would go step more and say that aliasing memcpy to
memmove will differ only by few cycles and could improve performance 
due of cache locality but I did not do test yet.



More information about the Libc-alpha mailing list