RetroArch
Macros | Functions
inflate.c File Reference
#include <compat/zutil.h>
#include "inftrees.h"
#include "inflate.h"
#include "inffast.h"
#include "inffixed.h"
Include dependency graph for inflate.c:

Macros

#define Z_TREES   6
 
#define UPDATE(check, buf, len)   (state->flags ? crc32(check, buf, len) : adler32(check, buf, len))
 
#define CRC2(check, word)
 
#define CRC4(check, word)
 
#define LOAD()
 
#define RESTORE()
 
#define INITBITS()
 
#define PULLBYTE()
 
#define NEEDBITS(n)
 
#define BITS(n)   ((unsigned)hold & ((1U << (n)) - 1))
 
#define DROPBITS(n)
 
#define BYTEBITS()
 

Functions

int inflateReset2 (z_streamp strm, int windowBits)
 
static void fixedtables (struct inflate_state FAR *state)
 
static int updatewindow (z_streamp strm, const unsigned char FAR *end, unsigned copy)
 
static unsigned syncsearch (unsigned FAR *have, const unsigned char FAR *buf, unsigned len)
 
long inflateMark (z_streamp strm)
 
int inflateResetKeep (z_streamp strm)
 
int inflateUndermine (z_streamp strm, int subvert)
 
int inflateGetDictionary (z_streamp strm, Bytef *dictionary, uInt *dictLength)
 
int inflateReset (z_streamp strm)
 
int inflateInit2_ (z_streamp strm, int windowBits, const char *version, int stream_size)
 
int inflateInit_ (z_streamp strm, const char *version, int stream_size)
 
int inflatePrime (z_streamp strm, int bits, int value)
 
static int updatewindow (z_streamp strm, const Bytef *end, unsigned copy)
 
int inflate (z_streamp strm, int flush)
 
int inflateEnd (z_streamp strm)
 
int inflateSetDictionary (z_streamp strm, const Bytef *dictionary, uInt dictLength)
 
int inflateGetHeader (z_streamp strm, gz_headerp head)
 
int inflateSync (z_streamp strm)
 
int inflateSyncPoint (z_streamp strm)
 
int inflateCopy (z_streamp dest, z_streamp source)
 

Macro Definition Documentation

◆ BITS

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

◆ BYTEBITS

#define BYTEBITS ( )
Value:
do { \
hold >>= bits & 7; \
bits -= bits & 7; \
} while (0)
GLenum GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * bits
Definition: glext.h:11836

◆ CRC2

#define CRC2 (   check,
  word 
)
Value:
do { \
hbuf[0] = (unsigned char)(word); \
hbuf[1] = (unsigned char)((word) >> 8); \
check = crc32(check, hbuf, 2); \
} while (0)
static void check(LexState *ls, int c)
Definition: lparser.c:106
unsigned long crc32(unsigned long crc, const unsigned char *buf, unsigned int len)
Definition: libz-crc32.c:70

◆ CRC4

#define CRC4 (   check,
  word 
)
Value:
do { \
hbuf[0] = (unsigned char)(word); \
hbuf[1] = (unsigned char)((word) >> 8); \
hbuf[2] = (unsigned char)((word) >> 16); \
hbuf[3] = (unsigned char)((word) >> 24); \
check = crc32(check, hbuf, 4); \
} while (0)
static void check(LexState *ls, int c)
Definition: lparser.c:106
unsigned long crc32(unsigned long crc, const unsigned char *buf, unsigned int len)
Definition: libz-crc32.c:70

◆ DROPBITS

#define DROPBITS (   n)
Value:
do { \
hold >>= (n); \
bits -= (unsigned)(n); \
} while (0)
GLdouble n
Definition: glext.h:8396

◆ INITBITS

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

◆ LOAD

#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)
static uint64_t state[MAX_PADS]
Definition: xenon360_input.c:33

◆ NEEDBITS

#define NEEDBITS (   n)
Value:
do { \
while (bits < (unsigned)(n)) \
PULLBYTE(); \
} while (0)
GLenum GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * bits
Definition: glext.h:11836
GLdouble n
Definition: glext.h:8396

◆ PULLBYTE

#define PULLBYTE ( )
Value:
do { \
if (have == 0) goto inf_leave; \
have--; \
hold += (unsigned long)(*next++) << bits; \
bits += 8; \
} while (0)
#define next(ls)
Definition: llex.c:32
GLenum GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * bits
Definition: glext.h:11836

◆ RESTORE

#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)
#define next(ls)
Definition: llex.c:32
GLenum GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * bits
Definition: glext.h:11836
GLint left
Definition: glext.h:8393

◆ UPDATE

#define UPDATE (   check,
  buf,
  len 
)    (state->flags ? crc32(check, buf, len) : adler32(check, buf, len))

◆ Z_TREES

#define Z_TREES   6

Function Documentation

◆ fixedtables()

static void fixedtables ( struct inflate_state FAR state)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ inflate()

int inflate ( z_streamp  strm,
int  flush 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ inflateCopy()

int inflateCopy ( z_streamp  dest,
z_streamp  source 
)

◆ inflateEnd()

int inflateEnd ( z_streamp  strm)
Here is the caller graph for this function:

◆ inflateGetDictionary()

int inflateGetDictionary ( z_streamp  strm,
Bytef dictionary,
uInt dictLength 
)

◆ inflateGetHeader()

int inflateGetHeader ( z_streamp  strm,
gz_headerp  head 
)

◆ inflateInit2_()

int inflateInit2_ ( z_streamp  strm,
int  windowBits,
const char *  version,
int  stream_size 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ inflateInit_()

int inflateInit_ ( z_streamp  strm,
const char *  version,
int  stream_size 
)
Here is the call graph for this function:

◆ inflateMark()

long inflateMark ( z_streamp  strm)
Here is the call graph for this function:

◆ inflatePrime()

int inflatePrime ( z_streamp  strm,
int  bits,
int  value 
)
Here is the call graph for this function:

◆ inflateReset()

int inflateReset ( z_streamp  strm)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ inflateReset2()

int inflateReset2 ( z_streamp  strm,
int  windowBits 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ inflateResetKeep()

int inflateResetKeep ( z_streamp  strm)
Here is the caller graph for this function:

◆ inflateSetDictionary()

int inflateSetDictionary ( z_streamp  strm,
const Bytef dictionary,
uInt  dictLength 
)
Here is the call graph for this function:

◆ inflateSync()

int inflateSync ( z_streamp  strm)
Here is the call graph for this function:

◆ inflateSyncPoint()

int inflateSyncPoint ( z_streamp  strm)

◆ inflateUndermine()

int inflateUndermine ( z_streamp  strm,
int  subvert 
)

◆ syncsearch()

static unsigned syncsearch ( unsigned FAR have,
const unsigned char FAR buf,
unsigned  len 
)
static
Here is the caller graph for this function:

◆ updatewindow() [1/2]

static int updatewindow ( z_streamp  strm,
const unsigned char FAR end,
unsigned  copy 
)
static
Here is the caller graph for this function:

◆ updatewindow() [2/2]

static int updatewindow ( z_streamp  strm,
const Bytef end,
unsigned  copy 
)
static