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>
Loading
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>