Skip to content
Commit 7cbcc959 authored by Wilco Dijkstra's avatar Wilco Dijkstra
Browse files

AArch64: Optimize strnlen



Optimize strnlen using the shrn instruction and improve the main loop.
Small strings are around 10% faster, large strings are 40% faster on
modern CPUs.

Reviewed-by: default avatarSzabolcs Nagy <szabolcs.nagy@arm.com>
(cherry picked from commit ad098893)
parent daa13ed0
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