summaryrefslogtreecommitdiff
path: root/sysdeps/x86_64/multiarch/strstr-c.c
blob: cff99b71ef13f49eaddaaf67e8f7eeb8c53285ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include "init-arch.h"

#define STRSTR __strstr_sse2
#undef libc_hidden_builtin_def
#define libc_hidden_builtin_def(name) \
  __hidden_ver1 (__strstr_sse2, __GI_strstr, __strstr_sse2);

#include "string/strstr.c"

extern char *__strstr_sse42 (const char *, const char *);

libc_ifunc (strstr, HAS_SSE4_2 ? __strstr_sse42 : __strstr_sse2);