SSE4.2 strstr/strcasestr for x86-64.
[glibc.git] / sysdeps / x86_64 / multiarch / strcasestr-c.c
blobe6879531bc919f39b6b51c0306c7591989bb83b9
1 #include "init-arch.h"
3 #define STRCASESTR __strcasestr_sse2
4 #undef libc_hidden_builtin_def
5 #define libc_hidden_builtin_def(name) \
6 __hidden_ver1 (__strcasestr_sse2, __GI_strcasestr, __strcasestr_sse2);
8 #include "string/strcasestr.c"
10 extern char *__strcasestr_sse42 (const char *, const char *);
12 #if 1
13 libc_ifunc (__strcasestr,
14 HAS_SSE4_2 ? __strcasestr_sse42 : __strcasestr_sse2);
15 #else
16 libc_ifunc (__strcasestr,
17 0 ? __strcasestr_sse42 : __strcasestr_sse2);
18 #endif