Lines Matching refs:normalizedCounter

68                       const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog,  in FSE_buildCTable_wksp()  argument
102 if (normalizedCounter[u-1]==-1) { /* Low proba symbol */ in FSE_buildCTable_wksp()
106 cumul[u] = cumul[u-1] + normalizedCounter[u-1]; in FSE_buildCTable_wksp()
116 int const freq = normalizedCounter[symbol]; in FSE_buildCTable_wksp()
137 switch (normalizedCounter[s]) in FSE_buildCTable_wksp()
152 U32 const maxBitsOut = tableLog - BIT_highbit32 (normalizedCounter[s]-1); in FSE_buildCTable_wksp()
153 U32 const minStatePlus = normalizedCounter[s] << maxBitsOut; in FSE_buildCTable_wksp()
155 symbolTT[s].deltaFindState = total - normalizedCounter[s]; in FSE_buildCTable_wksp()
156 total += normalizedCounter[s]; in FSE_buildCTable_wksp()
164 symbol, normalizedCounter[symbol], in FSE_buildCTable_wksp()
191 const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog, in FSE_writeNCount_generic() argument
219 while ((symbol < alphabetSize) && !normalizedCounter[symbol]) symbol++; in FSE_writeNCount_generic()
247 { int count = normalizedCounter[symbol++]; in FSE_writeNCount_generic()
286 const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog) in FSE_writeNCount() argument
292 …return FSE_writeNCount_generic(buffer, bufferSize, normalizedCounter, maxSymbolValue, tableLog, 0); in FSE_writeNCount()
294 …return FSE_writeNCount_generic(buffer, bufferSize, normalizedCounter, maxSymbolValue, tableLog, 1 … in FSE_writeNCount()
430 size_t FSE_normalizeCount (short* normalizedCounter, unsigned tableLog, in FSE_normalizeCount() argument
453 if (count[s] == 0) { normalizedCounter[s]=0; continue; } in FSE_normalizeCount()
455 normalizedCounter[s] = lowProbCount; in FSE_normalizeCount()
464 normalizedCounter[s] = proba; in FSE_normalizeCount()
467 if (-stillToDistribute >= (normalizedCounter[largest] >> 1)) { in FSE_normalizeCount()
469 …size_t const errorCode = FSE_normalizeM2(normalizedCounter, tableLog, count, total, maxSymbolValue… in FSE_normalizeCount()
472 else normalizedCounter[largest] += (short)stillToDistribute; in FSE_normalizeCount()
480 RAWLOG(2, "%3i: %4i \n", s, normalizedCounter[s]); in FSE_normalizeCount()
482 nTotal += abs(normalizedCounter[s]); in FSE_normalizeCount()