[PATCH v13 7/7] riscv: Add and use alignment-ignorant memcpy

Andreas Schwab schwab@linux-m68k.org
Sat Mar 2 10:33:03 GMT 2024


On Feb 27 2024, Evan Green wrote:

> For CPU implementations that can perform unaligned accesses with little
> or no performance penalty, create a memcpy implementation that does not
> bother aligning buffers. It will use a block of integer registers, a
> single integer register, and fall back to bytewise copy for the
> remainder.

How has that been tested?  It causes memory corruption.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."


More information about the Libc-alpha mailing list