mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-28 00:21:52 +03:00
PowerPC: optimized memmove for POWER7/PPC64
This patch adds an optimized memmove optimization for POWER7/powerpc64. Basically the idea is to use the memcpy for POWER7 on non-overlapped memory regions and a optimized backward memcpy for memory regions that overlap (similar to the idea of string/memmove.c). The backward memcpy algorithm used is similar the one use for memcpy for POWER7, with adjustments done for alignment. The difference is memory is always aligned to 16 bytes before using VSX/altivec instructions.
This commit is contained in:
@ -25,4 +25,4 @@
|
||||
#define a2 dest
|
||||
#define a2const
|
||||
|
||||
#include <memmove.c>
|
||||
#include <string/memmove.c>
|
||||
|
Reference in New Issue
Block a user