]> 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:55:09 +0000 (14:55 +0000)
commit7feb4c414e060e4dc655643c9bf0f9cf94c3b4fb
treeb8af6f89645c7773da28f5f6801ee25ada5ebb97
parentb989519fe1683c204ac24ec92830e3fe3bfaccad
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