Fix non-ASCII case of SSE4.2 strcasstr.

This commit is contained in:
Ulrich Drepper 2010-07-16 16:00:22 -07:00
parent cc9f2e47a0
commit d02dc4ba08
1 changed files with 2 additions and 0 deletions

View File

@ -240,9 +240,11 @@ STRSTR_SSE42 (const unsigned char *s1, const unsigned char *s2)
#endif
#ifdef USE_AS_STRCASESTR
# ifndef STRCASESTR_NONASCII
if (__builtin_expect (_NL_CURRENT_WORD (LC_CTYPE, _NL_CTYPE_NONASCII_CASE)
!= 0, 0))
return __strcasestr_sse42_nonascii (s1, s2);
# endif
# define strloadu __m128i_strloadu_tolower
#else