Home
last modified time | relevance | path

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

/linux-6.1.9/lib/zstd/compress/
Dzstd_opt.c137 assert(optPtr->litFreq != NULL); in ZSTD_rescaleFreqs()
143 … optPtr->litFreq[lit] = bitCost ? 1 << (scaleLog-bitCost) : 1 /*minimum to calculate cost*/; in ZSTD_rescaleFreqs()
144 optPtr->litSum += optPtr->litFreq[lit]; in ZSTD_rescaleFreqs()
185 assert(optPtr->litFreq != NULL); in ZSTD_rescaleFreqs()
188 …HIST_count_simple(optPtr->litFreq, &lit, src, srcSize); /* use raw first block to init statistic… in ZSTD_rescaleFreqs()
189 optPtr->litSum = ZSTD_downscaleStat(optPtr->litFreq, MaxLit, 1); in ZSTD_rescaleFreqs()
215 optPtr->litSum = ZSTD_downscaleStat(optPtr->litFreq, MaxLit, 1); in ZSTD_rescaleFreqs()
243 …assert(WEIGHT(optPtr->litFreq[literals[u]], optLevel) <= optPtr->litSumBasePrice); /* literal co… in ZSTD_rawLiteralsCost()
244 price -= WEIGHT(optPtr->litFreq[literals[u]], optLevel); in ZSTD_rawLiteralsCost()
308 optPtr->litFreq[literals[u]] += ZSTD_LITFREQ_ADD; in ZSTD_updateStats()
[all …]
Dzstd_compress_internal.h112 unsigned* litFreq; /* table of literals statistics, of size 256 */ member
Dzstd_compress.c1527 … ms->opt.litFreq = (unsigned*)ZSTD_cwksp_reserve_aligned(ws, (1<<Litbits) * sizeof(unsigned)); in ZSTD_reset_matchState()