]> sourceware.org Git - 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, 17 Jan 2023 15:09:18 +0000 (15:09 +0000)
commit51541a229740801882490177fa178e49264b13fb
tree98b0dc945b5ff82427af70fc58773449941afe84
parent1bbb1a2022e126f21810d3d0ebe0a975d5243e43
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>
sysdeps/aarch64/strchr.S
This page took 0.043896 seconds and 5 git commands to generate.