Skip to content
Commit 25788431 authored by Adhemerval Zanella's avatar Adhemerval Zanella
Browse files

riscv: Add string-fza.h and string-fzi.h



It uses the bitmanip extension to optimize index_fist and index_last
with clz/ctz (using generic implementation that routes to compiler
builtin) and orc.b to check null bytes.

Checked the string test on riscv64 user mode.

Reviewed-by: default avatarRichard Henderson <richard.henderson@linaro.org>
parent c505eb82
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment