FW: [PATCH, AArch64]: Optimize strlen

Wilco Dijkstra wdijkstr@arm.com
Fri Jan 16 17:07:00 GMT 2015


> 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.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: strlen.txt
URL: <http://sourceware.org/pipermail/newlib/attachments/20150116/54b90570/attachment.txt>


More information about the Newlib mailing list