This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] aarch64: Optimized implementation of memrchr
- From: Adhemerval Zanella <adhemerval dot zanella at linaro dot org>
- To: libc-alpha at sourceware dot org
- Date: Thu, 19 Dec 2019 16:45:00 -0300
- Subject: Re: [PATCH] aarch64: Optimized implementation of memrchr
- References: <20191017145155.14076-1-zhangxuelei4@huawei.com> <VI1PR0801MB21276D76F0225F715D38F75783680@VI1PR0801MB2127.eurprd08.prod.outlook.com>
On 22/10/2019 14:01, Wilco Dijkstra wrote:
> Hi Xuelei,
>
>> Considering the excellent performance of memchr.S on glibc 2.30, the
>> same algorithm is used to find chrin. Compared to memrchr.c, this
>> method with memrchr.S achieves an average performance improvement
>> of 58% based on benchtest and its extension cases.
>
> For larger sizes it's more than 4 times faster than the generic version. The
> implementation is very similar to memchr.S so this is OK.
>
> Wilco
I pushed it upstream (along with some trailing whitespaces fixes).