[PATCH, AArch64]: Optimize strlen

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


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


More information about the Newlib mailing list