]> 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 15:03:04 +0000 (15:03 +0000)
commit4909fb4d963450e9fb08d8cb3255e7b2f34a3aef
treea28318cf4839f8275ada7a99a73ccf65f71f8543
parent0487893d5c5bc6710d83d7c3152d888a0339559e
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