Skip to content
Commit 2911cb68 authored by Xuelei Zhang's avatar Xuelei Zhang Committed by Adhemerval Zanella
Browse files

aarch64: Optimized implementation of strnlen



Optimize the strlen implementation by using vector operations and
loop unrooling in main loop. Compared to aarch64/strnlen.S, it
reduces latency of cases in bench-strnlen by 11%~24% when the length
of src is greater than 64 bytes, with gains throughout the benchmark.

Checked on aarch64-linux-gnu.

Reviewed-by: default avatarWilco Dijkstra <Wilco.Dijkstra@arm.com>
parent 0237b615
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