]> git.ipfire.org Git - thirdparty/glibc.git/commit
PowerPC - Optimization for str[n]casecmp functions
authorAdhemerval Zanella <azanella@linux.vnet.ibm.com>
Fri, 30 Dec 2011 00:43:33 +0000 (19:43 -0500)
committerAdhemerval Zanella <azanella@linux.vnet.ibm.com>
Fri, 30 Dec 2011 00:43:33 +0000 (19:43 -0500)
commitb20eec6a2b7056d4a1737a92574cab6d15225796
treefb4b8e1422fa11219e79370fc5718534fb5b313b
parenta960be3fad233bd721f64dfe62d3f0ee798d26e3
PowerPC - Optimization for str[n]casecmp functions

This patch provides throughput boost for the strcasecmp function
(25% on ppc32 and 40% on ppc64) and strncasecmp (15% on both ppc32
and ppc64) for POWER7. The optimization is done by manually
(strcasecmp) or automatically (strncasecmp) unrolling the test loop
to avoid CPU stalls caused by a test followed by a load.
ChangeLog
sysdeps/powerpc/Makefile
sysdeps/powerpc/locale-defines.sym [new file with mode: 0644]
sysdeps/powerpc/powerpc32/power7/Makefile [new file with mode: 0644]
sysdeps/powerpc/powerpc32/power7/strcasecmp.S [new file with mode: 0644]
sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S [new file with mode: 0644]
sysdeps/powerpc/powerpc64/power7/Makefile
sysdeps/powerpc/powerpc64/power7/strcasecmp.S [new file with mode: 0644]
sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S [new file with mode: 0644]