]> 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:22:28 +0000 (14:22 +0000)
commit64896b7d329809127035fde42768a6f7eeffed75
tree14c02acfdf675f44adf24c82d041fcaaaaac97cf
parentfd9a3a36fdcf14d1678c469e8b9033a46aa6c6fb
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