2021-06-15 02:46:55

by Bin Meng

[permalink] [raw]
Subject: Re: [PATCH 0/3] riscv: optimized mem* functions

Hi Matteo,

On Tue, Jun 15, 2021 at 10:39 AM Matteo Croce
<[email protected]> wrote:
>
> From: Matteo Croce <[email protected]>
>
> 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.
>
> Tested on a BeagleV Starlight with a SiFive U74 core, where the
> improvement is noticeable.
>

There is already a patch on the ML for optimizing the assembly version.
https://patchwork.kernel.org/project/linux-riscv/patch/[email protected]/

Would you please try that and compare the results?

Regards,
Bin