Skip to content
Commit 51541a22 authored by Wilco Dijkstra's avatar Wilco Dijkstra
Browse files

AArch64: Optimize strchr



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

Reviewed-by: default avatarSzabolcs Nagy <szabolcs.nagy@arm.com>
parent 1bbb1a20
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment