Line
Link Here
|
0 |
-- a/sysdeps/x86_64/multiarch/strstr.c 2013-08-11 02:52:55.000000000 +0400 |
0 |
++ b/sysdeps/x86_64/multiarch/strstr.c 2013-10-21 21:39:56.699250134 +0400 |
Lines 82-92
Link Here
|
82 |
5. failed string compare, go back to scanning |
82 |
5. failed string compare, go back to scanning |
83 |
*/ |
83 |
*/ |
84 |
|
84 |
|
85 |
#if !(defined USE_AS_STRCASESTR && defined STRCASESTR_NONASCII) |
|
|
86 |
/* Simple replacement of movdqu to address 4KB boundary cross issue. |
85 |
/* Simple replacement of movdqu to address 4KB boundary cross issue. |
87 |
If EOS occurs within less than 16B before 4KB boundary, we don't |
86 |
If EOS occurs within less than 16B before 4KB boundary, we don't |
88 |
cross to next page. */ |
87 |
cross to next page. */ |
89 |
static __m128i |
88 |
|
|
|
89 |
static inline __m128i |
90 |
__m128i_strloadu (const unsigned char * p, __m128i zero) |
90 |
__m128i_strloadu (const unsigned char * p, __m128i zero) |
91 |
{ |
91 |
{ |
92 |
if (__builtin_expect ((int) ((size_t) p & 0xfff) > 0xff0, 0)) |
92 |
if (__builtin_expect ((int) ((size_t) p & 0xfff) > 0xff0, 0)) |
Lines 99-112
Link Here
|
99 |
} |
99 |
} |
100 |
return _mm_loadu_si128 ((__m128i *) p); |
100 |
return _mm_loadu_si128 ((__m128i *) p); |
101 |
} |
101 |
} |
102 |
#endif |
|
|
103 |
|
102 |
|
104 |
#if defined USE_AS_STRCASESTR && !defined STRCASESTR_NONASCII |
103 |
#if defined USE_AS_STRCASESTR && !defined STRCASESTR_NONASCII |
105 |
|
104 |
|
106 |
/* Similar to __m128i_strloadu. Convert to lower case for POSIX/C |
105 |
/* Similar to __m128i_strloadu. Convert to lower case for POSIX/C |
107 |
locale and other which have single-byte letters only in the ASCII |
106 |
locale and other which have single-byte letters only in the ASCII |
108 |
range. */ |
107 |
range. */ |
109 |
static __m128i |
108 |
|
|
|
109 |
static inline __m128i |
110 |
__m128i_strloadu_tolower (const unsigned char *p, __m128i zero, __m128i uclow, |
110 |
__m128i_strloadu_tolower (const unsigned char *p, __m128i zero, __m128i uclow, |
111 |
__m128i uchigh, __m128i lcqword) |
111 |
__m128i uchigh, __m128i lcqword) |
112 |
{ |
112 |
{ |