riscv: lib: add optimized memchr() and extend KUnit tests
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | riscv: lib: add memchr() implementationarch/ arch/ arch/ +1 more | +133 | 0 replies | |
| 2/2 | lib/string_kunit: extend benchmarks and unit test to memchr()lib/ | +53 | 1 reply |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/2] riscv: lib: add optimized memchr() and extend KUnit tests
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
Signature · 1 line
2.43.0