[PATCH v5 13/18] riscv: Add RVV strlen for multiarch and non-multiarch

Peter Bergner bergner@tenstorrent.com
Mon Apr 20 20:22:00 GMT 2026


On 2/3/26 9:05 AM, Yao Zihong wrote:
> --- /dev/null
> +++ b/sysdeps/riscv/multiarch/strlen-generic.c
> @@ -0,0 +1,24 @@
> +#if IS_IN(libc)
> +# define STRLEN __strlen_generic
> +# include <string/strlen.c>
> +#endif

Is it on purpose you don't have:

  +# undef libc_hidden_builtin_def
  +# define libc_hidden_builtin_def(x)

...above, whereas memset-generic.c and strcat-generic.c have it,
as does your strlen-vector.S?



Otherwise, this is looking good.

Peter



More information about the Libc-alpha mailing list