diff options
author | Daniel Baumann <mail@daniel-baumann.ch> | 2015-11-07 14:00:38 +0000 |
---|---|---|
committer | Daniel Baumann <mail@daniel-baumann.ch> | 2015-11-07 14:00:38 +0000 |
commit | c14d1693bdd22c33c4cf48acb77cf51b1769dc77 (patch) | |
tree | c6fd25510d2ff466252686512f69d8ca9ba155c8 /lzip.h | |
parent | Adding debian version 1.5-1. (diff) | |
download | lzlib-c14d1693bdd22c33c4cf48acb77cf51b1769dc77.tar.xz lzlib-c14d1693bdd22c33c4cf48acb77cf51b1769dc77.zip |
Merging upstream version 1.6~pre1.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
Diffstat (limited to 'lzip.h')
-rw-r--r-- | lzip.h | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -64,6 +64,7 @@ enum { pos_states = 1 << pos_state_bits, pos_state_mask = pos_states - 1, + len_states = 4, dis_slot_bits = 6, start_dis_model = 4, end_dis_model = 14, @@ -81,12 +82,10 @@ enum { min_match_len = 2, /* must be 2 */ max_match_len = min_match_len + max_len_symbols - 1, /* 273 */ - min_match_len_limit = 5, + min_match_len_limit = 5 }; - dis_states = 4 }; - -static inline int get_dis_state( const int len ) - { return min( len - min_match_len, dis_states - 1 ); } +static inline int get_len_state( const int len ) + { return min( len - min_match_len, len_states - 1 ); } static inline int get_lit_state( const uint8_t prev_byte ) { return ( prev_byte >> ( 8 - literal_context_bits ) ); } |