Lines Matching refs:normalizedCounter

85 size_t FSE_buildCTable_wksp(FSE_CTable* ct, const short* normalizedCounter, unsigned maxSymbolValue…  in FSE_buildCTable_wksp()  argument
111 if (normalizedCounter[u-1]==-1) { /* Low proba symbol */ in FSE_buildCTable_wksp()
115 cumul[u] = cumul[u-1] + normalizedCounter[u-1]; in FSE_buildCTable_wksp()
125 for (nbOccurences=0; nbOccurences<normalizedCounter[symbol]; nbOccurences++) { in FSE_buildCTable_wksp()
144 switch (normalizedCounter[s]) in FSE_buildCTable_wksp()
156 U32 const maxBitsOut = tableLog - BIT_highbit32 (normalizedCounter[s]-1); in FSE_buildCTable_wksp()
157 U32 const minStatePlus = normalizedCounter[s] << maxBitsOut; in FSE_buildCTable_wksp()
159 symbolTT[s].deltaFindState = total - normalizedCounter[s]; in FSE_buildCTable_wksp()
160 total += normalizedCounter[s]; in FSE_buildCTable_wksp()
167 size_t FSE_buildCTable(FSE_CTable* ct, const short* normalizedCounter, unsigned maxSymbolValue, uns… in FSE_buildCTable() argument
170 …return FSE_buildCTable_wksp(ct, normalizedCounter, maxSymbolValue, tableLog, tableSymbol, sizeof(t… in FSE_buildCTable()
187 … const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog, in FSE_writeNCount_generic() argument
216 while (!normalizedCounter[charnum]) charnum++; in FSE_writeNCount_generic()
241 { int count = normalizedCounter[charnum++]; in FSE_writeNCount_generic()
274 size_t FSE_writeNCount (void* buffer, size_t bufferSize, const short* normalizedCounter, unsigned m… in FSE_writeNCount() argument
280 …return FSE_writeNCount_generic(buffer, bufferSize, normalizedCounter, maxSymbolValue, tableLog, 0); in FSE_writeNCount()
282 …return FSE_writeNCount_generic(buffer, bufferSize, normalizedCounter, maxSymbolValue, tableLog, 1); in FSE_writeNCount()
583 size_t FSE_normalizeCount (short* normalizedCounter, unsigned tableLog, in FSE_normalizeCount() argument
605 if (count[s] == 0) { normalizedCounter[s]=0; continue; } in FSE_normalizeCount()
607 normalizedCounter[s] = -1; in FSE_normalizeCount()
616 normalizedCounter[s] = proba; in FSE_normalizeCount()
619 if (-stillToDistribute >= (normalizedCounter[largest] >> 1)) { in FSE_normalizeCount()
621 …size_t const errorCode = FSE_normalizeM2(normalizedCounter, tableLog, count, total, maxSymbolValue… in FSE_normalizeCount()
624 else normalizedCounter[largest] += (short)stillToDistribute; in FSE_normalizeCount()
632 printf("%3i: %4i \n", s, normalizedCounter[s]); in FSE_normalizeCount()
634 nTotal += abs(normalizedCounter[s]); in FSE_normalizeCount()