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()
7546 const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog, in FSE_buildCTable_wksp() argument
7578 if (normalizedCounter[u-1]==-1) { /* Low proba symbol */ in FSE_buildCTable_wksp()
7582 cumul[u] = cumul[u-1] + normalizedCounter[u-1]; in FSE_buildCTable_wksp()
7592 int const freq = normalizedCounter[symbol]; in FSE_buildCTable_wksp()
7613 switch (normalizedCounter[s]) in FSE_buildCTable_wksp()
7628 U32 const maxBitsOut = tableLog - BIT_highbit32 (normalizedCounter[s]-1); in FSE_buildCTable_wksp()
7629 U32 const minStatePlus = normalizedCounter[s] << maxBitsOut; in FSE_buildCTable_wksp()
7631 symbolTT[s].deltaFindState = total - normalizedCounter[s]; in FSE_buildCTable_wksp()
7632 total += normalizedCounter[s]; in FSE_buildCTable_wksp()
7640 symbol, normalizedCounter[symbol], in FSE_buildCTable_wksp()
7651 size_t FSE_buildCTable(FSE_CTable* ct, const short* normalizedCounter, unsigned maxSymbolValue, uns… in FSE_buildCTable() argument
7654 …return FSE_buildCTable_wksp(ct, normalizedCounter, maxSymbolValue, tableLog, tableSymbol, sizeof(t… in FSE_buildCTable()
7673 const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog, in FSE_writeNCount_generic() argument
7701 while ((symbol < alphabetSize) && !normalizedCounter[symbol]) symbol++; in FSE_writeNCount_generic()
7729 { int count = normalizedCounter[symbol++]; in FSE_writeNCount_generic()
7768 const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog) in FSE_writeNCount() argument
7774 …return FSE_writeNCount_generic(buffer, bufferSize, normalizedCounter, maxSymbolValue, tableLog, 0); in FSE_writeNCount()
7776 …return FSE_writeNCount_generic(buffer, bufferSize, normalizedCounter, maxSymbolValue, tableLog, 1 … in FSE_writeNCount()
7914 size_t FSE_normalizeCount (short* normalizedCounter, unsigned tableLog, in FSE_normalizeCount() argument
7936 if (count[s] == 0) { normalizedCounter[s]=0; continue; } in FSE_normalizeCount()
7938 normalizedCounter[s] = -1; in FSE_normalizeCount()
7947 normalizedCounter[s] = proba; in FSE_normalizeCount()
7950 if (-stillToDistribute >= (normalizedCounter[largest] >> 1)) { in FSE_normalizeCount()
7952 …size_t const errorCode = FSE_normalizeM2(normalizedCounter, tableLog, count, total, maxSymbolValue… in FSE_normalizeCount()
7955 else normalizedCounter[largest] += (short)stillToDistribute; in FSE_normalizeCount()
7963 RAWLOG(2, "%3i: %4i \n", s, normalizedCounter[s]); in FSE_normalizeCount()
7965 nTotal += abs(normalizedCounter[s]); in FSE_normalizeCount()
15977 static size_t ZSTD_checkDictNCount(short* normalizedCounter, unsigned dictMaxSymbolValue, unsigned … in ZSTD_checkDictNCount() argument
15981 …RETURN_ERROR_IF(normalizedCounter[s] == 0, dictionary_corrupted, "dict fse tables don't have all s… in ZSTD_checkDictNCount()
24568 const short* normalizedCounter, unsigned maxSymbolValue,
26762 const short* normalizedCounter, unsigned maxSymbolValue, in ZSTD_buildFSETable() argument
26784 if (normalizedCounter[s]==-1) { in ZSTD_buildFSETable()
26788 if (normalizedCounter[s] >= largeLimit) DTableH.fastMode=0; in ZSTD_buildFSETable()
26789 assert(normalizedCounter[s]>=0); in ZSTD_buildFSETable()
26790 symbolNext[s] = (U16)normalizedCounter[s]; in ZSTD_buildFSETable()
26801 for (i=0; i<normalizedCounter[s]; i++) { in ZSTD_buildFSETable()