/* adler32.c -- compute the Adler-32 checksum of a data stream
* Copyright (C) 1995-2002 Mark Adler
* For conditions of distribution and use, see copyright notice in zlib.h
*/
#include "zlib.h"
/* NMAX is the largest n such that 255n(n+1)/2 + (n+1)(BASE-1) <= 2^32-1 */
/* ========================================================================= */
{
int k;
while (len > 0) {
len -= k;
while (k >= 16) {
buf += 16;
k -= 16;
}
if (k != 0) do {
} while (--k);
}
}