gehe zum Quellcode dieser Datei
|
#define | ZLIB_INTERNAL |
|
#define | BASE 65521UL /* largest prime smaller than 65536 */ |
|
#define | NMAX 5552 |
|
#define | DO1(buf, i) {adler += (buf)[i]; sum2 += adler;} |
|
#define | DO2(buf, i) DO1(buf,i); DO1(buf,i+1); |
|
#define | DO4(buf, i) DO2(buf,i); DO2(buf,i+2); |
|
#define | DO8(buf, i) DO4(buf,i); DO4(buf,i+4); |
|
#define | DO16(buf) DO8(buf,0); DO8(buf,8); |
|
#define | MOD(a) a %= BASE |
|
#define | MOD4(a) a %= BASE |
|
#define BASE 65521UL /* largest prime smaller than 65536 */ |
#define DO1 |
( |
|
buf, |
|
|
|
i |
|
) |
| {adler += (buf)[i]; sum2 += adler;} |
#define MOD |
( |
|
a) | |
a %= BASE |
#define MOD4 |
( |
|
a) | |
a %= BASE |
Definiert in Zeile 57 der Datei adler32.c.
66 sum2 = (adler >> 16) & 0xffff;
77 return adler | (sum2 << 16);
93 return adler | (sum2 << 16);
124 return adler | (sum2 << 16);
Definiert in Zeile 128 der Datei adler32.c.
138 rem = (unsigned)(len2 %
BASE);
139 sum1 = adler1 & 0xffff;
142 sum1 += (adler2 & 0xffff) + BASE - 1;
143 sum2 += ((adler1 >> 16) & 0xffff) + ((adler2 >> 16) & 0xffff) + BASE - rem;
144 if (sum1 > BASE) sum1 -=
BASE;
145 if (sum1 > BASE) sum1 -=
BASE;
146 if (sum2 > (BASE << 1)) sum2 -= (BASE << 1);
147 if (sum2 > BASE) sum2 -=
BASE;
148 return sum1 | (sum2 << 16);