Lines Matching refs:norm
74 S16 norm[MaxSeq + 1]; in ZSTD_NCountCost() local
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()
91 unsigned norm = (unsigned)((256 * count[s]) / total); in ZSTD_entropyCost() local
92 if (count[s] != 0 && norm == 0) in ZSTD_entropyCost()
93 norm = 1; in ZSTD_entropyCost()
95 cost += count[s] * kInverseProbabilityLog256[norm]; in ZSTD_entropyCost()
139 size_t ZSTD_crossEntropyCost(short const* norm, unsigned accuracyLog, in ZSTD_crossEntropyCost() argument
147 unsigned const normAcc = (norm[s] != -1) ? (unsigned)norm[s] : 1; in ZSTD_crossEntropyCost()
238 S16 norm[MaxSeq + 1]; member
278 …FORWARD_IF_ERROR(FSE_normalizeCount(wksp->norm, tableLog, count, nbSeq_1, max, ZSTD_useLowProbCoun… in ZSTD_buildCTable()
280 …{ size_t const NCountSize = FSE_writeNCount(op, (size_t)(oend - op), wksp->norm, max, tableLog);… in ZSTD_buildCTable()
282 …FORWARD_IF_ERROR(FSE_buildCTable_wksp(nextCTable, wksp->norm, max, tableLog, wksp->wksp, sizeof(wk… in ZSTD_buildCTable()