Merge pull request #2483 from mpu/ldmgear

New algorithms for the long distance matcher
This commit is contained in:
Yann Collet
2021-02-11 08:38:23 -08:00
committed by GitHub
5 changed files with 328 additions and 191 deletions
-1
View File
@@ -1628,7 +1628,6 @@ static size_t ZSTD_resetCCtx_internal(ZSTD_CCtx* zc,
ZSTD_ldm_adjustParameters(&params.ldmParams, &params.cParams);
assert(params.ldmParams.hashLog >= params.ldmParams.bucketSizeLog);
assert(params.ldmParams.hashRateLog < 32);
zc->ldmState.hashPower = ZSTD_rollingHash_primePower(params.ldmParams.minMatchLength);
}
{ size_t const windowSize = MAX(1, (size_t)MIN(((U64)1 << params.cParams.windowLog), pledgedSrcSize));