Searched refs:litFreq (Results 1 – 3 of 3) sorted by relevance
/linux-6.12.1/lib/zstd/compress/ |
D | zstd_opt.c | 145 assert(optPtr->litFreq != NULL); in ZSTD_rescaleFreqs() 151 … optPtr->litFreq[lit] = bitCost ? 1 << (scaleLog-bitCost) : 1 /*minimum to calculate cost*/; in ZSTD_rescaleFreqs() 152 optPtr->litSum += optPtr->litFreq[lit]; in ZSTD_rescaleFreqs() 193 assert(optPtr->litFreq != NULL); in ZSTD_rescaleFreqs() 196 …HIST_count_simple(optPtr->litFreq, &lit, src, srcSize); /* use raw first block to init statistic… in ZSTD_rescaleFreqs() 197 optPtr->litSum = ZSTD_downscaleStats(optPtr->litFreq, MaxLit, 8); in ZSTD_rescaleFreqs() 233 optPtr->litSum = ZSTD_scaleStats(optPtr->litFreq, MaxLit, 12); in ZSTD_rescaleFreqs() 261 …assert(WEIGHT(optPtr->litFreq[literals[u]], optLevel) <= optPtr->litSumBasePrice); /* literal co… in ZSTD_rawLiteralsCost() 262 price -= WEIGHT(optPtr->litFreq[literals[u]], optLevel); in ZSTD_rawLiteralsCost() 337 optPtr->litFreq[literals[u]] += ZSTD_LITFREQ_ADD; in ZSTD_updateStats()
|
D | zstd_compress_internal.h | 159 unsigned* litFreq; /* table of literals statistics, of size 256 */ member
|
D | zstd_compress.c | 1691 … ms->opt.litFreq = (unsigned*)ZSTD_cwksp_reserve_aligned(ws, (1<<Litbits) * sizeof(unsigned)); in ZSTD_reset_matchState()
|