mirror of
git://sourceware.org/git/glibc.git
synced 2025-01-06 12:00:24 +08:00
b42f8cad52
This patch optimizes strstr function for power >= 7 systems. Performance gain is obtained using aligned memory access and usage of cmpb instruction for quicker comparison. The average improvement of this optimization is ~40%. Tested on ppc64 and ppc64le. 2015-07-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com> * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strstr(). * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise. * sysdeps/powerpc/powerpc64/power7/strstr.S: New File. * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: New File. * sysdeps/powerpc/powerpc64/multiarch/strstr-ppc64.c: New File. * sysdeps/powerpc/powerpc64/multiarch/strstr.c: New File. |
||
---|---|---|
.. | ||
fpu | ||
multiarch | ||
add_n.S | ||
bcopy.c | ||
Implies | ||
Makefile | ||
memchr.S | ||
memcmp.S | ||
memcpy.S | ||
memmove.S | ||
mempcpy.S | ||
memrchr.S | ||
memset.S | ||
rawmemchr.S | ||
stpcpy.S | ||
stpncpy.S | ||
strcasecmp_l.S | ||
strcasecmp.S | ||
strchr.S | ||
strchrnul.S | ||
strcmp.S | ||
strcpy.S | ||
strlen.S | ||
strncmp.S | ||
strncpy.S | ||
strnlen.S | ||
strrchr.S | ||
strstr.S | ||
sub_n.S |