This is the mail archive of the
libc-ports@sources.redhat.com
mailing list for the libc-ports project.
Re: [Patch, mips] Faster strcmp for mips
- From: Matt Turner <mattst88 at gmail dot com>
- To: Steve Ellcey <sellcey at mips dot com>
- Cc: libc-ports at sourceware dot org
- Date: Wed, 18 Feb 2015 23:24:48 -0800
- Subject: Re: [Patch, mips] Faster strcmp for mips
- Authentication-results: sourceware.org; auth=none
- References: <1384464221 dot 2484 dot 86 dot camel at ubuntu-sellcey>
On Thu, Nov 14, 2013 at 1:23 PM, Steve Ellcey <sellcey@mips.com> wrote:
>
> I have created an optimized strcmp routine for MIPS and would like to check
> it in. I verified it by running 'make check' and I also ran 'make bench'
> to check the performance. This function is slightly slower then the current
> generic strcmp for strings that are not aligned, but much faster when strings
> are aligned because it will then load and compare either 2, 4, or 8 bytes at a
> time.
>
> This means it could be loading bytes beyond the end of the strings being
> compared but it looks like other architecture specific strcmp functions
> are also doing this optimization and the newlib version of strcmp also does
> this.
>
> OK to checkin?
>
> I have attached the original and new bench-strcmp.out files in case anyone
> wants to compare the old and new strcmp performance results.
>
> Steve Ellcey
> sellcey@mips.com
>
>
> 2013-11-14 Steve Ellcey <sellcey@mips.com>
>
> * sysdeps/mips/strcmp.c: New.
>
>
Doesn't seem that this was ever committed?