Lines Matching refs:normalizedCounter
68 const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog, in FSE_buildCTable_wksp() argument
103 if (normalizedCounter[u-1]==-1) { /* Low proba symbol */ in FSE_buildCTable_wksp()
107 assert(normalizedCounter[u-1] >= 0); in FSE_buildCTable_wksp()
108 cumul[u] = cumul[u-1] + (U16)normalizedCounter[u-1]; in FSE_buildCTable_wksp()
126 int const n = normalizedCounter[s]; in FSE_buildCTable_wksp()
158 int const freq = normalizedCounter[symbol]; in FSE_buildCTable_wksp()
178 switch (normalizedCounter[s]) in FSE_buildCTable_wksp()
193 assert(normalizedCounter[s] > 1); in FSE_buildCTable_wksp()
194 { U32 const maxBitsOut = tableLog - BIT_highbit32 ((U32)normalizedCounter[s]-1); in FSE_buildCTable_wksp()
195 U32 const minStatePlus = (U32)normalizedCounter[s] << maxBitsOut; in FSE_buildCTable_wksp()
197 symbolTT[s].deltaFindState = (int)(total - (unsigned)normalizedCounter[s]); in FSE_buildCTable_wksp()
198 total += (unsigned)normalizedCounter[s]; in FSE_buildCTable_wksp()
206 symbol, normalizedCounter[symbol], in FSE_buildCTable_wksp()
234 const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog, in FSE_writeNCount_generic() argument
262 while ((symbol < alphabetSize) && !normalizedCounter[symbol]) symbol++; in FSE_writeNCount_generic()
290 { int count = normalizedCounter[symbol++]; in FSE_writeNCount_generic()
329 const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog) in FSE_writeNCount() argument
335 …return FSE_writeNCount_generic(buffer, bufferSize, normalizedCounter, maxSymbolValue, tableLog, 0); in FSE_writeNCount()
337 …return FSE_writeNCount_generic(buffer, bufferSize, normalizedCounter, maxSymbolValue, tableLog, 1 … in FSE_writeNCount()
473 size_t FSE_normalizeCount (short* normalizedCounter, unsigned tableLog, in FSE_normalizeCount() argument
496 if (count[s] == 0) { normalizedCounter[s]=0; continue; } in FSE_normalizeCount()
498 normalizedCounter[s] = lowProbCount; in FSE_normalizeCount()
507 normalizedCounter[s] = proba; in FSE_normalizeCount()
510 if (-stillToDistribute >= (normalizedCounter[largest] >> 1)) { in FSE_normalizeCount()
512 …size_t const errorCode = FSE_normalizeM2(normalizedCounter, tableLog, count, total, maxSymbolValue… in FSE_normalizeCount()
515 else normalizedCounter[largest] += (short)stillToDistribute; in FSE_normalizeCount()
523 RAWLOG(2, "%3i: %4i \n", s, normalizedCounter[s]); in FSE_normalizeCount()
525 nTotal += abs(normalizedCounter[s]); in FSE_normalizeCount()