Home
last modified time | relevance | path

Searched refs:bestLength (Results 1 – 2 of 2) sorted by relevance

/linux-6.12.1/lib/zstd/compress/
Dzstd_opt.c442 size_t bestLength = 8; in ZSTD_insertBt1() local
495 if (matchLength > bestLength) { in ZSTD_insertBt1()
496 bestLength = matchLength; in ZSTD_insertBt1()
523 … if (bestLength > 384) positions = MIN(192, (U32)(bestLength - 384)); /* speed optimization */ in ZSTD_insertBt1()
606 size_t bestLength = lengthToBeat-1; in ZSTD_insertBtAndGetAllMatches() local
643 if (repLen > bestLength) { in ZSTD_insertBtAndGetAllMatches()
646 bestLength = repLen; in ZSTD_insertBtAndGetAllMatches()
656 if ((mls == 3) /*static*/ && (bestLength < mls)) { in ZSTD_insertBtAndGetAllMatches()
673 bestLength = mlen; in ZSTD_insertBtAndGetAllMatches()
708 if (matchLength > bestLength) { in ZSTD_insertBtAndGetAllMatches()
[all …]
Dzstd_lazy.c157 size_t bestLength, in ZSTD_DUBT_findBetterDictMatch() argument
196 if (matchLength > bestLength) { in ZSTD_DUBT_findBetterDictMatch()
198 …if ( (4*(int)(matchLength-bestLength)) > (int)(ZSTD_highbit32(curr-matchIndex+1) - ZSTD_highbit32(… in ZSTD_DUBT_findBetterDictMatch()
200 …curr, (U32)bestLength, (U32)matchLength, (U32)*offsetPtr, STORE_OFFSET(curr - matchIndex), dictMat… in ZSTD_DUBT_findBetterDictMatch()
201 bestLength = matchLength, *offsetPtr = STORE_OFFSET(curr - matchIndex); in ZSTD_DUBT_findBetterDictMatch()
220 if (bestLength >= MINMATCH) { in ZSTD_DUBT_findBetterDictMatch()
223 curr, (U32)bestLength, (U32)*offsetPtr, mIndex); in ZSTD_DUBT_findBetterDictMatch()
225 return bestLength; in ZSTD_DUBT_findBetterDictMatch()
307 size_t bestLength = 0; in ZSTD_DUBT_findBestMatch() local
327 if (matchLength > bestLength) { in ZSTD_DUBT_findBestMatch()
[all …]