This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH v2] aarch64: Optimized strlen for strlen_asimd
- From: Adhemerval Zanella <adhemerval dot zanella at linaro dot org>
- To: libc-alpha at sourceware dot org
- Date: Thu, 19 Dec 2019 16:44:49 -0300
- Subject: Re: [PATCH v2] aarch64: Optimized strlen for strlen_asimd
- References: <20191022094118.11468-1-zhangxuelei4@huawei.com> <VI1PR0801MB212778B7354860C87DA03F3C83680@VI1PR0801MB2127.eurprd08.prod.outlook.com>
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.