Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Typedefs
zutil.h File Reference
#include <linux/zlib.h>
#include <linux/string.h>
#include <linux/kernel.h>

Go to the source code of this file.

Macros

#define STORED_BLOCK   0
 
#define STATIC_TREES   1
 
#define DYN_TREES   2
 
#define MIN_MATCH   3
 
#define MAX_MATCH   258
 
#define PRESET_DICT   0x20 /* preset dictionary flag in zlib header */
 
#define OS_CODE   0x03 /* assume Unix */
 
#define BASE   65521L /* largest prime smaller than 65536 */
 
#define NMAX   5552
 
#define DO1(buf, i)   {s1 += buf[i]; s2 += s1;}
 
#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);
 

Typedefs

typedef unsigned char uch
 
typedef unsigned short ush
 
typedef unsigned long ulg
 
typedef uLong(* check_func )(uLong check, const Byte *buf, uInt len)
 

Macro Definition Documentation

#define BASE   65521L /* largest prime smaller than 65536 */

Definition at line 53 of file zutil.h.

#define DO1 (   buf,
  i 
)    {s1 += buf[i]; s2 += s1;}

Definition at line 57 of file zutil.h.

#define DO16 (   buf)    DO8(buf,0); DO8(buf,8);

Definition at line 61 of file zutil.h.

#define DO2 (   buf,
  i 
)    DO1(buf,i); DO1(buf,i+1);

Definition at line 58 of file zutil.h.

#define DO4 (   buf,
  i 
)    DO2(buf,i); DO2(buf,i+2);

Definition at line 59 of file zutil.h.

#define DO8 (   buf,
  i 
)    DO4(buf,i); DO4(buf,i+4);

Definition at line 60 of file zutil.h.

#define DYN_TREES   2

Definition at line 28 of file zutil.h.

#define MAX_MATCH   258

Definition at line 32 of file zutil.h.

#define MIN_MATCH   3

Definition at line 31 of file zutil.h.

#define NMAX   5552

Definition at line 54 of file zutil.h.

#define OS_CODE   0x03 /* assume Unix */

Definition at line 42 of file zutil.h.

#define PRESET_DICT   0x20 /* preset dictionary flag in zlib header */

Definition at line 35 of file zutil.h.

#define STATIC_TREES   1

Definition at line 27 of file zutil.h.

#define STORED_BLOCK   0

Definition at line 26 of file zutil.h.

Typedef Documentation

typedef uLong(* check_func)(uLong check, const Byte *buf, uInt len)

Definition at line 47 of file zutil.h.

typedef unsigned char uch

Definition at line 20 of file zutil.h.

typedef unsigned long ulg

Definition at line 22 of file zutil.h.

typedef unsigned short ush

Definition at line 21 of file zutil.h.