Lines Matching refs:max

71 static size_t ZSTD_NCountCost(unsigned const* count, unsigned const max,  in ZSTD_NCountCost()  argument
76 const U32 tableLog = FSE_optimalTableLog(FSELog, nbSeq, max); in ZSTD_NCountCost()
77 …FORWARD_IF_ERROR(FSE_normalizeCount(norm, tableLog, count, nbSeq, max, ZSTD_useLowProbCount(nbSeq)… in ZSTD_NCountCost()
78 return FSE_writeNCount(wksp, sizeof(wksp), norm, max, tableLog); in ZSTD_NCountCost()
85 static size_t ZSTD_entropyCost(unsigned const* count, unsigned const max, size_t const total) in ZSTD_entropyCost() argument
91 for (s = 0; s <= max; ++s) { in ZSTD_entropyCost()
108 unsigned const max) in ZSTD_fseBitCost() argument
115 if (ZSTD_getFSEMaxSymbolValue(ctable) < max) { in ZSTD_fseBitCost()
117 ZSTD_getFSEMaxSymbolValue(ctable), max); in ZSTD_fseBitCost()
120 for (s = 0; s <= max; ++s) { in ZSTD_fseBitCost()
141 unsigned const* count, unsigned const max) in ZSTD_crossEntropyCost() argument
147 for (s = 0; s <= max; ++s) { in ZSTD_crossEntropyCost()
159 FSE_repeat* repeatMode, unsigned const* count, unsigned const max, in ZSTD_selectEncodingType() argument
207 …isDefaultAllowed ? ZSTD_crossEntropyCost(defaultNorm, defaultNormLog, count, max) : ERROR(GENERIC); in ZSTD_selectEncodingType()
208 …atCost = *repeatMode != FSE_repeat_none ? ZSTD_fseBitCost(prevCTable, count, max) : ERROR(GENERIC); in ZSTD_selectEncodingType()
209 size_t const NCountCost = ZSTD_NCountCost(count, max, nbSeq, FSELog); in ZSTD_selectEncodingType()
210 size_t const compressedCost = (NCountCost << 3) + ZSTD_entropyCost(count, max, nbSeq); in ZSTD_selectEncodingType()
246 unsigned* count, U32 max, in ZSTD_buildCTable() argument
258 FORWARD_IF_ERROR(FSE_buildCTable_rle(nextCTable, (BYTE)max), ""); in ZSTD_buildCTable()
271 const U32 tableLog = FSE_optimalTableLog(FSELog, nbSeq, max); in ZSTD_buildCTable()
279 …FORWARD_IF_ERROR(FSE_normalizeCount(wksp->norm, tableLog, count, nbSeq_1, max, ZSTD_useLowProbCoun… in ZSTD_buildCTable()
281 …{ size_t const NCountSize = FSE_writeNCount(op, (size_t)(oend - op), wksp->norm, max, tableLog);… in ZSTD_buildCTable()
283 …FORWARD_IF_ERROR(FSE_buildCTable_wksp(nextCTable, wksp->norm, max, tableLog, wksp->wksp, sizeof(wk… in ZSTD_buildCTable()