[PATCH v4 0/3] riscv: optimized mem* functions

Matteo Croce mcroce at linux.microsoft.com
Sun Sep 19 15:00:52 PDT 2021


On Sun, Sep 19, 2021 at 9:21 PM Matteo Croce <mcroce at linux.microsoft.com> wrote:
>
> From: Matteo Croce <mcroce at microsoft.com>
>
> Replace the assembly mem{cpy,move,set} with C equivalent.
>
> Try to access RAM with the largest bit width possible, but without
> doing unaligned accesses.
>
> A further improvement could be to use multiple read and writes as the
> assembly version was trying to do.
>
> Tested on a BeagleV Starlight with a SiFive U74 core, where the
> improvement is noticeable.
>
> v3 -> v4:
> - incorporate changes from proposed generic version:
>   https://lore.kernel.org/lkml/20210617152754.17960-1-mcroce@linux.microsoft.com/
>

Sorry, the correct link is:

https://lore.kernel.org/lkml/20210702123153.14093-1-mcroce@linux.microsoft.com/

-- 
per aspera ad upstream



More information about the linux-riscv mailing list