Home
last modified time | relevance | path

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

/linux/lib/zstd/compress/
H A Dzstd_opt.c474 size_t bestLength = 8; in ZSTD_insertBt1() local
527 if (matchLength > bestLength) { in ZSTD_insertBt1()
528 bestLength = matchLength; in ZSTD_insertBt1()
555 … if (bestLength > 384) positions = MIN(192, (U32)(bestLength - 384)); /* speed optimization */ in ZSTD_insertBt1()
642 size_t bestLength = lengthToBeat-1; in ZSTD_insertBtAndGetAllMatches() local
679 if (repLen > bestLength) { in ZSTD_insertBtAndGetAllMatches()
682 bestLength = repLen; in ZSTD_insertBtAndGetAllMatches()
692 if ((mls == 3) /*static*/ && (bestLength < mls)) { in ZSTD_insertBtAndGetAllMatches()
709 bestLength = mlen; in ZSTD_insertBtAndGetAllMatches()
744 if (matchLength > bestLength) { in ZSTD_insertBtAndGetAllMatches()
[all …]
H A Dzstd_lazy.c169 size_t bestLength, in ZSTD_DUBT_findBetterDictMatch() argument
208 if (matchLength > bestLength) { in ZSTD_DUBT_findBetterDictMatch()
210 …if ( (4*(int)(matchLength-bestLength)) > (int)(ZSTD_highbit32(curr-matchIndex+1) - ZSTD_highbit32(… in ZSTD_DUBT_findBetterDictMatch()
212 …curr, (U32)bestLength, (U32)matchLength, (U32)*offsetPtr, OFFSET_TO_OFFBASE(curr - matchIndex), di… in ZSTD_DUBT_findBetterDictMatch()
213 bestLength = matchLength, *offsetPtr = OFFSET_TO_OFFBASE(curr - matchIndex); in ZSTD_DUBT_findBetterDictMatch()
232 if (bestLength >= MINMATCH) { in ZSTD_DUBT_findBetterDictMatch()
235 curr, (U32)bestLength, (U32)*offsetPtr, mIndex); in ZSTD_DUBT_findBetterDictMatch()
237 return bestLength; in ZSTD_DUBT_findBetterDictMatch()
320 size_t bestLength = 0; in ZSTD_DUBT_findBestMatch() local
340 if (matchLength > bestLength) { in ZSTD_DUBT_findBestMatch()
[all …]