powerpc: Optimized strncmp for POWER8/PPC64
authorAdhemerval Zanella <azanella@linux.vnet.ibm.com>
Fri, 9 Jan 2015 21:04:26 +0000 (16:04 -0500)
committerAdhemerval Zanella <azanella@linux.vnet.ibm.com>
Tue, 13 Jan 2015 19:35:40 +0000 (14:35 -0500)
commitd3b00f468bec441596877a685a19f43dee88657f
tree2de8d805a29789d272de4eb416019aa68017e61d
parent72607db038df1a1a7987af814aad8d2ed466c45c
powerpc: Optimized strncmp for POWER8/PPC64

This patch adds an optimized POWER8 strncmp.  The implementation focus
on speeding up unaligned cases follwing the ideas of power8 strcmp.

The algorithm first check the initial 16 bytes, then align the first
function source and uses unaligned loads on second argument only.
Aditional checks for page boundaries are done for unaligned cases
(where sources alignment are different).
ChangeLog
NEWS
sysdeps/powerpc/powerpc64/multiarch/Makefile
sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S [new file with mode: 0644]
sysdeps/powerpc/powerpc64/multiarch/strncmp.c
sysdeps/powerpc/powerpc64/power8/strncmp.S [new file with mode: 0644]