]> git.ipfire.org Git - thirdparty/glibc.git/commit
AArch64: Improve generic strlen
authorWilco Dijkstra <wilco.dijkstra@arm.com>
Wed, 7 Aug 2024 13:43:47 +0000 (14:43 +0100)
committerWilco Dijkstra <wilco.dijkstra@arm.com>
Fri, 28 Feb 2025 14:31:33 +0000 (14:31 +0000)
commit65a96a6f2bb9f6f6f896394662279d263d59cdd2
tree050f357eee25890709947360f7eec7503a6e1cfd
parent4073e4ee2c68de89b7220afba8d0780f86d9c60e
AArch64: Improve generic strlen

Improve performance by handling another 16 bytes before entering the loop.
Use ADDHN in the loop to avoid SHRN+FMOV when it terminates.  Change final
size computation to avoid increasing latency.  On Neoverse V1 performance
of the random strlen benchmark improves by 4.6%.

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
(cherry picked from commit 3dc426b642dcafdbc11a99f2767e081d086f5fc7)
sysdeps/aarch64/strlen.S