mirror of
git://sourceware.org/git/glibc.git
synced 2024-12-27 04:41:02 +08:00
20 lines
570 B
C
20 lines
570 B
C
#include "init-arch.h"
|
|
|
|
#define STRCASESTR __strcasestr_sse2
|
|
#undef libc_hidden_builtin_def
|
|
#define libc_hidden_builtin_def(name) \
|
|
__hidden_ver1 (__strcasestr_sse2, __GI_strcasestr, __strcasestr_sse2);
|
|
|
|
#include "string/strcasestr.c"
|
|
|
|
extern char *__strcasestr_sse42 (const char *, const char *) attribute_hidden;
|
|
extern __typeof (__strcasestr_sse2) __strcasestr_sse2 attribute_hidden;
|
|
|
|
#if 1
|
|
libc_ifunc (__strcasestr,
|
|
HAS_SSE4_2 ? __strcasestr_sse42 : __strcasestr_sse2);
|
|
#else
|
|
libc_ifunc (__strcasestr,
|
|
0 ? __strcasestr_sse42 : __strcasestr_sse2);
|
|
#endif
|