Project

General

Profile

Feature #6311 » use_memchr.diff

knu (Akinori MUSHA), 11/13/2012 02:58 PM

View differences:

re.c (working copy)
if (m > SIZEOF_VALUE)
rb_bug("!!too long pattern string!!");
if (y = memchr(y, *x, n - m + 1))
n -= y - ys;
else
return -1;
/* Prepare hash value */
for (hx = *x++, hy = *y++; x < xe; ++x, ++y) {
hx <<= CHAR_BIT;
(5-5/6)