Home
last modified time | relevance | path

Searched refs:offCodeFreq (Results 1 - 6 of 6) sorted by relevance

/kernel/linux/linux-5.10/lib/zstd/
H A Dzstd_internal.h204 U32 *offCodeFreq; member
H A Dzstd_opt.h70 ssPtr->offCodeFreq[u] = 1; in ZSTD_rescaleFreqs()
93 ssPtr->offCodeFreq[u] = 1 + (ssPtr->offCodeFreq[u] >> ZSTD_FREQ_DIV); in ZSTD_rescaleFreqs()
94 ssPtr->offCodeSum += ssPtr->offCodeFreq[u]; in ZSTD_rescaleFreqs()
151 price = offCode + seqStorePtr->log2offCodeSum - ZSTD_highbit32(seqStorePtr->offCodeFreq[offCode] + 1); in ZSTD_getPrice()
186 seqStorePtr->offCodeFreq[offCode]++; in ZSTD_updatePrice()
H A Dcompress.c310 zc->seqStore.offCodeFreq = zc->seqStore.matchLengthFreq + (MaxML + 1); in ZSTD_resetCCtx_advanced()
311 ptr = zc->seqStore.offCodeFreq + (MaxOff + 1); in ZSTD_resetCCtx_advanced()
/kernel/linux/linux-6.6/lib/zstd/compress/
H A Dzstd_opt.c187 optPtr->offCodeFreq[of] = bitCost ? 1 << (scaleLog-bitCost) : 1 /*minimum to calculate cost*/; in ZSTD_rescaleFreqs()
188 optPtr->offCodeSum += optPtr->offCodeFreq[of]; in ZSTD_rescaleFreqs()
223 ZSTD_memcpy(optPtr->offCodeFreq, baseOFCfreqs, sizeof(baseOFCfreqs)); in ZSTD_rescaleFreqs()
236 optPtr->offCodeSum = ZSTD_scaleStats(optPtr->offCodeFreq, MaxOff, 11); in ZSTD_rescaleFreqs()
312 price = (offCode * BITCOST_MULTIPLIER) + (optPtr->offCodeSumBasePrice - WEIGHT(optPtr->offCodeFreq[offCode], optLevel)); in ZSTD_getMatchPrice()
350 optPtr->offCodeFreq[offCode]++; in ZSTD_updateStats()
H A Dzstd_compress_internal.h162 unsigned* offCodeFreq; /* table of offCode statistics, of size (MaxOff+1) */ member
H A Dzstd_compress.c1694 ms->opt.offCodeFreq = (unsigned*)ZSTD_cwksp_reserve_aligned(ws, (MaxOff+1) * sizeof(unsigned)); in ZSTD_reset_matchState()

Completed in 29 milliseconds