[AArch64] Add optimized strchrnul.
commitbe9d4ccc7fe62751db1a5fdcb31958561dbbda9a
authorRichard Earnshaw <rearnsha@arm.com>
Wed, 5 Nov 2014 13:51:56 +0000 (5 13:51 +0000)
committerMarcus Shawcroft <marcus.shawcroft@arm.com>
Wed, 5 Nov 2014 13:51:56 +0000 (5 13:51 +0000)
tree7a4140cf429ff51370f03fae459f8055701baef2
parent7110166d4fe36899c5ecf6fd31635f3cd75d8931
[AArch64] Add optimized strchrnul.

Here is an optimized implementation of __strchrnul.  The
simplification that we don't have to track precisely why the loop
terminates (match or end-of-string) means we have to do less work in
both setup and the core inner loop.  That means this should never be
slower than strchr.

As with strchr, the use of LD1 means we do not need different versions
for big-/little-endian.
ChangeLog
NEWS
sysdeps/aarch64/strchrnul.S [new file with mode: 0644]