PowerPC: strrchr optimization for POWER7/PPC64
commitc7debbdfacbef150aaf9113eb05ccaf2b9e7af6c
authorRajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
Mon, 3 Mar 2014 14:06:41 +0000 (3 08:06 -0600)
committerAdhemerval Zanella <azanella@linux.vnet.ibm.com>
Mon, 3 Mar 2014 14:06:41 +0000 (3 08:06 -0600)
treebaf78c9b58faa86b3996ae3745cb81fd50e2fb58
parent235eed8644eb2deebf839b13b418dbd47bb14c5a
PowerPC: strrchr optimization for POWER7/PPC64

This patch optimizes strrchr() for ppc64. It uses aligned memory
access along with cmpb instruction and CPU prefetch to avoid
cache misses for speed improvement.
ChangeLog
string/strrchr.c
sysdeps/powerpc/powerpc64/multiarch/Makefile
sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S [copied from string/strrchr.c with 55% similarity]
sysdeps/powerpc/powerpc64/multiarch/strrchr-ppc64.c [copied from string/strrchr.c with 58% similarity]
sysdeps/powerpc/powerpc64/multiarch/strrchr.c [copied from string/strrchr.c with 56% similarity]
sysdeps/powerpc/powerpc64/power7/strrchr.S [new file with mode: 0644]