diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2019-01-08 17:20:05 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2019-01-08 17:20:05 +0000 |
commit | 8c5c614b4137a9c6d31d15dab679a9a83260ba4c (patch) | |
tree | 95c123a85cf741387920efd8c885ffb7539a7c2a /fast_encoder.h | |
parent | Adding upstream version 1.10. (diff) | |
download | clzip-8c5c614b4137a9c6d31d15dab679a9a83260ba4c.tar.xz clzip-8c5c614b4137a9c6d31d15dab679a9a83260ba4c.zip |
Adding upstream version 1.11.upstream/1.11
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | fast_encoder.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/fast_encoder.h b/fast_encoder.h index b1ba5ed..03544a4 100644 --- a/fast_encoder.h +++ b/fast_encoder.h @@ -1,5 +1,5 @@ /* Clzip - LZMA lossless data compressor - Copyright (C) 2010-2018 Antonio Diaz Diaz. + Copyright (C) 2010-2019 Antonio Diaz Diaz. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -33,16 +33,16 @@ int FLZe_longest_match_len( struct FLZ_encoder * const fe, int * const distance static inline void FLZe_update_and_move( struct FLZ_encoder * const fe, int n ) { + struct Matchfinder_base * const mb = &fe->eb.mb; while( --n >= 0 ) { - if( Mb_available_bytes( &fe->eb.mb ) >= 4 ) + if( Mb_available_bytes( mb ) >= 4 ) { - fe->key4 = ( ( fe->key4 << 4 ) ^ fe->eb.mb.buffer[fe->eb.mb.pos+3] ) & - fe->eb.mb.key4_mask; - fe->eb.mb.pos_array[fe->eb.mb.cyclic_pos] = fe->eb.mb.prev_positions[fe->key4]; - fe->eb.mb.prev_positions[fe->key4] = fe->eb.mb.pos + 1; + fe->key4 = ( ( fe->key4 << 4 ) ^ mb->buffer[mb->pos+3] ) & mb->key4_mask; + mb->pos_array[mb->cyclic_pos] = mb->prev_positions[fe->key4]; + mb->prev_positions[fe->key4] = mb->pos + 1; } - Mb_move_pos( &fe->eb.mb ); + Mb_move_pos( mb ); } } |