Project

General

Profile

Feature #6311 » use_memchr2.diff

knu (Akinori MUSHA), 11/13/2012 03:12 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)))
return -1;
/* Prepare hash value */
for (hx = *x++, hy = *y++; x < xe; ++x, ++y) {
hx <<= CHAR_BIT;
(6-6/6)