]> git.ipfire.org Git - thirdparty/glibc.git/commit
AArch64: Improve strrchr
authorWilco Dijkstra <wilco.dijkstra@arm.com>
Wed, 11 Jan 2023 13:53:19 +0000 (13:53 +0000)
committerWilco Dijkstra <wilco.dijkstra@arm.com>
Tue, 9 Apr 2024 17:41:06 +0000 (18:41 +0100)
commit062d8a648f6fd8389094008cca625ce5c8a62177
tree49f73c49add1e389fce9aa448361a2fdd8f24794
parent3527d31d0bbafcc8b5b18eb9ebc5f290adeec495
AArch64: Improve strrchr

Use shrn for narrowing the mask which simplifies code and speeds up small
strings.  Unroll the first search loop to improve performance on large
strings.

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