Lines Matching refs:norm
74 S16 norm[MaxSeq + 1];
76 FORWARD_IF_ERROR(FSE_normalizeCount(norm, tableLog, count, nbSeq, max, ZSTD_useLowProbCount(nbSeq)), "");
77 return FSE_writeNCount(wksp, sizeof(wksp), norm, max, tableLog);
91 unsigned norm = (unsigned)((256 * count[s]) / total);
92 if (count[s] != 0 && norm == 0)
93 norm = 1;
95 cost += count[s] * kInverseProbabilityLog256[norm];
136 * table described by norm. The max symbol support by norm is assumed >= max.
137 * norm must be valid for every symbol with non-zero probability in count.
139 size_t ZSTD_crossEntropyCost(short const* norm, unsigned accuracyLog,
147 unsigned const normAcc = (norm[s] != -1) ? (unsigned)norm[s] : 1;
238 S16 norm[MaxSeq + 1];
278 FORWARD_IF_ERROR(FSE_normalizeCount(wksp->norm, tableLog, count, nbSeq_1, max, ZSTD_useLowProbCount(nbSeq_1)), "FSE_normalizeCount failed");
280 { size_t const NCountSize = FSE_writeNCount(op, (size_t)(oend - op), wksp->norm, max, tableLog); /* overflow protected */
282 FORWARD_IF_ERROR(FSE_buildCTable_wksp(nextCTable, wksp->norm, max, tableLog, wksp->wksp, sizeof(wksp->wksp)), "FSE_buildCTable_wksp failed");