[PATCH v7 0/8] riscv: optimize string functions and add kunit tests
Kees Cook
kees at kernel.org
Fri Jan 30 09:37:36 PST 2026
On Fri, Jan 30, 2026 at 10:50:10AM +0800, Feng Jiang wrote:
> This series provides optimized implementations of strnlen(), strchr(),
> and strrchr() for the RISC-V architecture. The strnlen() implementation
> is derived from the existing optimized strlen(). For strchr() and
> strrchr(), the current versions use simple byte-by-byte assembly logic,
> which will serve as a baseline for future Zbb-based optimizations.
I'm happy with the Kunit elements here, so unless Andy has other
feedback, please feel free to take this via the riscv tree. (Or if riscv
maintainers would prefer, I can take it via string.)
Thanks for working on this!
-Kees
--
Kees Cook
More information about the linux-riscv
mailing list