FW: [PATCH, AArch64]: Optimize strlen

Corinna Vinschen vinschen@redhat.com
Tue Jan 20 10:12:00 GMT 2015


On Jan 16 17:07, Wilco Dijkstra wrote:
> > Richard Earnshaw wrote:
> > On 16/01/15 16:29, Wilco Dijkstra wrote:
> > > Optimize the strlen implementation by using a page cross check and a fast check
> > > for nul bytes which reverts to separate loop when a non-ASCII char is encountered.
> > > Speedup on cortex-strings test is ~10%, long ASCII strings are processed ~60%
> > > faster, and on random tests it is ~80% better.
> > >
> > > OK for commit?
> > >
> > >
> > 
> > Please can you re-send with the patch in unified diff format.  ie diff -u.
> > 
> > You also need a ChangeLog entry.
> 
> Cvs diff -u result attached. Changelog:
> 
> 2015-01-16  Wilco Dijkstra  wdijkstr@arm.com 
> 
> 	* libc/machine/aarch64/strlen.S (strlen): Improve performance.

Patch applied.


Thanks,
Corinna

-- 
Corinna Vinschen
Cygwin Maintainer
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/newlib/attachments/20150120/08cce034/attachment.sig>


More information about the Newlib mailing list