Lines Matching refs:max
70 static size_t ZSTD_NCountCost(unsigned const* count, unsigned const max, in ZSTD_NCountCost() argument
75 const U32 tableLog = FSE_optimalTableLog(FSELog, nbSeq, max); in ZSTD_NCountCost()
76 …FORWARD_IF_ERROR(FSE_normalizeCount(norm, tableLog, count, nbSeq, max, ZSTD_useLowProbCount(nbSeq)… in ZSTD_NCountCost()
77 return FSE_writeNCount(wksp, sizeof(wksp), norm, max, tableLog); in ZSTD_NCountCost()
84 static size_t ZSTD_entropyCost(unsigned const* count, unsigned const max, size_t const total) in ZSTD_entropyCost() argument
88 for (s = 0; s <= max; ++s) { in ZSTD_entropyCost()
105 unsigned const max) in ZSTD_fseBitCost() argument
112 if (ZSTD_getFSEMaxSymbolValue(ctable) < max) { in ZSTD_fseBitCost()
114 ZSTD_getFSEMaxSymbolValue(ctable), max); in ZSTD_fseBitCost()
117 for (s = 0; s <= max; ++s) { in ZSTD_fseBitCost()
138 unsigned const* count, unsigned const max) in ZSTD_crossEntropyCost() argument
144 for (s = 0; s <= max; ++s) { in ZSTD_crossEntropyCost()
156 FSE_repeat* repeatMode, unsigned const* count, unsigned const max, in ZSTD_selectEncodingType() argument
204 …isDefaultAllowed ? ZSTD_crossEntropyCost(defaultNorm, defaultNormLog, count, max) : ERROR(GENERIC); in ZSTD_selectEncodingType()
205 …atCost = *repeatMode != FSE_repeat_none ? ZSTD_fseBitCost(prevCTable, count, max) : ERROR(GENERIC); in ZSTD_selectEncodingType()
206 size_t const NCountCost = ZSTD_NCountCost(count, max, nbSeq, FSELog); in ZSTD_selectEncodingType()
207 size_t const compressedCost = (NCountCost << 3) + ZSTD_entropyCost(count, max, nbSeq); in ZSTD_selectEncodingType()
238 unsigned* count, U32 max, in ZSTD_buildCTable() argument
250 FORWARD_IF_ERROR(FSE_buildCTable_rle(nextCTable, (BYTE)max), ""); in ZSTD_buildCTable()
263 const U32 tableLog = FSE_optimalTableLog(FSELog, nbSeq, max); in ZSTD_buildCTable()
270 …FORWARD_IF_ERROR(FSE_normalizeCount(norm, tableLog, count, nbSeq_1, max, ZSTD_useLowProbCount(nbSe… in ZSTD_buildCTable()
271 …{ size_t const NCountSize = FSE_writeNCount(op, oend - op, norm, max, tableLog); /* overflow p… in ZSTD_buildCTable()
273 …FORWARD_IF_ERROR(FSE_buildCTable_wksp(nextCTable, norm, max, tableLog, entropyWorkspace, entropyWo… in ZSTD_buildCTable()