]> sourceware.org Git - 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>
Wed, 7 Aug 2024 13:58:46 +0000 (14:58 +0100)
commit3dc426b642dcafdbc11a99f2767e081d086f5fc7
tree058c20fba971358470c60d25c67afff6fe505100
parentd5ce0e960dea325ccf12769681d5ce45f7b7411d
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>
sysdeps/aarch64/strlen.S
This page took 0.034866 seconds and 5 git commands to generate.