This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH, AArch64] Add optimized strrchr
- From: Richard Earnshaw <rearnsha at arm dot com>
- To: Marcus Shawcroft <marcus dot shawcroft at gmail dot com>
- Cc: "libc-alpha at sourceware dot org" <libc-alpha at sourceware dot org>
- Date: Wed, 07 Jan 2015 11:34:49 +0000
- Subject: Re: [PATCH, AArch64] Add optimized strrchr
- Authentication-results: sourceware.org; auth=none
- References: <54AD0ECB dot 4070105 at arm dot com> <CAFqB+PytRQfkYhJ7TEejFQe5r7iERYHq+rH2uErzLi9e6KtLyg at mail dot gmail dot com>
On 07/01/15 11:18, Marcus Shawcroft wrote:
> On 7 January 2015 at 10:47, Richard Earnshaw <rearnsha@arm.com> wrote:
>> Similar to the strchr implementation, attached is an implementation of
>> strrchr. Unlike the generic C version, this finds the last instance of
>> a string without having to repeatedly call strchr. This gives notable
>> performance improvements when there is more than one instance of the
>> target character in the string (something the benchmarks never measure,
>> by the way).
>>
>> OK?
>>
>> R.
>> sysdeps/aarch64/strrchr.S: New file.
>
> OK, can you add a news entry for this one aswell?
>
> /Marcus
>
Done. I've also moved the news entry for strchrnul under the 2.21
release info, since that was not in 2.20.
R.