riscv: Add string-fza.h and string-fzi.h
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Wed, 1 Feb 2023 15:44:17 +0000 (12:44 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Mon, 6 Feb 2023 19:19:35 +0000 (16:19 -0300)
commit25788431c0f5264c4830415de0cdd4d9926cbad9
tree5597dd9a3d673451af029bc89f99c50d18e42baf
parentc505eb828e2f7415397ae445cfb89661d78f291e
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: Richard Henderson <richard.henderson@linaro.org>
sysdeps/riscv/string-fza.h [new file with mode: 0644]
sysdeps/riscv/string-fzi.h [new file with mode: 0644]