about summary refs log tree commit diff
path: root/sysdeps/powerpc/powerpc32/power4/multiarch/memmove-ppc.c
diff options
context:
space:
mode:
authorAdhemerval Zanella <azanella@linux.vnet.ibm.com>2015-01-21 07:57:14 -0500
committerAdhemerval Zanella <azanella@linux.vnet.ibm.com>2015-02-09 06:42:28 -0500
commit10169938b14dbceaa29e4c3deccc15b9a6869ef9 (patch)
tree7d91d491137a0eaa8e105b4ee99ddcbb7f991a90 /sysdeps/powerpc/powerpc32/power4/multiarch/memmove-ppc.c
parent8548a53d699399e795a70e066401753622d797e3 (diff)
downloadglibc-10169938b14dbceaa29e4c3deccc15b9a6869ef9.tar.gz
glibc-10169938b14dbceaa29e4c3deccc15b9a6869ef9.tar.xz
glibc-10169938b14dbceaa29e4c3deccc15b9a6869ef9.zip
powerpc: wordcopy/memmove cleanup for ppc32
This patch cleanup some multiarch code related to memmmove
optimization. Initial IFUNC support added specialized wordcopy
symbols which turned in local IFUNC calls used by memmove default
implementation.  The patch removes the internal IFUNC for wordcopy
symbols and uses local branches in the memmmove optimization instead.
Diffstat (limited to 'sysdeps/powerpc/powerpc32/power4/multiarch/memmove-ppc.c')
-rw-r--r--sysdeps/powerpc/powerpc32/power4/multiarch/memmove-ppc.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/sysdeps/powerpc/powerpc32/power4/multiarch/memmove-ppc.c b/sysdeps/powerpc/powerpc32/power4/multiarch/memmove-ppc.c
index d7ba5a8489..b543a8a1fd 100644
--- a/sysdeps/powerpc/powerpc32/power4/multiarch/memmove-ppc.c
+++ b/sysdeps/powerpc/powerpc32/power4/multiarch/memmove-ppc.c
@@ -17,6 +17,17 @@
    not, see <http://www.gnu.org/licenses/>.  */
 
 #include <string.h>
+#include <memcopy.h>
+
+extern __typeof (_wordcopy_fwd_aligned) _wordcopy_fwd_aligned_ppc;
+extern __typeof (_wordcopy_fwd_dest_aligned) _wordcopy_fwd_dest_aligned_ppc;
+extern __typeof (_wordcopy_bwd_aligned) _wordcopy_bwd_aligned_ppc;
+extern __typeof (_wordcopy_bwd_dest_aligned) _wordcopy_bwd_dest_aligned_ppc;
+
+#define _wordcopy_fwd_aligned       _wordcopy_fwd_aligned_ppc
+#define _wordcopy_fwd_dest_aligned  _wordcopy_fwd_dest_aligned_ppc
+#define _wordcopy_bwd_aligned       _wordcopy_bwd_aligned_ppc
+#define _wordcopy_bwd_dest_aligned  _wordcopy_bwd_dest_aligned_ppc
 
 extern __typeof (memcpy) __memcpy_ppc;
 #define memcpy __memcpy_ppc