Home
last modified time | relevance | path

Searched refs:normalizedCounter (Results 1 – 14 of 14) sorted by relevance

/external/zstd/lib/compress/
Dfse_compress.c69 const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog, in FSE_buildCTable_wksp() argument
104 if (normalizedCounter[u-1]==-1) { /* Low proba symbol */ in FSE_buildCTable_wksp()
108 assert(normalizedCounter[u-1] >= 0); in FSE_buildCTable_wksp()
109 cumul[u] = cumul[u-1] + (U16)normalizedCounter[u-1]; in FSE_buildCTable_wksp()
127 int const n = normalizedCounter[s]; in FSE_buildCTable_wksp()
159 int const freq = normalizedCounter[symbol]; in FSE_buildCTable_wksp()
179 switch (normalizedCounter[s]) in FSE_buildCTable_wksp()
194 assert(normalizedCounter[s] > 1); in FSE_buildCTable_wksp()
195 { U32 const maxBitsOut = tableLog - ZSTD_highbit32 ((U32)normalizedCounter[s]-1); in FSE_buildCTable_wksp()
196 U32 const minStatePlus = (U32)normalizedCounter[s] << maxBitsOut; in FSE_buildCTable_wksp()
[all …]
Dzstd_compress.c5047 static FSE_repeat ZSTD_dictNCountRepeat(short* normalizedCounter, unsigned dictMaxSymbolValue, unsi… in ZSTD_dictNCountRepeat() argument
5054 if (normalizedCounter[s] == 0) { in ZSTD_dictNCountRepeat()
/external/zstd/lib/common/
Dentropy_common.c42 size_t FSE_readNCount_body(short* normalizedCounter, unsigned* maxSVPtr, unsigned* tableLogPtr, in FSE_readNCount_body() argument
61 { size_t const countSize = FSE_readNCount(normalizedCounter, maxSVPtr, tableLogPtr, in FSE_readNCount_body()
70 …ZSTD_memset(normalizedCounter, 0, (*maxSVPtr+1) * sizeof(normalizedCounter[0])); /* all symbols … in FSE_readNCount_body()
154 normalizedCounter[charnum++] = (short)count; in FSE_readNCount_body()
191 short* normalizedCounter, unsigned* maxSVPtr, unsigned* tableLogPtr, in FSE_readNCount_body_default() argument
194 return FSE_readNCount_body(normalizedCounter, maxSVPtr, tableLogPtr, headerBuffer, hbSize); in FSE_readNCount_body_default()
199 short* normalizedCounter, unsigned* maxSVPtr, unsigned* tableLogPtr, in FSE_readNCount_body_bmi2() argument
202 return FSE_readNCount_body(normalizedCounter, maxSVPtr, tableLogPtr, headerBuffer, hbSize); in FSE_readNCount_body_bmi2()
207 short* normalizedCounter, unsigned* maxSVPtr, unsigned* tableLogPtr, in FSE_readNCount_bmi2() argument
212 … return FSE_readNCount_body_bmi2(normalizedCounter, maxSVPtr, tableLogPtr, headerBuffer, hbSize); in FSE_readNCount_bmi2()
[all …]
Dfse_decompress.c58 static size_t FSE_buildDTable_internal(FSE_DTable* dt, const short* normalizedCounter, unsigned max… in FSE_buildDTable_internal() argument
81 if (normalizedCounter[s]==-1) { in FSE_buildDTable_internal()
85 if (normalizedCounter[s] >= largeLimit) DTableH.fastMode=0; in FSE_buildDTable_internal()
86 symbolNext[s] = (U16)normalizedCounter[s]; in FSE_buildDTable_internal()
107 int const n = normalizedCounter[s]; in FSE_buildDTable_internal()
141 for (i=0; i<normalizedCounter[s]; i++) { in FSE_buildDTable_internal()
161 size_t FSE_buildDTable_wksp(FSE_DTable* dt, const short* normalizedCounter, unsigned maxSymbolValue… in FSE_buildDTable_wksp() argument
163 …return FSE_buildDTable_internal(dt, normalizedCounter, maxSymbolValue, tableLog, workSpace, wkspSi… in FSE_buildDTable_wksp()
Dfse.h100 FSE_PUBLIC_API size_t FSE_normalizeCount(short* normalizedCounter, unsigned tableLog,
113 const short* normalizedCounter,
123 FSE_PUBLIC_API size_t FSE_buildCTable(FSE_CTable* ct, const short* normalizedCounter, unsigned maxS…
183 FSE_PUBLIC_API size_t FSE_readNCount (short* normalizedCounter,
190 FSE_PUBLIC_API size_t FSE_readNCount_bmi2(short* normalizedCounter,
265 size_t FSE_buildCTable_wksp(FSE_CTable* ct, const short* normalizedCounter, unsigned maxSymbolValue…
269 FSE_PUBLIC_API size_t FSE_buildDTable_wksp(FSE_DTable* dt, const short* normalizedCounter, unsigned…
/external/zstd/lib/decompress/
Dzstd_decompress_block.h62 const short* normalizedCounter, unsigned maxSymbolValue,
Dzstd_decompress_block.c486 const short* normalizedCounter, unsigned maxSymbolValue, in ZSTD_buildFSETable_body() argument
511 if (normalizedCounter[s]==-1) { in ZSTD_buildFSETable_body()
515 if (normalizedCounter[s] >= largeLimit) DTableH.fastMode=0; in ZSTD_buildFSETable_body()
516 assert(normalizedCounter[s]>=0); in ZSTD_buildFSETable_body()
517 symbolNext[s] = (U16)normalizedCounter[s]; in ZSTD_buildFSETable_body()
545 int const n = normalizedCounter[s]; in ZSTD_buildFSETable_body()
581 int const n = normalizedCounter[s]; in ZSTD_buildFSETable_body()
607 const short* normalizedCounter, unsigned maxSymbolValue, in ZSTD_buildFSETable_body_default() argument
611 ZSTD_buildFSETable_body(dt, normalizedCounter, maxSymbolValue, in ZSTD_buildFSETable_body_default()
617 const short* normalizedCounter, unsigned maxSymbolValue, in ZSTD_buildFSETable_body_bmi2() argument
[all …]
/external/zstd/lib/legacy/
Dzstd_v01.c358 (FSE_DTable* dt, const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog) in FSE_buildDTable() argument
381 if (normalizedCounter[s]==-1) in FSE_buildDTable()
388 if (normalizedCounter[s] >= largeLimit) noLarge=0; in FSE_buildDTable()
389 symbolNext[s] = normalizedCounter[s]; in FSE_buildDTable()
397 for (i=0; i<normalizedCounter[s]; i++) in FSE_buildDTable()
440 static size_t FSE_readNCount (short* normalizedCounter, unsigned* maxSVPtr, unsigned* tableLogPtr, in FSE_readNCount() argument
493 while (charnum < n0) normalizedCounter[charnum++] = 0; in FSE_readNCount()
521 normalizedCounter[charnum++] = count; in FSE_readNCount()
Dzstd_v04.c425 static size_t FSE_readNCount (short* normalizedCounter, unsigned* maxSymbolValuePtr, unsigned* tab…
437 static size_t FSE_buildDTable ( FSE_DTable* dt, const short* normalizedCounter, unsigned maxSymbolV…
1017 static size_t FSE_buildDTable(FSE_DTable* dt, const short* normalizedCounter, unsigned maxSymbolVal… in FSE_buildDTable() argument
1041 if (normalizedCounter[s]==-1) in FSE_buildDTable()
1048 if (normalizedCounter[s] >= largeLimit) noLarge=0; in FSE_buildDTable()
1049 symbolNext[s] = normalizedCounter[s]; in FSE_buildDTable()
1057 for (i=0; i<normalizedCounter[s]; i++) in FSE_buildDTable()
1100 static size_t FSE_readNCount (short* normalizedCounter, unsigned* maxSVPtr, unsigned* tableLogPtr, in FSE_readNCount() argument
1153 while (charnum < n0) normalizedCounter[charnum++] = 0; in FSE_readNCount()
1181 normalizedCounter[charnum++] = count; in FSE_readNCount()
Dzstd_v03.c1035 (FSE_DTable* dt, const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog) in FSE_buildDTable() argument
1058 if (normalizedCounter[s]==-1) in FSE_buildDTable()
1065 if (normalizedCounter[s] >= largeLimit) noLarge=0; in FSE_buildDTable()
1066 symbolNext[s] = normalizedCounter[s]; in FSE_buildDTable()
1074 for (i=0; i<normalizedCounter[s]; i++) in FSE_buildDTable()
1117 static size_t FSE_readNCount (short* normalizedCounter, unsigned* maxSVPtr, unsigned* tableLogPtr, in FSE_readNCount() argument
1170 while (charnum < n0) normalizedCounter[charnum++] = 0; in FSE_readNCount()
1198 normalizedCounter[charnum++] = count; in FSE_readNCount()
Dzstd_v05.c586 size_t FSEv05_readNCount (short* normalizedCounter, unsigned* maxSymbolValuePtr, unsigned* tableLog…
600 size_t FSEv05_buildDTable (FSEv05_DTable* dt, const short* normalizedCounter, unsigned maxSymbolVal…
1157 size_t FSEv05_buildDTable(FSEv05_DTable* dt, const short* normalizedCounter, unsigned maxSymbolValu… in FSEv05_buildDTable() argument
1180 if (normalizedCounter[s]==-1) { in FSEv05_buildDTable()
1184 if (normalizedCounter[s] >= largeLimit) noLarge=0; in FSEv05_buildDTable()
1185 symbolNext[s] = normalizedCounter[s]; in FSEv05_buildDTable()
1191 for (i=0; i<normalizedCounter[s]; i++) { in FSEv05_buildDTable()
1230 size_t FSEv05_readNCount (short* normalizedCounter, unsigned* maxSVPtr, unsigned* tableLogPtr, in FSEv05_readNCount() argument
1275 while (charnum < n0) normalizedCounter[charnum++] = 0; in FSEv05_readNCount()
1299 normalizedCounter[charnum++] = count; in FSEv05_readNCount()
Dzstd_v06.c654 size_t FSEv06_readNCount (short* normalizedCounter, unsigned* maxSymbolValuePtr, unsigned* tableLog…
665 size_t FSEv06_buildDTable (FSEv06_DTable* dt, const short* normalizedCounter, unsigned maxSymbolVal…
1207 size_t FSEv06_readNCount (short* normalizedCounter, unsigned* maxSVPtr, unsigned* tableLogPtr, in FSEv06_readNCount() argument
1252 while (charnum < n0) normalizedCounter[charnum++] = 0; in FSEv06_readNCount()
1275 normalizedCounter[charnum++] = count; in FSEv06_readNCount()
1402 size_t FSEv06_buildDTable(FSEv06_DTable* dt, const short* normalizedCounter, unsigned maxSymbolValu… in FSEv06_buildDTable() argument
1423 if (normalizedCounter[s]==-1) { in FSEv06_buildDTable()
1427 if (normalizedCounter[s] >= largeLimit) DTableH.fastMode=0; in FSEv06_buildDTable()
1428 symbolNext[s] = normalizedCounter[s]; in FSEv06_buildDTable()
1439 for (i=0; i<normalizedCounter[s]; i++) { in FSEv06_buildDTable()
Dzstd_v02.c1035 (FSE_DTable* dt, const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog) in FSE_buildDTable() argument
1058 if (normalizedCounter[s]==-1) in FSE_buildDTable()
1065 if (normalizedCounter[s] >= largeLimit) noLarge=0; in FSE_buildDTable()
1066 symbolNext[s] = normalizedCounter[s]; in FSE_buildDTable()
1074 for (i=0; i<normalizedCounter[s]; i++) in FSE_buildDTable()
1117 static size_t FSE_readNCount (short* normalizedCounter, unsigned* maxSVPtr, unsigned* tableLogPtr, in FSE_readNCount() argument
1170 while (charnum < n0) normalizedCounter[charnum++] = 0; in FSE_readNCount()
1198 normalizedCounter[charnum++] = count; in FSE_readNCount()
Dzstd_v07.c700 size_t FSEv07_readNCount (short* normalizedCounter, unsigned* maxSymbolValuePtr, unsigned* tableLog…
711 size_t FSEv07_buildDTable (FSEv07_DTable* dt, const short* normalizedCounter, unsigned maxSymbolVal…
1152 size_t FSEv07_readNCount (short* normalizedCounter, unsigned* maxSVPtr, unsigned* tableLogPtr, in FSEv07_readNCount() argument
1197 while (charnum < n0) normalizedCounter[charnum++] = 0; in FSEv07_readNCount()
1220 normalizedCounter[charnum++] = count; in FSEv07_readNCount()
1423 size_t FSEv07_buildDTable(FSEv07_DTable* dt, const short* normalizedCounter, unsigned maxSymbolValu… in FSEv07_buildDTable() argument
1444 if (normalizedCounter[s]==-1) { in FSEv07_buildDTable()
1448 if (normalizedCounter[s] >= largeLimit) DTableH.fastMode=0; in FSEv07_buildDTable()
1449 symbolNext[s] = normalizedCounter[s]; in FSEv07_buildDTable()
1460 for (i=0; i<normalizedCounter[s]; i++) { in FSEv07_buildDTable()