Home
last modified time | relevance | path

Searched refs:dictLimit (Results 1 – 7 of 7) sorted by relevance

/linux/lib/zstd/compress/
H A Dzstd_lazy.c48 idx, target, ms->window.dictLimit); in ZSTD_updateDUBT()
52 assert(idx >= ms->window.dictLimit); /* condition for valid base+idx */ in ZSTD_updateDUBT()
87 const U32 dictLimit = ms->window.dictLimit; in ZSTD_insertDUBT1() local
88 const BYTE* const ip = (curr>=dictLimit) ? base + curr : dictBase + curr; in ZSTD_insertDUBT1()
89 const BYTE* const iend = (curr>=dictLimit) ? inputEnd : dictBase + dictLimit; in ZSTD_insertDUBT1()
90 const BYTE* const dictEnd = dictBase + dictLimit; in ZSTD_insertDUBT1()
91 const BYTE* const prefixStart = base + dictLimit; in ZSTD_insertDUBT1()
103 curr, dictLimit, windowLow); in ZSTD_insertDUBT1()
116 || (matchIndex+matchLength >= dictLimit) /* both in current segment*/ in ZSTD_insertDUBT1()
117 || (curr < dictLimit) /* both in extDict */) { in ZSTD_insertDUBT1()
[all …]
H A Dzstd_compress_internal.h256 U32 dictLimit; /* below that point, need extDict */ member
1039 window->dictLimit = end; in ZSTD_window_clear()
1044 return window.dictLimit == ZSTD_WINDOW_START_INDEX && in ZSTD_window_isEmpty()
1055 return window.lowLimit < window.dictLimit; in ZSTD_window_hasExtDict()
1204 if (window->dictLimit < correction + ZSTD_WINDOW_START_INDEX) { in ZSTD_window_correctOverflow()
1205 window->dictLimit = ZSTD_WINDOW_START_INDEX; in ZSTD_window_correctOverflow()
1207 window->dictLimit -= correction; in ZSTD_window_correctOverflow()
1215 assert(window->dictLimit <= newCurrent); in ZSTD_window_correctOverflow()
1275 if (window->dictLimit < window->lowLimit) { in ZSTD_window_enforceMaxDist()
1277 (unsigned)window->dictLimit, (unsigned)window->lowLimit); in ZSTD_window_enforceMaxDist()
[all …]
H A Dzstd_opt.c460 const U32 dictLimit = ms->window.dictLimit; in ZSTD_insertBt1() local
461 const BYTE* const dictEnd = dictBase + dictLimit; in ZSTD_insertBt1()
462 const BYTE* const prefixStart = base + dictLimit; in ZSTD_insertBt1()
516 if (!extDict || (matchIndex+matchLength >= dictLimit)) { in ZSTD_insertBt1()
517 assert(matchIndex+matchLength >= dictLimit); /* might be wrong if actually extDict */ in ZSTD_insertBt1()
523 if (matchIndex+matchLength >= dictLimit) in ZSTD_insertBt1()
616 U32 const dictLimit = ms->window.dictLimit; in ZSTD_insertBtAndGetAllMatches() local
617 const BYTE* const dictEnd = dictBase + dictLimit; in ZSTD_insertBtAndGetAllMatches()
618 const BYTE* const prefixStart = base + dictLimit; in ZSTD_insertBtAndGetAllMatches()
653 assert(curr >= dictLimit); in ZSTD_insertBtAndGetAllMatches()
[all …]
H A Dzstd_ldm.c353 U32 const dictLimit = ldmState->window.dictLimit; in ZSTD_ldm_generateSequences_internal() local
354 U32 const lowestIndex = extDict ? ldmState->window.lowLimit : dictLimit; in ZSTD_ldm_generateSequences_internal()
358 BYTE const* const dictEnd = extDict ? dictBase + dictLimit : NULL; in ZSTD_ldm_generateSequences_internal()
359 BYTE const* const lowPrefixPtr = base + dictLimit; in ZSTD_ldm_generateSequences_internal()
433 cur->offset < dictLimit ? dictBase : base; in ZSTD_ldm_generateSequences_internal()
436 cur->offset < dictLimit ? dictEnd : iend; in ZSTD_ldm_generateSequences_internal()
438 cur->offset < dictLimit ? dictStart : lowPrefixPtr; in ZSTD_ldm_generateSequences_internal()
H A Dzstd_fast.c496 const U32 prefixStartIndex = ms->window.dictLimit; in ZSTD_compressBlock_fast_dictMatchState_generic()
505 const U32 dictStartIndex = dms->window.dictLimit; in ZSTD_compressBlock_fast_dictMatchState_generic()
725 const U32 dictLimit = ms->window.dictLimit; in ZSTD_compressBlock_fast_extDict_generic() local
726 const U32 prefixStartIndex = dictLimit < lowLimit ? lowLimit : dictLimit; in ZSTD_compressBlock_fast_extDict_generic()
H A Dzstd_double_fast.c355 const U32 dictStartIndex = dms->window.dictLimit; in ZSTD_compressBlock_doubleFast_dictMatchState_generic()
367 assert(ms->window.dictLimit + (1U << cParams->windowLog) >= endIndex); in ZSTD_compressBlock_doubleFast_dictMatchState_generic()
630 const U32 dictLimit = ms->window.dictLimit; in ZSTD_compressBlock_doubleFast_extDict_generic() local
631 const U32 prefixStartIndex = (dictLimit > lowLimit) ? dictLimit : lowLimit; in ZSTD_compressBlock_doubleFast_extDict_generic()
H A Dzstd_compress.c1863 ms->nextToUpdate = ms->window.dictLimit; in ZSTD_invalidateMatchState()
2284 const U32 cdictLen = cdictEnd - cdict->matchState.window.dictLimit; in ZSTD_resetCCtx_byAttachingCDict()
2294 if (cctx->blockState.matchState.window.dictLimit < cdictEnd) { in ZSTD_resetCCtx_byAttachingCDict()
2300 … cctx->blockState.matchState.loadedDictEnd = cctx->blockState.matchState.window.dictLimit; in ZSTD_resetCCtx_byAttachingCDict()
3203 assert(ms->dictMatchState == NULL || ms->loadedDictEnd == ms->window.dictLimit); in ZSTD_buildSeqStore()
4211 (unsigned)dstCapacity, (unsigned)zc->blockState.matchState.window.dictLimit, in ZSTD_compressBlock_splitBlock_internal()
4310 (unsigned)dstCapacity, (unsigned)zc->blockState.matchState.window.dictLimit, in ZSTD_compressBlock_internal()
4428 …(unsigned)dstCapacity, (unsigned)zc->blockState.matchState.window.dictLimit, (unsigned)zc->blockSt… in ZSTD_compressBlock_targetCBlockSize()
4733 ms->nextToUpdate = ms->window.dictLimit; in ZSTD_compressContinue_internal()