2012-10-10 07:49:12 -07:00
|
|
|
/* Multiple versions of strcasestr
|
|
|
|
All versions must be listed in ifunc-impl-list.c. */
|
|
|
|
|
2009-07-20 21:06:50 -07:00
|
|
|
#include "init-arch.h"
|
|
|
|
|
|
|
|
#define STRCASESTR __strcasestr_sse2
|
|
|
|
|
|
|
|
#include "string/strcasestr.c"
|
|
|
|
|
2009-09-02 19:43:04 -07:00
|
|
|
extern char *__strcasestr_sse42 (const char *, const char *) attribute_hidden;
|
|
|
|
extern __typeof (__strcasestr_sse2) __strcasestr_sse2 attribute_hidden;
|
2009-07-20 21:06:50 -07:00
|
|
|
|
|
|
|
#if 1
|
|
|
|
libc_ifunc (__strcasestr,
|
|
|
|
HAS_SSE4_2 ? __strcasestr_sse42 : __strcasestr_sse2);
|
|
|
|
#else
|
|
|
|
libc_ifunc (__strcasestr,
|
|
|
|
0 ? __strcasestr_sse42 : __strcasestr_sse2);
|
|
|
|
#endif
|