]> git.ipfire.org Git - thirdparty/glibc.git/commit
AArch64: Optimize strchr
authorWilco Dijkstra <wilco.dijkstra@arm.com>
Wed, 11 Jan 2023 13:52:08 +0000 (13:52 +0000)
committerWilco Dijkstra <wilco.dijkstra@arm.com>
Tue, 9 Apr 2024 17:38:42 +0000 (18:38 +0100)
commita7eae18db210afbaf8c668357736cc207d5a963e
tree5bd5093a4a41de6b4eaf9d5112ea805f520c550d
parent97b1c803cbffc60627ae322fc20c3d86bba4547d
AArch64: Optimize strchr

Simplify calculation of the mask using shrn.  Unroll the main loop.
Small strings are 20% faster on modern CPUs.

Reviewed-by: Szabolcs Nagy <szabolcs.nagy@arm.com>
(cherry picked from commit 51541a229740801882490177fa178e49264b13fb)
sysdeps/aarch64/strchr.S