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

From: Matteo Croce
Date: Sun Sep 19 2021 - 18:01:47 EST


On Sun, Sep 19, 2021 at 9:21 PM Matteo Croce <mcroce@xxxxxxxxxxxxxxxxxxx> wrote:
>
> From: Matteo Croce <mcroce@xxxxxxxxxxxxx>
>
> 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@xxxxxxxxxxxxxxxxxxx/
>

Sorry, the correct link is:

https://lore.kernel.org/lkml/20210702123153.14093-1-mcroce@xxxxxxxxxxxxxxxxxxx/

--
per aspera ad upstream