This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] powerpc: strncmp optimization for POWER8
- From: Adhemerval Zanella <azanella at linux dot vnet dot ibm dot com>
- To: "GNU C. Library" <libc-alpha at sourceware dot org>
- Date: Tue, 13 Jan 2015 17:44:32 -0200
- Subject: Re: [PATCH] powerpc: strncmp optimization for POWER8
- Authentication-results: sourceware.org; auth=none
- References: <54B3BD77 dot 2070107 at linux dot vnet dot ibm dot com>
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.