From d02dc4ba087255c30a899ab21bd8503efb52ddcf Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 16 Jul 2010 16:00:22 -0700 Subject: Fix non-ASCII case of SSE4.2 strcasstr. --- sysdeps/x86_64/multiarch/strstr.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sysdeps/x86_64') 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 -- cgit v1.2.3-70-g09d2