Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Enumerations
xz_lzma2.h File Reference

Go to the source code of this file.

Macros

#define RC_SHIFT_BITS   8
 
#define RC_TOP_BITS   24
 
#define RC_TOP_VALUE   (1 << RC_TOP_BITS)
 
#define RC_BIT_MODEL_TOTAL_BITS   11
 
#define RC_BIT_MODEL_TOTAL   (1 << RC_BIT_MODEL_TOTAL_BITS)
 
#define RC_MOVE_BITS   5
 
#define POS_STATES_MAX   (1 << 4)
 
#define STATES   12
 
#define LIT_STATES   7
 
#define LITERAL_CODER_SIZE   0x300
 
#define LITERAL_CODERS_MAX   (1 << 4)
 
#define MATCH_LEN_MIN   2
 
#define LEN_LOW_BITS   3
 
#define LEN_LOW_SYMBOLS   (1 << LEN_LOW_BITS)
 
#define LEN_MID_BITS   3
 
#define LEN_MID_SYMBOLS   (1 << LEN_MID_BITS)
 
#define LEN_HIGH_BITS   8
 
#define LEN_HIGH_SYMBOLS   (1 << LEN_HIGH_BITS)
 
#define LEN_SYMBOLS   (LEN_LOW_SYMBOLS + LEN_MID_SYMBOLS + LEN_HIGH_SYMBOLS)
 
#define MATCH_LEN_MAX   (MATCH_LEN_MIN + LEN_SYMBOLS - 1)
 
#define DIST_STATES   4
 
#define DIST_SLOT_BITS   6
 
#define DIST_SLOTS   (1 << DIST_SLOT_BITS)
 
#define DIST_MODEL_START   4
 
#define DIST_MODEL_END   14
 
#define FULL_DISTANCES_BITS   (DIST_MODEL_END / 2)
 
#define FULL_DISTANCES   (1 << FULL_DISTANCES_BITS)
 
#define ALIGN_BITS   4
 
#define ALIGN_SIZE   (1 << ALIGN_BITS)
 
#define ALIGN_MASK   (ALIGN_SIZE - 1)
 
#define PROBS_TOTAL   (1846 + LITERAL_CODERS_MAX * LITERAL_CODER_SIZE)
 
#define REPS   4
 

Enumerations

enum  lzma_state {
  STATE_LIT_LIT, STATE_MATCH_LIT_LIT, STATE_REP_LIT_LIT, STATE_SHORTREP_LIT_LIT,
  STATE_MATCH_LIT, STATE_REP_LIT, STATE_SHORTREP_LIT, STATE_LIT_MATCH,
  STATE_LIT_LONGREP, STATE_LIT_SHORTREP, STATE_NONLIT_MATCH, STATE_NONLIT_REP
}
 

Macro Definition Documentation

#define ALIGN_BITS   4

Definition at line 190 of file xz_lzma2.h.

#define ALIGN_MASK   (ALIGN_SIZE - 1)

Definition at line 192 of file xz_lzma2.h.

#define ALIGN_SIZE   (1 << ALIGN_BITS)

Definition at line 191 of file xz_lzma2.h.

#define DIST_MODEL_END   14

Definition at line 180 of file xz_lzma2.h.

#define DIST_MODEL_START   4

Definition at line 168 of file xz_lzma2.h.

#define DIST_SLOT_BITS   6

Definition at line 158 of file xz_lzma2.h.

#define DIST_SLOTS   (1 << DIST_SLOT_BITS)

Definition at line 159 of file xz_lzma2.h.

#define DIST_STATES   4

Definition at line 141 of file xz_lzma2.h.

#define FULL_DISTANCES   (1 << FULL_DISTANCES_BITS)

Definition at line 184 of file xz_lzma2.h.

#define FULL_DISTANCES_BITS   (DIST_MODEL_END / 2)

Definition at line 183 of file xz_lzma2.h.

#define LEN_HIGH_BITS   8

Definition at line 125 of file xz_lzma2.h.

#define LEN_HIGH_SYMBOLS   (1 << LEN_HIGH_BITS)

Definition at line 126 of file xz_lzma2.h.

#define LEN_LOW_BITS   3

Definition at line 121 of file xz_lzma2.h.

#define LEN_LOW_SYMBOLS   (1 << LEN_LOW_BITS)

Definition at line 122 of file xz_lzma2.h.

#define LEN_MID_BITS   3

Definition at line 123 of file xz_lzma2.h.

#define LEN_MID_SYMBOLS   (1 << LEN_MID_BITS)

Definition at line 124 of file xz_lzma2.h.

#define LEN_SYMBOLS   (LEN_LOW_SYMBOLS + LEN_MID_SYMBOLS + LEN_HIGH_SYMBOLS)

Definition at line 127 of file xz_lzma2.h.

#define LIT_STATES   7

Definition at line 61 of file xz_lzma2.h.

#define LITERAL_CODER_SIZE   0x300

Definition at line 106 of file xz_lzma2.h.

#define LITERAL_CODERS_MAX   (1 << 4)

Definition at line 109 of file xz_lzma2.h.

#define MATCH_LEN_MAX   (MATCH_LEN_MIN + LEN_SYMBOLS - 1)

Definition at line 133 of file xz_lzma2.h.

#define MATCH_LEN_MIN   2

Definition at line 112 of file xz_lzma2.h.

#define POS_STATES_MAX   (1 << 4)

Definition at line 27 of file xz_lzma2.h.

#define PROBS_TOTAL   (1846 + LITERAL_CODERS_MAX * LITERAL_CODER_SIZE)

Definition at line 195 of file xz_lzma2.h.

#define RC_BIT_MODEL_TOTAL   (1 << RC_BIT_MODEL_TOTAL_BITS)

Definition at line 19 of file xz_lzma2.h.

#define RC_BIT_MODEL_TOTAL_BITS   11

Definition at line 18 of file xz_lzma2.h.

#define RC_MOVE_BITS   5

Definition at line 20 of file xz_lzma2.h.

#define RC_SHIFT_BITS   8

Definition at line 15 of file xz_lzma2.h.

#define RC_TOP_BITS   24

Definition at line 16 of file xz_lzma2.h.

#define RC_TOP_VALUE   (1 << RC_TOP_BITS)

Definition at line 17 of file xz_lzma2.h.

#define REPS   4

Definition at line 202 of file xz_lzma2.h.

#define STATES   12

Definition at line 58 of file xz_lzma2.h.

Enumeration Type Documentation

enum lzma_state
Enumerator:
STATE_LIT_LIT 
STATE_MATCH_LIT_LIT 
STATE_REP_LIT_LIT 
STATE_SHORTREP_LIT_LIT 
STATE_MATCH_LIT 
STATE_REP_LIT 
STATE_SHORTREP_LIT 
STATE_LIT_MATCH 
STATE_LIT_LONGREP 
STATE_LIT_SHORTREP 
STATE_NONLIT_MATCH 
STATE_NONLIT_REP 

Definition at line 42 of file xz_lzma2.h.