Skip to content

Commit

Permalink
Fix non-ASCII case of SSE4.2 strcasstr.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulrich Drepper committed Jul 16, 2010
1 parent cc9f2e4 commit d02dc4b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sysdeps/x86_64/multiarch/strstr.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d02dc4b

Please sign in to comment.