string: Improve generic strnlen with memchr
commit0f4254311ebf15b8f3f6f66182e8dd5151a58a88
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 10 Jan 2023 21:00:55 +0000 (10 18:00 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Mon, 6 Feb 2023 19:19:35 +0000 (6 16:19 -0300)
tree9a03470d7c7ec394b35cecaf2e1b57a7e8dc08cc
parent2a8867a17ffe5c5a4251fd40bf6c73a3fd426062
string: Improve generic strnlen with memchr

It also cleanups the multiple inclusion by leaving the ifunc
implementation to undef the weak_alias and libc_hidden_def.

Co-authored-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Noah Goldstein <goldstein.w.n@gmail.com>
string/strnlen.c
sysdeps/i386/i686/multiarch/strnlen-c.c
sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-ppc32.c
sysdeps/s390/strnlen-c.c