[Patch, AArch64] Optimized strcpy
Ondřej Bílka
neleai@seznam.cz
Fri Dec 19 17:23:00 GMT 2014
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.
More information about the Libc-alpha
mailing list