Add long distance matching as a CCtxParam

This commit is contained in:
Stella Lau
2017-09-01 09:18:58 -07:00
parent 6a546efb8c
commit 8081becadc
8 changed files with 64 additions and 42 deletions
+4 -3
View File
@@ -281,11 +281,10 @@ typedef struct {
typedef struct {
ldmEntry_t* hashTable;
BYTE* bucketOffsets;
U32 ldmEnable; /* 1 if enable long distance matching */
BYTE* bucketOffsets; /* next position in bucket to insert entry */
U32 hashLog; /* log size of hashTable */
U32 bucketLog; /* log number of buckets, at most 4 */
U32 hashEveryLog;
U32 hashEveryLog; /* log number of entries to skip */
} ldmState_t;
typedef struct {
@@ -313,6 +312,8 @@ struct ZSTD_CCtx_params_s {
unsigned jobSize;
unsigned overlapSizeLog;
U32 enableLdm; /* 1 if enable long distance matching */
/* For use with createCCtxParams() and freeCCtxParams() only */
ZSTD_customMem customMem;