1
0
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:
Adhemerval Zanella
2014-06-20 12:55:16 -05:00
parent d6f68bbef4
commit 17762f6625
11 changed files with 1037 additions and 2 deletions

View File

@ -25,4 +25,4 @@
#define a2 dest
#define a2const
#include <memmove.c>
#include <string/memmove.c>