summaryrefslogtreecommitdiffstats
path: root/lib/lz4opt.h
diff options
context:
space:
mode:
authorYann Collet <Cyan4973@users.noreply.github.com>2018-01-06 05:58:41 (GMT)
committerGitHub <noreply@github.com>2018-01-06 05:58:41 (GMT)
commit0b203b04f6b5085f9f98c8c78c6535399264d755 (patch)
tree5bd1bd5007a73af5554bca689bda3aaac837bd68 /lib/lz4opt.h
parent54f36219074eb725cd24ce1684d26343ec7c5b11 (diff)
parent9753ac4c91b926114ae636d1d7103dd24e5c0f57 (diff)
downloadlz4-0b203b04f6b5085f9f98c8c78c6535399264d755.zip
lz4-0b203b04f6b5085f9f98c8c78c6535399264d755.tar.gz
lz4-0b203b04f6b5085f9f98c8c78c6535399264d755.tar.bz2
Merge pull request #434 from lz4/pattern
conditional pattern analysis
Diffstat (limited to 'lib/lz4opt.h')
-rw-r--r--lib/lz4opt.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/lz4opt.h b/lib/lz4opt.h
index 58068bf..5a8438c 100644
--- a/lib/lz4opt.h
+++ b/lib/lz4opt.h
@@ -85,7 +85,9 @@ LZ4HC_match_t LZ4HC_FindLongerMatch(LZ4HC_CCtx_internal* const ctx,
/* note : LZ4HC_InsertAndGetWiderMatch() is able to modify the starting position of a match (*startpos),
* but this won't be the case here, as we define iLowLimit==ip,
* so LZ4HC_InsertAndGetWiderMatch() won't be allowed to search past ip */
- int const matchLength = LZ4HC_InsertAndGetWiderMatch(ctx, ip, ip, iHighLimit, minLen, &matchPtr, &ip, nbSearches);
+ int const matchLength = LZ4HC_InsertAndGetWiderMatch(ctx,
+ ip, ip, iHighLimit, minLen, &matchPtr, &ip,
+ nbSearches, 1 /* patternAnalysis */);
if (matchLength <= minLen) return match;
match.len = matchLength;
match.off = (int)(ip-matchPtr);