Home
last modified time | relevance | path

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

/linux-6.15/lib/zstd/compress/
H A Dzstd_opt.c331 U32 const offCode = ZSTD_highbit32(offBase); in ZSTD_getMatchPrice() local
337 + ((16 + offCode) * BITCOST_MULTIPLIER); /* emulated offset cost */ in ZSTD_getMatchPrice()
340 …price = (offCode * BITCOST_MULTIPLIER) + (optPtr->offCodeSumBasePrice - WEIGHT(optPtr->offCodeFreq… in ZSTD_getMatchPrice()
341 if ((optLevel<2) /*static*/ && offCode >= 20) in ZSTD_getMatchPrice()
342 …price += (offCode-19)*2 * BITCOST_MULTIPLIER; /* handicap for long distance offsets, favor decompr… in ZSTD_getMatchPrice()
376 { U32 const offCode = ZSTD_highbit32(offBase); in ZSTD_updateStats() local
377 assert(offCode <= MaxOff); in ZSTD_updateStats()
378 optPtr->offCodeFreq[offCode]++; in ZSTD_updateStats()