powerpc: Add optimized P8 strspn
authorPaul E. Murphy <murphyp@linux.vnet.ibm.com>
Mon, 14 Mar 2016 21:40:46 +0000 (17:40 -0400)
committerPaul E. Murphy <murphyp@linux.vnet.ibm.com>
Thu, 7 Apr 2016 20:51:28 +0000 (15:51 -0500)
commit25dba0ad054723196fb633ba5d8a463ef5cb775c
tree03f9259662b03ea65b00bc6721afba2d47104bef
parent1d2a8245ff7bcc1d8be54f01e26c49297e446aba
powerpc: Add optimized P8 strspn

This utilizes vectors and bitmasks.  For small needle, large
haystack, the performance improvement is upto 8x.  For short
strings (0-4B), the cost of computing the bitmask dominates,
and is a tad slower.
ChangeLog
sysdeps/powerpc/powerpc64/multiarch/Makefile
sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S [new file with mode: 0644]
sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c [new file with mode: 0644]
sysdeps/powerpc/powerpc64/multiarch/strspn.c [new file with mode: 0644]
sysdeps/powerpc/powerpc64/power8/strspn.S [new file with mode: 0644]