summaryrefslogtreecommitdiff
path: root/include/linux/timerqueue.h
diff options
context:
space:
mode:
authorFeng Jiang <jiangfeng@kylinos.cn>2026-04-03 19:28:47 -0600
committerPaul Walmsley <pjw@kernel.org>2026-04-04 18:42:44 -0600
commit5ba15d419fab848a3813eb56bbcad00e291fbc49 (patch)
tree04f14e84abe3362886a975255d904dda7b944042 /include/linux/timerqueue.h
parente73bcb3708a69369d506e5bc6a63d4fc13d8e28a (diff)
riscv: lib: add strnlen() implementation
Add an optimized strnlen() implementation for RISC-V. This version includes a generic optimization and a Zbb-powered optimization using the 'orc.b' instruction, derived from the strlen() implementation. Benchmark results (QEMU TCG, rv64): Length | Original (MB/s) | Optimized (MB/s) | Improvement -------|-----------------|------------------|------------ 16 B | 179 | 309 | +72.6% 512 B | 347 | 1562 | +350.1% 4096 B | 356 | 1878 | +427.5% Suggested-by: Qingfang Deng <dqfext@gmail.com> Signed-off-by: Feng Jiang <jiangfeng@kylinos.cn> Link: https://patch.msgid.link/20260130025018.172925-7-jiangfeng@kylinos.cn Signed-off-by: Paul Walmsley <pjw@kernel.org>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions