2009-07-20 21:06:50 -07:00
|
|
|
#include "init-arch.h"
|
|
|
|
|
|
|
|
#define STRSTR __strstr_sse2
|
2009-10-06 20:01:23 -07:00
|
|
|
#ifdef SHARED
|
|
|
|
# undef libc_hidden_builtin_def
|
|
|
|
# define libc_hidden_builtin_def(name) \
|
2009-07-20 21:06:50 -07:00
|
|
|
__hidden_ver1 (__strstr_sse2, __GI_strstr, __strstr_sse2);
|
2009-10-06 20:01:23 -07:00
|
|
|
#endif
|
2009-07-20 21:06:50 -07:00
|
|
|
|
|
|
|
#include "string/strstr.c"
|
|
|
|
|
2009-09-02 19:43:04 -07:00
|
|
|
extern char *__strstr_sse42 (const char *, const char *) attribute_hidden;
|
|
|
|
extern __typeof (__strstr_sse2) __strstr_sse2 attribute_hidden;
|
2009-07-20 21:06:50 -07:00
|
|
|
|
|
|
|
libc_ifunc (strstr, HAS_SSE4_2 ? __strstr_sse42 : __strstr_sse2);
|