[PATCH v2] aarch64: Optimized strlen for strlen_asimd
Adhemerval Zanella
adhemerval.zanella@linaro.org
Thu Dec 19 19:44:00 GMT 2019
On 22/10/2019 13:33, Wilco Dijkstra wrote:
> Hi Xuelei,
>
>> Optimize the strlen implementation by using vector operations and
>> loop unrolling in main loop.Compared to __strlen_generic,it reduces
>> latency of cases in bench-strlen by 7%~18% when the length of src
>> is greater than 128 bytes, with gains throughout the benchmark.
>
> This is a good improvement, OK to commit. Also given it uses integer
> arithmetic for the first 16 bytes, it can never be worse off than the generic
> variant for small inputs.
>
> Wilco
I pushed it upstream.
More information about the Libc-alpha
mailing list