This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: [PATCH] Add SPU memcmp
- From: Patrick Mansfield <patmans at us dot ibm dot com>
- To: Jeff Johnston <jjohnstn at redhat dot com>, newlib at sourceware dot org
- Date: Thu, 27 Mar 2008 17:32:04 -0700
- Subject: Re: [PATCH] Add SPU memcmp
- References: <20080328002953.GA24024@us.ibm.com>
Ooops ... note this has to be applied after the assert patch for the
Makefile changes.
On Thu, Mar 27, 2008 at 05:29:53PM -0700, Patrick Mansfield wrote:
> Add an SPU memcmp based on an inline _strncmp_internal, and also use
> _strncmp_internal for the SPU strncmp.
>
> There are other changes in progress for EA code that will eventually make
> use of the end_v argument.
>
> This gives from 4% (for short strings) to 60% (for longer strings)
> improvement over the current default newlib memcmp.
>
> newlib/ChangeLog:
>
> 2008-03-27 Patrick Mansfield <patmans@us.ibm.com>
>
> * libc/machine/spu/memcmp.c: New file for SPU optimized memcmp.
> * libc/machine/spu/strncmp.h: New file supply _strncmp_internal.
> * libc/machine/spu/Makefile.am: Add memcmp.c.
> * libc/machine/spu/Makefile.in: Rebuild.
> * libc/machine/spu/strncmp.c: Use _strncmp_internal.