[PATCH v2 1/3] arm64: arch/arm/lib: Add optimized memset/memcpy functions

Rasmus Villemoes rasmus.villemoes at prevas.dk
Tue Aug 10 13:30:36 CEST 2021


On 10/08/2021 09.13, Stefan Roese wrote:

> +/* This implementation handles overlaps and supports both memcpy and memmove
> +   from a single entry point.  It uses unaligned accesses and branchless

Any reason not to take advantage of that, i.e. provide memmove as an
alias for memcpy and thus get a fast(er) memmove for free? It would even
reduce .text a little by not needing to include the lib/ provided
memmove implementation.

Rasmus


More information about the U-Boot mailing list