Lines Matching refs:normalizedCounter
92 size_t FSE_buildCTable_wksp(FSE_CTable *ct, const short *normalizedCounter, unsigned maxSymbolValue… in FSE_buildCTable_wksp() argument
129 if (normalizedCounter[u - 1] == -1) { /* Low proba symbol */ in FSE_buildCTable_wksp()
133 cumul[u] = cumul[u - 1] + normalizedCounter[u - 1]; in FSE_buildCTable_wksp()
145 for (nbOccurences = 0; nbOccurences < normalizedCounter[symbol]; nbOccurences++) { in FSE_buildCTable_wksp()
171 switch (normalizedCounter[s]) { in FSE_buildCTable_wksp()
181 U32 const maxBitsOut = tableLog - BIT_highbit32(normalizedCounter[s] - 1); in FSE_buildCTable_wksp()
182 U32 const minStatePlus = normalizedCounter[s] << maxBitsOut; in FSE_buildCTable_wksp()
184 symbolTT[s].deltaFindState = total - normalizedCounter[s]; in FSE_buildCTable_wksp()
185 total += normalizedCounter[s]; in FSE_buildCTable_wksp()
203 …eNCount_generic(void *header, size_t headerBufferSize, const short *normalizedCounter, unsigned ma… in FSE_writeNCount_generic() argument
232 while (!normalizedCounter[charnum]) in FSE_writeNCount_generic()
262 int count = normalizedCounter[charnum++]; in FSE_writeNCount_generic()
301 size_t FSE_writeNCount(void *buffer, size_t bufferSize, const short *normalizedCounter, unsigned ma… in FSE_writeNCount() argument
309 …return FSE_writeNCount_generic(buffer, bufferSize, normalizedCounter, maxSymbolValue, tableLog, 0); in FSE_writeNCount()
311 return FSE_writeNCount_generic(buffer, bufferSize, normalizedCounter, maxSymbolValue, tableLog, 1); in FSE_writeNCount()
608 size_t FSE_normalizeCount(short *normalizedCounter, unsigned tableLog, const unsigned *count, size_… in FSE_normalizeCount() argument
635 normalizedCounter[s] = 0; in FSE_normalizeCount()
639 normalizedCounter[s] = -1; in FSE_normalizeCount()
649 normalizedCounter[s] = proba; in FSE_normalizeCount()
653 if (-stillToDistribute >= (normalizedCounter[largest] >> 1)) { in FSE_normalizeCount()
655 …size_t const errorCode = FSE_normalizeM2(normalizedCounter, tableLog, count, total, maxSymbolValue… in FSE_normalizeCount()
659 normalizedCounter[largest] += (short)stillToDistribute; in FSE_normalizeCount()