This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] powerpc: Handle worstcase behavior in strstr() for POWER7
- 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>
- Cc: libc-alpha at sourceware dot org
- Cc:
- Date: Tue, 25 Aug 2015 13:45:10 -0300
- Subject: Re: [PATCH] powerpc: Handle worstcase behavior in strstr() for POWER7
- Authentication-results: sourceware.org; auth=none
- References: <1439917856-27196-1-git-send-email-raji at linux dot vnet dot ibm dot com>
Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com> writes:
> Instead of checking needle length, constant 'n' number of comparisons
> is checked to fall back to default implementation. This patch is tested
> on powerpc64 and powerpc64le.
>
> 2015-08-18 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
>
> * sysdeps/powerpc/powerpc64/power7/strstr.S: Handle worst case.
LGTM too.
I'm pushing it.
Thanks!
--
Tulio Magno