/* an 8-byte shift register made of accum1 and accum2. New
* bytes come at LSB of accum2, and shifted up to accum1
*/
for (i = accum1 = accum2 = 0; i < 7; i++, sz--) {
accum1 = (accum1 << 8) | (accum2 >> 24);
accum2 = (accum2 << 8) | *buf++;
}
n = 0;
accum1 = accum2 = 0;
while (sz) {
accum1 = (accum1 << 8) | (accum2 >> 24);
accum2 = (accum2 << 8) | *buf++;
hashval = (accum1 + accum2 * 0x61) % HASHBASE;
hash = add_spanhash(hash, hashval);
unsigned long c = *buf++;
sz--;
accum1 = (accum1 << 7) | (accum2 >> 25);
accum2 = (accum2 << 7) | (accum1 >> 25);
accum1 += c;
if (++n < 64 && c != '\n')
continue;
hashval = (accum1 + accum2 * 0x61) % HASHBASE;
hash = add_spanhash(hash, hashval, n);
n = 0;
accum1 = accum2 = 0;
}
return hash;
}
@ -166,9 +167,6 @@ int diffcore_count_changes(void *src, unsigned long src_size,
@@ -166,9 +167,6 @@ int diffcore_count_changes(void *src, unsigned long src_size,