Home
last modified time | relevance | path

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

/linux-6.1.9/lib/zstd/compress/
Dzstd_opt.c141 U32 const bitCost = HUF_getNbBits(optPtr->symbolCosts->huf.CTable, lit); in ZSTD_rescaleFreqs() local
142 assert(bitCost <= scaleLog); in ZSTD_rescaleFreqs()
143 … optPtr->litFreq[lit] = bitCost ? 1 << (scaleLog-bitCost) : 1 /*minimum to calculate cost*/; in ZSTD_rescaleFreqs()
153 U32 const bitCost = FSE_getMaxNbBits(llstate.symbolTT, ll); in ZSTD_rescaleFreqs() local
154 assert(bitCost < scaleLog); in ZSTD_rescaleFreqs()
155 … optPtr->litLengthFreq[ll] = bitCost ? 1 << (scaleLog-bitCost) : 1 /*minimum to calculate cost*/; in ZSTD_rescaleFreqs()
165 U32 const bitCost = FSE_getMaxNbBits(mlstate.symbolTT, ml); in ZSTD_rescaleFreqs() local
166 assert(bitCost < scaleLog); in ZSTD_rescaleFreqs()
167 … optPtr->matchLengthFreq[ml] = bitCost ? 1 << (scaleLog-bitCost) : 1 /*minimum to calculate cost*/; in ZSTD_rescaleFreqs()
177 U32 const bitCost = FSE_getMaxNbBits(ofstate.symbolTT, of); in ZSTD_rescaleFreqs() local
[all …]
Dzstd_compress_sequences.c120 unsigned const bitCost = FSE_bitCost(cstate.symbolTT, tableLog, s, kAccuracyLog); in ZSTD_fseBitCost() local
123 if (bitCost >= badCost) { in ZSTD_fseBitCost()
127 cost += (size_t)count[s] * bitCost; in ZSTD_fseBitCost()