This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] powerpc: Add optimized strcspn for P8


"Paul E. Murphy" <murphyp@linux.vnet.ibm.com> writes:

> diff --git a/sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S b/sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S
> new file mode 100644
> index 0000000..5da5a77
> --- /dev/null
> +++ b/sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S
> @@ -0,0 +1,40 @@
> +/* Optimized strcspn implementation for POWER8.
>...
> +#undef EALIGN
> +#define EALIGN(name, alignt, words)				\
> +  .section ".text";						\
> +  ENTRY_2(__strcspn_power8)					\
> +  .align ALIGNARG(alignt);					\
> +  EALIGN_W_##words;						\
> +  BODY_LABEL(__strcspn_power8):					\
> +  cfi_startproc;						\
> +  LOCALENTRY(__strcspn_power8)
> +
> +#undef END
> +#define END(name)						\
> +  cfi_endproc;							\
> +  TRACEBACK(__strcspn_power8)					\
> +  END_2(__strcspn_power8)

Can't you replace this block of code by?

#define STRSPN  __strcspn_power8

That would require a few more changes to the #ifndef USE_AS_STRCSPN block as
well.

-- 
Tulio Magno


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]