This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [Patch, AArch64] Optimized strcpy
- From: OndÅej BÃlka <neleai at seznam dot cz>
- To: Richard Earnshaw <rearnsha at arm dot com>
- Cc: Glibc Development List <libc-alpha at sourceware dot org>
- Date: Fri, 19 Dec 2014 18:22:53 +0100
- Subject: Re: [Patch, AArch64] Optimized strcpy
- Authentication-results: sourceware.org; auth=none
- References: <54917329 dot 4090601 at arm dot com> <5491759B dot 4020704 at arm dot com>
On Wed, Dec 17, 2014 at 12:22:51PM +0000, Richard Earnshaw wrote:
> On 17/12/14 12:12, Richard Earnshaw wrote:
> > This patch contains an optimized implementation of strcpy for AArch64
> > systems. Benchmarking shows that it is approximately 20-25% faster than
> > the generic implementation across the board.
> >
> > R.
> >
> > <date> Richard Earnshaw <rearnsha@arm.com>
> >
> > * sysdeps/aarch64/strcpy.S: New file.
> >
> >
>
> Er, sorry. That's the wrong version of the patch.
>
> Here's the correct one.
>
> R.
Also to decrease number of patches send I recalled that that you could
optimize stpcpy as well, common pattern for that is add file with
#define USE_AS_STPCPY
#include "strcpy.S"
and in strcpy adding
#ifdef USE_AS_STPCPY
calculate end
#endif
before each return.