Feature #6311 » use_memchr2.diff
| re.c (working copy) | ||
|---|---|---|
|
if (m > SIZEOF_VALUE)
|
||
|
rb_bug("!!too long pattern string!!");
|
||
|
if (!(y = memchr(y, *x, n - m + 1)))
|
||
|
return -1;
|
||
|
/* Prepare hash value */
|
||
|
for (hx = *x++, hy = *y++; x < xe; ++x, ++y) {
|
||
|
hx <<= CHAR_BIT;
|
||
- « Previous
- 1
- …
- 4
- 5
- 6
- Next »