[PATCH v3] powerpc: Add optimized P8 strspn
Tulio Magno Quites Machado Filho
tuliom@linux.vnet.ibm.com
Thu Apr 7 18:36:00 GMT 2016
"Paul E. Murphy" <murphyp@linux.vnet.ibm.com> writes:
> diff --git a/sysdeps/powerpc/powerpc64/multiarch/Makefile b/sysdeps/powerpc/powerpc64/multiarch/Makefile
> index 3b0e3a0..7ed56bf 100644
> --- a/sysdeps/powerpc/powerpc64/multiarch/Makefile
> +++ b/sysdeps/powerpc/powerpc64/multiarch/Makefile
> @@ -19,7 +19,8 @@ sysdep_routines += memcpy-power7 memcpy-a2 memcpy-power6 memcpy-cell \
> strcmp-power8 strcmp-power7 strcmp-ppc64 \
> strcat-power8 strcat-power7 strcat-ppc64 \
> memmove-power7 memmove-ppc64 wordcopy-ppc64 bcopy-ppc64 \
> - strncpy-power8 strstr-power7 strstr-ppc64
> + strncpy-power8 strstr-power7 strstr-ppc64 \
> + strspn-power8 strspn-ppc64
I'm afraid you'll have another conflict here with due to the strlen
optimization and the strcasestr optimization.
> +/* size_t [r3] strspn (const char *string [r3],
> + const char *needleAccept [r4] */
Missing ) here ----------------------------------------^
LGTM.
--
Tulio Magno
More information about the Libc-alpha
mailing list