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:Szabolcs Nagy <szabolcs.nagy@arm.com> (cherry picked from commit ad098893)
Loading
Please register or sign in to comment