Noble Ape
The Central Directories of the Noble Ape Simulation.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
Macros | Functions | Variables
compress.c File Reference
#include "noble.h"
Include dependency graph for compress.c:

Go to the source code of this file.

Macros

#define BITS   16
#define HASHING_SHIFT   (BITS-8)
#define MAX_VALUE   ((1<<BITS)-1)
#define MAX_CODE   (MAX_VALUE-1)
#define TABLE_SIZE   99991

Functions

unsigned int input_code (n_file *input)
void output_code (n_file *output, n_byte4 code)
void compress_compress (n_file *input, n_file *output)
void compress_expand (n_file *input, n_file *output)

Variables

n_c_int code_value [TABLE_SIZE]
n_byte4 prefix_code [TABLE_SIZE]
n_byte append_character [TABLE_SIZE]

Macro Definition Documentation

#define BITS   16

Definition at line 54 of file compress.c.

#define HASHING_SHIFT   (BITS-8)

Definition at line 55 of file compress.c.

#define MAX_CODE   (MAX_VALUE-1)

Definition at line 57 of file compress.c.

#define MAX_VALUE   ((1<<BITS)-1)

Definition at line 56 of file compress.c.

#define TABLE_SIZE   99991

Definition at line 60 of file compress.c.


Function Documentation

void compress_compress ( n_file input,
n_file output 
)

Definition at line 176 of file compress.c.

Here is the call graph for this function:

void compress_expand ( n_file input,
n_file output 
)

Definition at line 228 of file compress.c.

Here is the call graph for this function:

unsigned int input_code ( n_file input)

Definition at line 136 of file compress.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void output_code ( n_file output,
n_byte4  code 
)

Definition at line 155 of file compress.c.

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

n_byte append_character[TABLE_SIZE]

Definition at line 74 of file compress.c.

n_c_int code_value[TABLE_SIZE]

Definition at line 72 of file compress.c.

n_byte4 prefix_code[TABLE_SIZE]

Definition at line 73 of file compress.c.