From: Milan Tripkovic <[email protected]> Add an optimized assembly implementation of memchr() for RISC-V. The implementation uses word-aligned loads and Zbb optimizations where available, with a fallback for non-Zbb hardware.
The series also includes KUnit tests for functional verification and performance benchmarking. Signed-off-by: Milan Tripkovic <[email protected]> Milan Tripkovic (2): riscv: lib: add memchr() implementation lib/string_kunit: extend benchmarks and unit test to memchr() arch/riscv/include/asm/string.h | 3 +- arch/riscv/lib/Makefile | 1 + arch/riscv/lib/memchr.S | 126 ++++++++++++++++++++++++++++++++ arch/riscv/purgatory/Makefile | 5 +- lib/tests/string_kunit.c | 53 ++++++++++++++ 5 files changed, 186 insertions(+), 2 deletions(-) create mode 100644 arch/riscv/lib/memchr.S -- 2.43.0

