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-30 00:09:07 -0700
committerUlrich Drepper <drepper@redhat.com>2010-07-30 00:09:07 -0700
commitfe36dd025ea34c5c082b688592618ec72369b96b (patch)
tree7f5b4ec677ee5ffb364c47298c0233fbb3ddbd6d /sysdeps/x86_64/multiarch/strstr.c
parent76e6d6bca72c611653e70d67c2168d2e91a371eb (diff)
downloadglibc-fe36dd025ea34c5c082b688592618ec72369b96b.tar.gz
glibc-fe36dd025ea34c5c082b688592618ec72369b96b.tar.xz
glibc-fe36dd025ea34c5c082b688592618ec72369b96b.zip
Fix tolower operation in strcasestr.
Diffstat (limited to 'sysdeps/x86_64/multiarch/strstr.c')
-rw-r--r--sysdeps/x86_64/multiarch/strstr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/x86_64/multiarch/strstr.c b/sysdeps/x86_64/multiarch/strstr.c
index e2b19a34bc..45d7a550ac 100644
--- a/sysdeps/x86_64/multiarch/strstr.c
+++ b/sysdeps/x86_64/multiarch/strstr.c
@@ -174,7 +174,7 @@ __m128i_strloadu_tolower (const unsigned char *p, __m128i rangeuc,
   __m128i frag = __m128i_strloadu (p);
 
 #define UCLOW 0x4040404040404040ULL
-#define UCHIGH 0x5a5a5a5a5a5a5a5aULL
+#define UCHIGH 0x5b5b5b5b5b5b5b5bULL
 #define LCQWORD 0x2020202020202020ULL
   /* Compare if 'Z' > bytes. Inverted way to get a mask for byte <= 'Z'.  */
   __m128i r2 = _mm_cmpgt_epi8 (_mm_set1_epi64x (UCHIGH), frag);