OSDN Git Service

RISC-V: improve string-function assembly
authorHeiko Stuebner <heiko.stuebner@vrull.eu>
Wed, 8 Feb 2023 22:53:28 +0000 (23:53 +0100)
committerPalmer Dabbelt <palmer@rivosinc.com>
Tue, 28 Feb 2023 16:00:34 +0000 (08:00 -0800)
commit6934cf8a3e0b4a8318ce8f1342348e967e29192f
tree0a0cabf60b22d188fc8897a179667699e41328ee
parent01687e7c935ef70eca69ea2d468020bc93e898dc
RISC-V: improve string-function assembly

Adapt the suggestions for the assembly string functions that Andrew
suggested but that I didn't manage to include into the series that
got applied.

This includes improvements to two comments, removal of unneeded labels
and moving one instruction slightly higher to contradict an
explanatory comment.

Suggested-by: Andrew Jones <ajones@ventanamicro.com>
Signed-off-by: Heiko Stuebner <heiko.stuebner@vrull.eu>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Tested-by: Conor Dooley <conor.dooley@microchip.com>
Link: https://lore.kernel.org/r/20230208225328.1636017-3-heiko@sntech.de
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/lib/strcmp.S
arch/riscv/lib/strlen.S
arch/riscv/lib/strncmp.S