glibc/sysdeps/powerpc/powerpc64/multiarch
Wainer dos Santos Moschetta 18b6e2c86c powerpc64: Add POWER8 strnlen
Added strnlen POWER8 otimized for long strings. It delivers
same performance as POWER7 implementation for short strings.

This takes advantage of reasonably performing unaligned loads
and bit permutes to check the first 1-16 bytes until
quadword aligned, then checks in 64 bytes strides until unsafe,
then 16 bytes, truncating the count if need be.

Likewise, the POWER7 code is recycled for less than 32 bytes strings.

Tested on ppc64 and ppc64le.

	* sysdeps/powerpc/powerpc64/multiarch/Makefile
	(sysdep_routines): Add strnlen-power8.
	* sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
	(strnlen): Add __strnlen_power8 to list of strnlen functions.
	* sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S:
	New file.
	* sysdeps/powerpc/powerpc64/multiarch/strnlen.c
	(__strnlen): Add __strnlen_power8 to ifunc list.
	* sysdeps/powerpc/powerpc64/power8/strnlen.S: New file.
2017-04-05 10:26:58 -03:00
..
bcopy-ppc64.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
bcopy.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
bzero.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
ifunc-impl-list.c powerpc64: Add POWER8 strnlen 2017-04-05 10:26:58 -03:00
init-arch.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
Makefile powerpc64: Add POWER8 strnlen 2017-04-05 10:26:58 -03:00
memchr-power7.S Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
memchr-ppc64.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
memchr.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
memcmp-power4.S Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
memcmp-power7.S Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
memcmp-ppc64.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
memcmp.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
memcpy-a2.S Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
memcpy-cell.S Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
memcpy-power4.S Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
memcpy-power6.S Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
memcpy-power7.S Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
memcpy-ppc64.S Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
memcpy.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
memmove-power7.S Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
memmove-ppc64.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
memmove.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
mempcpy-power7.S Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
mempcpy-ppc64.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
mempcpy.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
memrchr-power7.S Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
memrchr-ppc64.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
memrchr.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
memset-power4.S Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
memset-power6.S Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
memset-power7.S Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
memset-power8.S Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
memset-ppc64.S Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
memset.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
rawmemchr-power7.S Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
rawmemchr-ppc64.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
rawmemchr.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
rtld-memset.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
rtld-strchr.S Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
stpcpy-power7.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
stpcpy-power8.S Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
stpcpy-ppc64.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
stpcpy.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
stpncpy-power7.S Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
stpncpy-power8.S Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
stpncpy-ppc64.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
stpncpy.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
strcasecmp_l-power7.S Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
strcasecmp_l.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
strcasecmp-power7.S Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
strcasecmp-power8.S Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
strcasecmp-ppc64.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
strcasecmp.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
strcasestr-power8.S powerpc: Use latest optimizations for internal function calls 2017-02-07 10:42:06 +05:30
strcasestr-ppc64.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
strcasestr.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
strcat-power7.c Remove duplicate strcat implementations 2017-01-03 17:48:03 -02:00
strcat-power8.c powerpc: Use latest optimizations for internal function calls 2017-02-07 10:42:06 +05:30
strcat-ppc64.c Remove duplicate strcat implementations 2017-01-03 17:48:03 -02:00
strcat.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
strchr-power7.S Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
strchr-power8.S Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
strchr-ppc64.S Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
strchr.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
strchrnul-power7.S Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
strchrnul-power8.S Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
strchrnul-ppc64.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
strchrnul.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
strcmp-power7.S Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
strcmp-power8.S Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
strcmp-power9.S Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
strcmp-ppc64.S Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
strcmp.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
strcpy-power7.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
strcpy-power8.S Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
strcpy-ppc64.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
strcpy.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
strcspn-power8.S Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
strcspn-ppc64.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
strcspn.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
strlen-power7.S Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
strlen-power8.S Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
strlen-ppc64.S Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
strlen.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
strncase_l-power7.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
strncase_l.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
strncase-power7.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
strncase-power8.S Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
strncase-ppc64.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
strncase.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
strncat-power7.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
strncat-ppc64.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
strncat.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
strncmp-power4.S Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
strncmp-power7.S Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
strncmp-power8.S Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
strncmp-power9.S Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
strncmp-ppc64.S Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
strncmp.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
strncpy-power7.S Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
strncpy-power8.S Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
strncpy-ppc64.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
strncpy.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
strnlen-power7.S Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
strnlen-power8.S powerpc64: Add POWER8 strnlen 2017-04-05 10:26:58 -03:00
strnlen-ppc64.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
strnlen.c powerpc64: Add POWER8 strnlen 2017-04-05 10:26:58 -03:00
strrchr-power7.S Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
strrchr-ppc64.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
strrchr.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
strspn-power8.S Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
strspn-ppc64.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
strspn.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
strstr-power7.S Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
strstr-ppc64.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
strstr.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
wcschr-power6.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
wcschr-power7.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
wcschr-ppc64.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
wcschr.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
wcscpy-power6.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
wcscpy-power7.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
wcscpy-ppc64.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
wcscpy.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
wcsrchr-power6.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
wcsrchr-power7.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
wcsrchr-ppc64.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
wcsrchr.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
wordcopy-ppc64.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00