glibc/sysdeps/i386/i686/multiarch/strnlen-c.c
Adhemerval Zanella 0f4254311e 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>
2023-02-06 16:19:35 -03:00

11 lines
401 B
C

#define STRNLEN __strnlen_ia32
#include <string/strnlen.c>
#ifdef SHARED
/* Alias for internal symbol to avoid PLT generation, it redirects the
libc_hidden_def (__strnlen/strlen) to default implementation. */
__hidden_ver1 (__strnlen_ia32, __GI_strnlen, __strnlen_ia32);
strong_alias (__strnlen_ia32, __strnlen_ia32_1);
__hidden_ver1 (__strnlen_ia32_1, __GI___strnlen, __strnlen_ia32_1);
#endif