]> 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 18:11:00 +0000 (19:11 +0100)
commitaf3cbeec36aa371d4c8242f3e961cc05a6da66f6
tree5a1fdb1899e8bc437b53f495130afb13ebef7d57
parent83cb4f50261ecc1110944cc662872efa0f017002
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