This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Add SPU memcmp


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]