]> 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>
Mon, 8 Apr 2024 15:46:23 +0000 (16:46 +0100)
commit600098c58ab53107a76237cba8b90ce26b253b56
tree3a17f4074c25a2b72a3c4d26f01b0bc6d56cb47f
parent7cbcc959270dcf25789b2f09c4bf1c60a86b760a
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