/* @(#) $Id$ */
+
#define ZLIB_INTERNAL
#if KERNEL
#include <libkern/zlib.h>
#include "zlib.h"
#endif /* KERNEL */
+
#define BASE 65521UL /* largest prime smaller than 65536 */
#define NMAX 5552
/* NMAX is the largest n such that 255n(n+1)/2 + (n+1)(BASE-1) <= 2^32-1 */
return adler | (sum2 << 16);
}
+
/* do length NMAX blocks -- requires just one modulo operation */
while (len >= NMAX) {
len -= NMAX;