[PATCH] Add SPU memcmp

Patrick Mansfield patmans@us.ibm.com
Tue Apr 1 19:00:00 GMT 2008


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.



More information about the Newlib mailing list