linux/include/linux/zutil.h

/* zutil.h -- internal interface and configuration of the compression library
 * Copyright (C) 1995-1998 Jean-loup Gailly.
 * For conditions of distribution and use, see copyright notice in zlib.h
 */

/* WARNING: this file should *not* be used by applications. It is
   part of the implementation of the compression library and is
   subject to change. Applications should only use zlib.h.
 */

/* @(#) $Id: zutil.h,v 1.1 2000/01/01 03:32:23 davem Exp $ */

#ifndef _Z_UTIL_H
#define _Z_UTIL_H

#include <linux/zlib.h>
#include <linux/string.h>
#include <linux/kernel.h>

uch;
ush;
ulg;

        /* common constants */

#define STORED_BLOCK
#define STATIC_TREES
#define DYN_TREES
/* The three kinds of block type */

#define MIN_MATCH
#define MAX_MATCH
/* The minimum and maximum match lengths */

#define PRESET_DICT

        /* target dependencies */

        /* Common defaults */

#ifndef OS_CODE
#define OS_CODE
#endif

         /* functions */

check_func;


                        /* checksum functions */

#define BASE
#define NMAX
/* NMAX is the largest n such that 255n(n+1)/2 + (n+1)(BASE-1) <= 2^32-1 */

#define DO1(buf,i)
#define DO2(buf,i)
#define DO4(buf,i)
#define DO8(buf,i)
#define DO16(buf)

/* ========================================================================= */
/*
     Update a running Adler-32 checksum with the bytes buf[0..len-1] and
   return the updated checksum. If buf is NULL, this function returns
   the required initial value for the checksum.
   An Adler-32 checksum is almost as reliable as a CRC32 but can be computed
   much faster. Usage example:

     uLong adler = zlib_adler32(0L, NULL, 0);

     while (read_buffer(buffer, length) != EOF) {
       adler = zlib_adler32(adler, buffer, length);
     }
     if (adler != original_adler) error();
*/
static inline uLong zlib_adler32(uLong adler,
				 const Byte *buf,
				 uInt len)
{}

#endif /* _Z_UTIL_H */