Home
last modified time | relevance | path

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

/Linux-v6.1/lib/lz4/
Dlz4hc_compress.c69 hc4->dictLimit = 64 * KB; in LZ4HC_init()
110 const U32 dictLimit = hc4->dictLimit; in LZ4HC_InsertAndFindBestMatch() local
125 if (matchIndex >= dictLimit) { in LZ4HC_InsertAndFindBestMatch()
144 + (dictLimit - matchIndex); in LZ4HC_InsertAndFindBestMatch()
153 base + dictLimit, in LZ4HC_InsertAndFindBestMatch()
181 const U32 dictLimit = hc4->dictLimit; in LZ4HC_InsertAndGetWiderMatch() local
182 const BYTE * const lowPrefixPtr = base + dictLimit; in LZ4HC_InsertAndGetWiderMatch()
198 if (matchIndex >= dictLimit) { in LZ4HC_InsertAndGetWiderMatch()
230 const BYTE *vLimit = ip + (dictLimit - matchIndex); in LZ4HC_InsertAndGetWiderMatch()
239 mlt += LZ4_count(ip + mlt, base + dictLimit, in LZ4HC_InsertAndGetWiderMatch()
[all …]
/Linux-v6.1/lib/zstd/compress/
Dzstd_lazy.c38 idx, target, ms->window.dictLimit); in ZSTD_updateDUBT()
42 assert(idx >= ms->window.dictLimit); /* condition for valid base+idx */ in ZSTD_updateDUBT()
76 const U32 dictLimit = ms->window.dictLimit; in ZSTD_insertDUBT1() local
77 const BYTE* const ip = (curr>=dictLimit) ? base + curr : dictBase + curr; in ZSTD_insertDUBT1()
78 const BYTE* const iend = (curr>=dictLimit) ? inputEnd : dictBase + dictLimit; in ZSTD_insertDUBT1()
79 const BYTE* const dictEnd = dictBase + dictLimit; in ZSTD_insertDUBT1()
80 const BYTE* const prefixStart = base + dictLimit; in ZSTD_insertDUBT1()
92 curr, dictLimit, windowLow); in ZSTD_insertDUBT1()
105 || (matchIndex+matchLength >= dictLimit) /* both in current segment*/ in ZSTD_insertDUBT1()
106 || (curr < dictLimit) /* both in extDict */) { in ZSTD_insertDUBT1()
[all …]
Dzstd_compress_internal.h141 U32 dictLimit; /* below that point, need extDict */ member
778 window->dictLimit = end; in ZSTD_window_clear()
787 return window.lowLimit < window.dictLimit; in ZSTD_window_hasExtDict()
864 if (window->dictLimit <= correction) window->dictLimit = 1; in ZSTD_window_correctOverflow()
865 else window->dictLimit -= correction; in ZSTD_window_correctOverflow()
872 assert(window->dictLimit <= newCurrent); in ZSTD_window_correctOverflow()
930 if (window->dictLimit < window->lowLimit) { in ZSTD_window_enforceMaxDist()
932 (unsigned)window->dictLimit, (unsigned)window->lowLimit); in ZSTD_window_enforceMaxDist()
933 window->dictLimit = window->lowLimit; in ZSTD_window_enforceMaxDist()
980 window->dictLimit = 1; /* start from 1, so that 1st position is valid */ in ZSTD_window_init()
[all …]
Dzstd_opt.c397 const U32 dictLimit = ms->window.dictLimit; in ZSTD_insertBt1() local
398 const BYTE* const dictEnd = dictBase + dictLimit; in ZSTD_insertBt1()
399 const BYTE* const prefixStart = base + dictLimit; in ZSTD_insertBt1()
449 if (!extDict || (matchIndex+matchLength >= dictLimit)) { in ZSTD_insertBt1()
450 assert(matchIndex+matchLength >= dictLimit); /* might be wrong if actually extDict */ in ZSTD_insertBt1()
456 if (matchIndex+matchLength >= dictLimit) in ZSTD_insertBt1()
545 U32 const dictLimit = ms->window.dictLimit; in ZSTD_insertBtAndGetAllMatches() local
546 const BYTE* const dictEnd = dictBase + dictLimit; in ZSTD_insertBtAndGetAllMatches()
547 const BYTE* const prefixStart = base + dictLimit; in ZSTD_insertBtAndGetAllMatches()
582 assert(curr >= dictLimit); in ZSTD_insertBtAndGetAllMatches()
[all …]
Dzstd_ldm.c304 U32 const dictLimit = ldmState->window.dictLimit; in ZSTD_ldm_generateSequences_internal() local
305 U32 const lowestIndex = extDict ? ldmState->window.lowLimit : dictLimit; in ZSTD_ldm_generateSequences_internal()
309 BYTE const* const dictEnd = extDict ? dictBase + dictLimit : NULL; in ZSTD_ldm_generateSequences_internal()
310 BYTE const* const lowPrefixPtr = base + dictLimit; in ZSTD_ldm_generateSequences_internal()
391 cur->offset < dictLimit ? dictBase : base; in ZSTD_ldm_generateSequences_internal()
394 cur->offset < dictLimit ? dictEnd : iend; in ZSTD_ldm_generateSequences_internal()
396 cur->offset < dictLimit ? dictStart : lowPrefixPtr; in ZSTD_ldm_generateSequences_internal()
Dzstd_fast.c220 const U32 prefixStartIndex = ms->window.dictLimit; in ZSTD_compressBlock_fast_dictMatchState_generic()
230 const U32 dictStartIndex = dms->window.dictLimit; in ZSTD_compressBlock_fast_dictMatchState_generic()
393 const U32 dictLimit = ms->window.dictLimit; in ZSTD_compressBlock_fast_extDict_generic() local
394 const U32 prefixStartIndex = dictLimit < lowLimit ? lowLimit : dictLimit; in ZSTD_compressBlock_fast_extDict_generic()
Dzstd_double_fast.c83 dms->window.dictLimit : 0; in ZSTD_compressBlock_doubleFast_generic()
105 assert(ms->window.dictLimit + (1U << cParams->windowLog) >= endIndex); in ZSTD_compressBlock_doubleFast_generic()
376 const U32 dictLimit = ms->window.dictLimit; in ZSTD_compressBlock_doubleFast_extDict_generic() local
377 const U32 prefixStartIndex = (dictLimit > lowLimit) ? dictLimit : lowLimit; in ZSTD_compressBlock_doubleFast_extDict_generic()
Dzstd_compress.c1450 ms->nextToUpdate = ms->window.dictLimit; in ZSTD_invalidateMatchState()
1793 const U32 cdictLen = cdictEnd - cdict->matchState.window.dictLimit; in ZSTD_resetCCtx_byAttachingCDict()
1803 if (cctx->blockState.matchState.window.dictLimit < cdictEnd) { in ZSTD_resetCCtx_byAttachingCDict()
1809 … cctx->blockState.matchState.loadedDictEnd = cctx->blockState.matchState.window.dictLimit; in ZSTD_resetCCtx_byAttachingCDict()
2414 assert(ms->dictMatchState == NULL || ms->loadedDictEnd == ms->window.dictLimit); in ZSTD_buildSeqStore()
2625 (unsigned)dstCapacity, (unsigned)zc->blockState.matchState.window.dictLimit, in ZSTD_compressBlock_internal()
2744 …(unsigned)dstCapacity, (unsigned)zc->blockState.matchState.window.dictLimit, (unsigned)zc->blockSt… in ZSTD_compressBlock_targetCBlockSize()
2987 ms->nextToUpdate = ms->window.dictLimit; in ZSTD_compressContinue_internal()
/Linux-v6.1/include/linux/
Dlz4.h124 unsigned int dictLimit; member