summaryrefslogtreecommitdiffstats
path: root/fast_encoder.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2019-01-08 17:20:09 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2019-01-08 17:20:09 +0000
commit60c137851b77ab48cc741c4722a8a3178609fa47 (patch)
treef08557f4a92ed5f2b8a9871859deabae4a24e64a /fast_encoder.h
parentReleasing debian version 1.10-3. (diff)
downloadclzip-60c137851b77ab48cc741c4722a8a3178609fa47.tar.xz
clzip-60c137851b77ab48cc741c4722a8a3178609fa47.zip
Merging upstream version 1.11.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'fast_encoder.h')
-rw-r--r--fast_encoder.h14
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 );
}
}