powerpc: strtok{_r} optimization for powerpc64
commita8a7d7d212de1dd8c8d0a59eb9ea1c9289f63be1
authorRajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
Mon, 1 Dec 2014 14:03:58 +0000 (1 09:03 -0500)
committerAdhemerval Zanella <azanella@linux.vnet.ibm.com>
Mon, 1 Dec 2014 14:03:58 +0000 (1 09:03 -0500)
treebc15e7b5963c8942c3c0a605bd9ff1a13776dfbc
parent0d560bbfcf86f619746bcc685780aa8bb03fdd93
powerpc: strtok{_r} optimization for powerpc64

This patch optimizes strtok and strtok_r for POWERPC64.
A table of 256 characters is created and marked based on
the 'accept' argument and used to check for any occurance on
the input string.Loop unrolling is also used to gain improvements.
ChangeLog
sysdeps/powerpc/powerpc64/strtok.S [new file with mode: 0644]
sysdeps/powerpc/powerpc64/strtok_r.S [new file with mode: 0644]