Lines Matching refs:buf
47 typedef uLong (*check_func) (uLong check, const Byte *buf,
57 #define DO1(buf,i) {s1 += buf[i]; s2 += s1;}
58 #define DO2(buf,i) DO1(buf,i); DO1(buf,i+1);
59 #define DO4(buf,i) DO2(buf,i); DO2(buf,i+2);
60 #define DO8(buf,i) DO4(buf,i); DO4(buf,i+4);
61 #define DO16(buf) DO8(buf,0); DO8(buf,8);
65 Update a running Adler-32 checksum with the bytes buf[0..len-1] and
66 return the updated checksum. If buf is NULL, this function returns
79 const Byte *buf,
86 if (buf == NULL) return 1L;
92 DO16(buf);
93 buf += 16;
97 s1 += *buf++;