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

Stefan Roese sr at denx.de
Tue Aug 10 13:39:37 CEST 2021


On 10.08.21 13:30, Rasmus Villemoes wrote:
> 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.

Makes absolute sense, thanks. I'll change v3 accordingly.

Thanks,
Stefan


More information about the U-Boot mailing list