Searched refs:bestLength (Results 1 - 4 of 4) sorted by relevance
/kernel/linux/linux-6.6/lib/zstd/compress/ |
H A D | zstd_opt.c | 442 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() 670 if (mlen >= mls /* == 3 > bestLength */) { in ZSTD_insertBtAndGetAllMatches() [all...] |
H A D | zstd_lazy.c | 157 size_t bestLength, in ZSTD_DUBT_findBetterDictMatch() 196 if (matchLength > bestLength) { in ZSTD_DUBT_findBetterDictMatch() 198 if ( (4*(int)(matchLength-bestLength)) > (int)(ZSTD_highbit32(curr-matchIndex+1) - ZSTD_highbit32((U32)offsetPtr[0]+1)) ) { in ZSTD_DUBT_findBetterDictMatch() 200 curr, (U32)bestLength, (U32)matchLength, (U32)*offsetPtr, STORE_OFFSET(curr - matchIndex), dictMatchIndex, matchIndex); 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() 153 ZSTD_DUBT_findBetterDictMatch( const ZSTD_matchState_t* ms, const BYTE* const ip, const BYTE* const iend, size_t* offsetPtr, size_t bestLength, U32 nbCompares, U32 const mls, const ZSTD_dictMode_e dictMode) ZSTD_DUBT_findBetterDictMatch() argument [all...] |
/kernel/linux/linux-5.10/lib/zstd/ |
H A D | zstd_opt.h | 261 size_t bestLength = minMatchLen - 1; in ZSTD_insertBtAndGetAllMatches() local 270 if (match[bestLength] == ip[bestLength]) in ZSTD_insertBtAndGetAllMatches() 280 if (currMl > bestLength) { in ZSTD_insertBtAndGetAllMatches() 281 bestLength = currMl; in ZSTD_insertBtAndGetAllMatches() 312 if (matchLength > bestLength) { in ZSTD_insertBtAndGetAllMatches() 315 bestLength = matchLength; in ZSTD_insertBtAndGetAllMatches()
|
H A D | compress.c | 1584 size_t bestLength = 8; in ZSTD_insertBt1() local 1603 if (matchLength > bestLength) { in ZSTD_insertBt1() 1604 bestLength = matchLength; in ZSTD_insertBt1() 1636 if (bestLength > 384) in ZSTD_insertBt1() 1637 return MIN(192, (U32)(bestLength - 384)); /* speed optimization */ in ZSTD_insertBt1() 1666 size_t bestLength = 0; in ZSTD_insertBtAndFindBestMatch() local 1686 if (matchLength > bestLength) { in ZSTD_insertBtAndFindBestMatch() 1689 if ((4 * (int)(matchLength - bestLength)) > (int)(ZSTD_highbit32(curr - matchIndex + 1) - ZSTD_highbit32((U32)offsetPtr[0] + 1))) in ZSTD_insertBtAndFindBestMatch() 1690 bestLength = matchLength, *offsetPtr = ZSTD_REP_MOVE + curr - matchIndex; in ZSTD_insertBtAndFindBestMatch() 1721 return bestLength; in ZSTD_insertBtAndFindBestMatch() [all...] |
Completed in 11 milliseconds