]> git.ipfire.org Git - thirdparty/glibc.git/commit
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>
Wed, 14 Jan 2015 12:58:03 +0000 (07:58 -0500)
commit473b6083820fd156985bf7b2cb60db9d4031b536
tree55738e04d70da6ef7cc6e8b0e036448c40faf8a6
parent299b9464d9a1a48bbcfbc1c7a99604091ec5248f
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]