[PATCH v7 0/8] riscv: optimize string functions and add kunit tests
Feng Jiang
jiangfeng at kylinos.cn
Sun Feb 1 19:24:07 PST 2026
On 2026/1/31 01:37, Kees Cook wrote:
> 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!
Thank you very much for your review and the previous suggestions for improvement.
I truly appreciate your patience and guidance throughout this process!
--
With Best Regards,
Feng Jiang
More information about the linux-riscv
mailing list