This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] powerpc64: strchr/strchrnul optimization for power8
- From: "Tulio Magno Quites Machado Filho" <tuliom at linux dot vnet dot ibm dot com>
- To: Rajalakshmi Srinivasaraghavan <raji at linux dot vnet dot ibm dot com>, libc-alpha at sourceware dot org
- Cc:
- Date: Tue, 27 Dec 2016 17:56:01 -0200
- Subject: Re: [PATCH] powerpc64: strchr/strchrnul optimization for power8
- Authentication-results: sourceware.org; auth=none
- References: <1478592744-15714-1-git-send-email-raji@linux.vnet.ibm.com>
Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com> writes:
> The P7 code is used for <=32B strings and for > 32B vectorized loops are used.
> This shows as an average 25% improvement depending on the position of search
> character. The performance is same for shorter strings.
> Tested on ppc64 and ppc64le.
>
> 2016-11-08 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
>
> * sysdeps/powerpc/powerpc64/multiarch/Makefile
> (sysdep_routines): Add strchr-power8 and strchrnul_power8.
> * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
> (strchr): Add __strchr_power8 to list of strchr functions.
> (strchrnul): Add __strchrnul_power8 to list of strchr functions.
> * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: New file.
> * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: New file.
> * sysdeps/powerpc/powerpc64/multiarch/strchr.c
> (strchr): Add __strchr_power8 to ifunc list.
> * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c
> (__strchrnul): Add __strchrnul_power8 to ifunc list.
> * sysdeps/powerpc/powerpc64/power8/strchr.S: New file.
> * sysdeps/powerpc/powerpc64/power8/strchrnul.S: New file.
LGTM.
--
Tulio Magno