about summary refs log tree commit diff
path: root/sysdeps/x86_64/multiarch/strstr.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2010-07-16 16:00:22 -0700
committerUlrich Drepper <drepper@redhat.com>2010-07-16 16:00:22 -0700
commitd02dc4ba087255c30a899ab21bd8503efb52ddcf (patch)
treed8cdb1b7d997599595711eb492f8cfd4892d9243 /sysdeps/x86_64/multiarch/strstr.c
parentcc9f2e47a0a1b4ab0d78ff1d036ec7f8ebc74294 (diff)
downloadglibc-d02dc4ba087255c30a899ab21bd8503efb52ddcf.tar.gz
glibc-d02dc4ba087255c30a899ab21bd8503efb52ddcf.tar.xz
glibc-d02dc4ba087255c30a899ab21bd8503efb52ddcf.zip
Fix non-ASCII case of SSE4.2 strcasstr.
Diffstat (limited to 'sysdeps/x86_64/multiarch/strstr.c')
-rw-r--r--sysdeps/x86_64/multiarch/strstr.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sysdeps/x86_64/multiarch/strstr.c b/sysdeps/x86_64/multiarch/strstr.c
index f647354971..a0f2bb4d74 100644
--- a/sysdeps/x86_64/multiarch/strstr.c
+++ b/sysdeps/x86_64/multiarch/strstr.c
@@ -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