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: strncmp optimization for POWER8


On 12-01-2015 10:26, Adhemerval Zanella wrote:
> This patch adds an optimized POWER8 strncmp.  The implementation focus
> on speeding up unaligned cases following the ideas of power8 strcmp.
>
> The algorithm first check the initial 16 bytes, then align the first
> function source and uses unaligned loads on second argument only.
> Aditional checks for page boundaries are done for unaligned cases
> (where sources alignment are different).
>
> Checked on powerpc64 and powerpc64le.
>
> --
>
> 	* sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: New file.
> 	* sysdeps/powerpc/powerpc64/power8/strncmp.S: New file.
> 	* sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
> 	strncmp-power8 object.
> 	* sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
> 	(__libc_ifunc_impl_list): Add __strncmp_power8 implementation.
> 	* sysdeps/powerpc/powerpc64/multiarch/strncmp.c (strncmp): Likewise.
> 	* NEWS: Update.
>
> --

Pushed upstream as d3b00f468bec441596877a685a19f43dee88657f.



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