Lines Matching refs:normalizedCounter
979 FSE_PUBLIC_API size_t FSE_normalizeCount(short* normalizedCounter, unsigned tableLog,
992 const short* normalizedCounter,
1004 FSE_PUBLIC_API size_t FSE_buildCTable(FSE_CTable* ct, const short* normalizedCounter, unsigned maxS…
1064 FSE_PUBLIC_API size_t FSE_readNCount (short* normalizedCounter,
1077 FSE_PUBLIC_API size_t FSE_buildDTable (FSE_DTable* dt, const short* normalizedCounter, unsigned max…
1795 size_t FSE_buildCTable_wksp(FSE_CTable* ct, const short* normalizedCounter, unsigned maxSymbolValue…
2518 size_t FSE_readNCount (short* normalizedCounter, unsigned* maxSVPtr, unsigned* tableLogPtr, in FSE_readNCount() argument
2537 { size_t const countSize = FSE_readNCount(normalizedCounter, maxSVPtr, tableLogPtr, in FSE_readNCount()
2546 …memset(normalizedCounter, 0, (*maxSVPtr+1) * sizeof(normalizedCounter[0])); /* all symbols not p… in FSE_readNCount()
2577 while (charnum < n0) normalizedCounter[charnum++] = 0; in FSE_readNCount()
2600 normalizedCounter[charnum++] = (short)count; in FSE_readNCount()
2822 size_t FSE_buildDTable(FSE_DTable* dt, const short* normalizedCounter, unsigned maxSymbolValue, uns… in FSE_buildDTable() argument
2843 if (normalizedCounter[s]==-1) { in FSE_buildDTable()
2847 if (normalizedCounter[s] >= largeLimit) DTableH.fastMode=0; in FSE_buildDTable()
2848 symbolNext[s] = normalizedCounter[s]; in FSE_buildDTable()
2859 for (i=0; i<normalizedCounter[s]; i++) { in FSE_buildDTable()
7544 const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog, in FSE_buildCTable_wksp() argument
7576 if (normalizedCounter[u-1]==-1) { /* Low proba symbol */ in FSE_buildCTable_wksp()
7580 cumul[u] = cumul[u-1] + normalizedCounter[u-1]; in FSE_buildCTable_wksp()
7590 int const freq = normalizedCounter[symbol]; in FSE_buildCTable_wksp()
7611 switch (normalizedCounter[s]) in FSE_buildCTable_wksp()
7626 U32 const maxBitsOut = tableLog - BIT_highbit32 (normalizedCounter[s]-1); in FSE_buildCTable_wksp()
7627 U32 const minStatePlus = normalizedCounter[s] << maxBitsOut; in FSE_buildCTable_wksp()
7629 symbolTT[s].deltaFindState = total - normalizedCounter[s]; in FSE_buildCTable_wksp()
7630 total += normalizedCounter[s]; in FSE_buildCTable_wksp()
7638 symbol, normalizedCounter[symbol], in FSE_buildCTable_wksp()
7649 size_t FSE_buildCTable(FSE_CTable* ct, const short* normalizedCounter, unsigned maxSymbolValue, uns… in FSE_buildCTable() argument
7652 …return FSE_buildCTable_wksp(ct, normalizedCounter, maxSymbolValue, tableLog, tableSymbol, sizeof(t… in FSE_buildCTable()
7671 const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog, in FSE_writeNCount_generic() argument
7699 while ((symbol < alphabetSize) && !normalizedCounter[symbol]) symbol++; in FSE_writeNCount_generic()
7727 { int count = normalizedCounter[symbol++]; in FSE_writeNCount_generic()
7766 const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog) in FSE_writeNCount() argument
7772 …return FSE_writeNCount_generic(buffer, bufferSize, normalizedCounter, maxSymbolValue, tableLog, 0); in FSE_writeNCount()
7774 …return FSE_writeNCount_generic(buffer, bufferSize, normalizedCounter, maxSymbolValue, tableLog, 1 … in FSE_writeNCount()
7912 size_t FSE_normalizeCount (short* normalizedCounter, unsigned tableLog, in FSE_normalizeCount() argument
7934 if (count[s] == 0) { normalizedCounter[s]=0; continue; } in FSE_normalizeCount()
7936 normalizedCounter[s] = -1; in FSE_normalizeCount()
7945 normalizedCounter[s] = proba; in FSE_normalizeCount()
7948 if (-stillToDistribute >= (normalizedCounter[largest] >> 1)) { in FSE_normalizeCount()
7950 …size_t const errorCode = FSE_normalizeM2(normalizedCounter, tableLog, count, total, maxSymbolValue… in FSE_normalizeCount()
7953 else normalizedCounter[largest] += (short)stillToDistribute; in FSE_normalizeCount()
7961 RAWLOG(2, "%3i: %4i \n", s, normalizedCounter[s]); in FSE_normalizeCount()
7963 nTotal += abs(normalizedCounter[s]); in FSE_normalizeCount()
15975 static size_t ZSTD_checkDictNCount(short* normalizedCounter, unsigned dictMaxSymbolValue, unsigned … in ZSTD_checkDictNCount() argument
15979 …RETURN_ERROR_IF(normalizedCounter[s] == 0, dictionary_corrupted, "dict fse tables don't have all s… in ZSTD_checkDictNCount()
24566 const short* normalizedCounter, unsigned maxSymbolValue,
26760 const short* normalizedCounter, unsigned maxSymbolValue, in ZSTD_buildFSETable() argument
26782 if (normalizedCounter[s]==-1) { in ZSTD_buildFSETable()
26786 if (normalizedCounter[s] >= largeLimit) DTableH.fastMode=0; in ZSTD_buildFSETable()
26787 assert(normalizedCounter[s]>=0); in ZSTD_buildFSETable()
26788 symbolNext[s] = (U16)normalizedCounter[s]; in ZSTD_buildFSETable()
26799 for (i=0; i<normalizedCounter[s]; i++) { in ZSTD_buildFSETable()