]> git.ipfire.org Git - thirdparty/glibc.git/commit - ChangeLog
PowerPC: optimized strpbrk for POWER7
authorAdhemerval Zanella <azanella@linux.vnet.ibm.com>
Thu, 20 Mar 2014 20:28:07 +0000 (15:28 -0500)
committerAdhemerval Zanella <azanella@linux.vnet.ibm.com>
Fri, 21 Mar 2014 00:46:13 +0000 (19:46 -0500)
commit6f23d0939e9651d8ac3c77a835fb6464b35a1dc4
tree973400ed55f2eb85767f120cc41c33337abef187
parent8c92dfff412c20dc0c483ea68444d093a5672de0
PowerPC: optimized strpbrk for POWER7

This patch add an optimized strpbrk for POWER7 by using a different
algorithm than default implementation: it constructs a table based on
the 'accept' argument and use this table to check for any occurance on
the input string. The idea is similar as x86_64 uses.
For PowerPC some tunings were added, such as unroll loops and memory
clear using VSX instructions.
ChangeLog
string/strpbrk.c
sysdeps/powerpc/powerpc64/multiarch/Makefile
sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
sysdeps/powerpc/powerpc64/multiarch/strpbrk-power7.S [new file with mode: 0644]
sysdeps/powerpc/powerpc64/multiarch/strpbrk-ppc64.c [new file with mode: 0644]
sysdeps/powerpc/powerpc64/multiarch/strpbrk.c [new file with mode: 0644]
sysdeps/powerpc/powerpc64/power7/strpbrk.S [new file with mode: 0644]