Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
inflate.c File Reference
#include <linux/zutil.h>
#include "inftrees.h"
#include "inflate.h"
#include "inffast.h"
#include "infutil.h"
#include "inffixed.h"

Go to the source code of this file.

Macros

#define UPDATE(check, buf, len)   zlib_adler32(check, buf, len)
 
#define LOAD()
 
#define RESTORE()
 
#define INITBITS()
 
#define PULLBYTE()
 
#define NEEDBITS(n)
 
#define BITS(n)   ((unsigned)hold & ((1U << (n)) - 1))
 
#define DROPBITS(n)
 
#define BYTEBITS()
 
#define REVERSE(q)
 

Functions

int zlib_inflate_workspacesize (void)
 
int zlib_inflateReset (z_streamp strm)
 
int zlib_inflateInit2 (z_streamp strm, int windowBits)
 
int zlib_inflate (z_streamp strm, int flush)
 
int zlib_inflateEnd (z_streamp strm)
 
int zlib_inflateIncomp (z_stream *z)
 

Macro Definition Documentation

#define BITS (   n)    ((unsigned)hold & ((1U << (n)) - 1))

Definition at line 228 of file inflate.c.

#define BYTEBITS ( )
Value:
do { \
hold >>= bits & 7; \
bits -= bits & 7; \
} while (0)

Definition at line 239 of file inflate.c.

#define DROPBITS (   n)
Value:
do { \
hold >>= (n); \
bits -= (unsigned)(n); \
} while (0)

Definition at line 232 of file inflate.c.

#define INITBITS ( )
Value:
do { \
hold = 0; \
bits = 0; \
} while (0)

Definition at line 203 of file inflate.c.

#define LOAD ( )
Value:
do { \
put = strm->next_out; \
left = strm->avail_out; \
next = strm->next_in; \
have = strm->avail_in; \
hold = state->hold; \
bits = state->bits; \
} while (0)

Definition at line 181 of file inflate.c.

#define NEEDBITS (   n)
Value:
do { \
while (bits < (unsigned)(n)) \
PULLBYTE(); \
} while (0)

Definition at line 221 of file inflate.c.

#define PULLBYTE ( )
Value:
do { \
if (have == 0) goto inf_leave; \
have--; \
hold += (unsigned long)(*next++) << bits; \
bits += 8; \
} while (0)

Definition at line 211 of file inflate.c.

#define RESTORE ( )
Value:
do { \
strm->next_out = put; \
strm->avail_out = left; \
strm->next_in = next; \
strm->avail_in = have; \
state->hold = hold; \
state->bits = bits; \
} while (0)

Definition at line 192 of file inflate.c.

#define REVERSE (   q)
Value:
((((q) >> 24) & 0xff) + (((q) >> 8) & 0xff00) + \
(((q) & 0xff00) << 8) + (((q) & 0xff) << 24))

Definition at line 246 of file inflate.c.

#define UPDATE (   check,
  buf,
  len 
)    zlib_adler32(check, buf, len)

Definition at line 178 of file inflate.c.

Function Documentation

int zlib_inflate ( z_streamp  strm,
int  flush 
)

Definition at line 332 of file inflate.c.

int zlib_inflate_workspacesize ( void  )

Definition at line 18 of file inflate.c.

int zlib_inflateEnd ( z_streamp  strm)

Definition at line 757 of file inflate.c.

int zlib_inflateIncomp ( z_stream z)

Definition at line 889 of file inflate.c.

int zlib_inflateInit2 ( z_streamp  strm,
int  windowBits 
)

Definition at line 63 of file inflate.c.

int zlib_inflateReset ( z_streamp  strm)

Definition at line 23 of file inflate.c.