Skip to content
Commit 19645876 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>
(cherry picked from commit 51541a22)
parent 2a4c4043
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