Adding upstream version 1.15.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
6a117924f6
commit
abf5fed346
10 changed files with 45 additions and 49 deletions
4
lzip.h
4
lzip.h
|
@ -68,10 +68,10 @@ enum {
|
|||
max_match_len = min_match_len + max_len_symbols - 1, // 273
|
||||
min_match_len_limit = 5,
|
||||
|
||||
max_dis_states = 4 };
|
||||
dis_states = 4 };
|
||||
|
||||
inline int get_dis_state( const int len )
|
||||
{ return std::min( len - min_match_len, max_dis_states - 1 ); }
|
||||
{ return std::min( len - min_match_len, dis_states - 1 ); }
|
||||
|
||||
inline int get_lit_state( const uint8_t prev_byte )
|
||||
{ return ( prev_byte >> ( 8 - literal_context_bits ) ); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue