[PATCH, AArch64] Add optimized strchrnul
Kyle McMartin
kmcmarti@redhat.com
Wed Dec 3 17:45:00 GMT 2014
On Wed, Nov 05, 2014 at 02:02:22PM +0000, Marcus Shawcroft wrote:
> On 13 June 2014 11:23, Richard Earnshaw <rearnsha@arm.com> wrote:
> > Here is an optimized implementation of __strchrnul. The simplification
> > that we don't have to track precisely why the loop terminates (match or
> > end-of-string) means we have to do less work in both setup and the core
> > inner loop. That means this should never be slower than strchr.
> >
> > As with strchr, the use of LD1 means we do not need different versions
> > for big-/little-endian.
> >
> > <date> Richard Earnshaw <rearnsha@arm.com>
> >
> > * sysdeps/aarch64/strchrnul.S: New file.
>
> Committed. + NEWS entry. /Marcus
Hrm, I've bisected this commit as the cause of localedef segfaulting as
part of install-locales... it ends up crashing weirdly inside of
vsprintf's internals. Have either of you seen anything similar?
regards, Kyle
More information about the Libc-alpha
mailing list