diff options
author | Yann Collet <cyan@fb.com> | 2016-11-08 03:32:24 (GMT) |
---|---|---|
committer | Yann Collet <cyan@fb.com> | 2016-11-08 03:32:24 (GMT) |
commit | c7ab95faa5aabec7e2c01e66ce164865d7c79bbf (patch) | |
tree | efef86dbafd0e4bb8c4abb8736aabc6b26696b7b | |
parent | e9089bcbe453bfd97d9303fc14194ccd7a4b9d59 (diff) | |
download | lz4-c7ab95faa5aabec7e2c01e66ce164865d7c79bbf.zip lz4-c7ab95faa5aabec7e2c01e66ce164865d7c79bbf.tar.gz lz4-c7ab95faa5aabec7e2c01e66ce164865d7c79bbf.tar.bz2 |
slightly improved HC compression ratio
-rw-r--r-- | lib/lz4hc.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/lz4hc.c b/lib/lz4hc.c index f109622..edc2db0 100644 --- a/lib/lz4hc.c +++ b/lib/lz4hc.c @@ -332,11 +332,11 @@ FORCE_INLINE int LZ4HC_encodeSequence ( static int LZ4HC_compress_generic ( - void* ctxvoid, - const char* source, - char* dest, - int inputSize, - int maxOutputSize, + void* const ctxvoid, + const char* const source, + char* const dest, + int const inputSize, + int const maxOutputSize, int compressionLevel, limitedOutput_directive limit ) @@ -381,7 +381,7 @@ static int LZ4HC_compress_generic ( _Search2: if (ip+ml < mflimit) - ml2 = LZ4HC_InsertAndGetWiderMatch(ctx, ip + ml - 2, ip + 1, matchlimit, ml, &ref2, &start2, maxNbAttempts); + ml2 = LZ4HC_InsertAndGetWiderMatch(ctx, ip + ml - 2, ip + 0, matchlimit, ml, &ref2, &start2, maxNbAttempts); else ml2 = ml; if (ml2 == ml) { /* No better match */ |