riscv: optimized memmove
authorMatteo Croce <technoboy85@gmail.com>
Wed, 29 Sep 2021 17:22:33 +0000 (19:22 +0200)
committerŁukasz Stelmach <l.stelmach@samsung.com>
Thu, 9 Feb 2023 18:32:37 +0000 (19:32 +0100)
commit79379298f248fefa609041bd97f30274257c2a39
tree6a267805c44d049b2493083660303d5ffa009f23
parent0f8a750f8d23d408cd26d32a7e874617e780f59a
riscv: optimized memmove

When the destination buffer is before the source one, or when the
buffers doesn't overlap, it's safe to use memcpy() instead, which is
optimized to use a bigger data size possible.

Signed-off-by: Matteo Croce <mcroce@microsoft.com>
arch/riscv/include/asm/string.h
arch/riscv/kernel/riscv_ksyms.c
arch/riscv/lib/Makefile
arch/riscv/lib/memmove.S [deleted file]
arch/riscv/lib/string.c