Home
last modified time | relevance | path

Searched refs:maxDist (Results 1 - 4 of 4) sorted by relevance

/kernel/linux/linux-6.6/lib/zstd/compress/
H A Dzstd_compress_internal.h956 U32 maxDist, in ZSTD_window_canOverflowCorrect()
963 + MAX(maxDist, cycleSize) in ZSTD_window_canOverflowCorrect()
979 U32 const dictionaryInvalidated = curr > maxDist + loadedDictEnd; in ZSTD_window_canOverflowCorrect()
991 U32 maxDist, in ZSTD_window_needOverflowCorrection()
998 if (ZSTD_window_canOverflowCorrect(window, cycleLog, maxDist, loadedDictEnd, src)) { in ZSTD_window_needOverflowCorrection()
1012 * which may be 0. Every index up to maxDist in the past must be valid.
1015 U32 maxDist, void const* src) in ZSTD_window_correctOverflow()
1040 /* Ensure newCurrent - maxDist >= ZSTD_WINDOW_START_INDEX. */ in ZSTD_window_correctOverflow()
1046 + MAX(maxDist, cycleSize); in ZSTD_window_correctOverflow()
1048 /* maxDist mus in ZSTD_window_correctOverflow()
954 ZSTD_window_canOverflowCorrect(ZSTD_window_t const window, U32 cycleLog, U32 maxDist, U32 loadedDictEnd, void const* src) ZSTD_window_canOverflowCorrect() argument
989 ZSTD_window_needOverflowCorrection(ZSTD_window_t const window, U32 cycleLog, U32 maxDist, U32 loadedDictEnd, void const* src, void const* srcEnd) ZSTD_window_needOverflowCorrection() argument
1014 ZSTD_window_correctOverflow(ZSTD_window_t* window, U32 cycleLog, U32 maxDist, void const* src) ZSTD_window_correctOverflow() argument
1111 ZSTD_window_enforceMaxDist(ZSTD_window_t* window, const void* blockEnd, U32 maxDist, U32* loadedDictEndPtr, const ZSTD_matchState_t** dictMatchStatePtr) ZSTD_window_enforceMaxDist() argument
1156 ZSTD_checkDictValidity(const ZSTD_window_t* window, const void* blockEnd, U32 maxDist, U32* loadedDictEndPtr, const ZSTD_matchState_t** dictMatchStatePtr) ZSTD_checkDictValidity() argument
[all...]
H A Dzstd_ldm.c509 U32 const maxDist = 1U << params->windowLog; in ZSTD_ldm_generateSequences() local
538 if (ZSTD_window_needOverflowCorrection(ldmState->window, 0, maxDist, ldmState->loadedDictEnd, chunkStart, chunkEnd)) { in ZSTD_ldm_generateSequences()
541 &ldmState->window, /* cycleLog */ 0, maxDist, chunkStart); in ZSTD_ldm_generateSequences()
552 * the offset against maxDist directly. in ZSTD_ldm_generateSequences()
558 * against maxDist directly, we'll have to carefully handle that case. in ZSTD_ldm_generateSequences()
560 ZSTD_window_enforceMaxDist(&ldmState->window, chunkEnd, maxDist, &ldmState->loadedDictEnd, NULL); in ZSTD_ldm_generateSequences()
H A Dzstd_compress.c3817 U32 const maxDist = (U32)1 << params->cParams.windowLog; in ZSTD_overflowCorrectIfNeeded() local
3818 if (ZSTD_window_needOverflowCorrection(ms->window, cycleLog, maxDist, ms->loadedDictEnd, ip, iend)) { in ZSTD_overflowCorrectIfNeeded()
3819 U32 const correction = ZSTD_window_correctOverflow(&ms->window, cycleLog, maxDist, ip); in ZSTD_overflowCorrectIfNeeded()
3851 U32 const maxDist = (U32)1 << cctx->appliedParams.cParams.windowLog; in ZSTD_compress_frameChunk() local
3870 ZSTD_checkDictValidity(&ms->window, ip + blockSize, maxDist, &ms->loadedDictEnd, &ms->dictMatchState); in ZSTD_compress_frameChunk()
3871 ZSTD_window_enforceMaxDist(&ms->window, ip, maxDist, &ms->loadedDictEnd, &ms->dictMatchState); in ZSTD_compress_frameChunk()
/kernel/linux/linux-5.10/lib/zstd/
H A Dcompress.c2362 U32 const maxDist = 1 << cctx->params.cParams.windowLog; in ZSTD_compress_generic() local
2394 if ((U32)(ip + blockSize - cctx->base) > cctx->loadedDictEnd + maxDist) { in ZSTD_compress_generic()
2395 /* enforce maxDist */ in ZSTD_compress_generic()
2396 U32 const newLowLimit = (U32)(ip + blockSize - cctx->base) - maxDist; in ZSTD_compress_generic()

Completed in 21 milliseconds