Home
last modified time | relevance | path

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

/freebsd/sys/contrib/openzfs/module/zstd/lib/compress/
H A Dfse_compress.c68 const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog, in FSE_buildCTable_wksp() argument
100 if (normalizedCounter[u-1]==-1) { /* Low proba symbol */ in FSE_buildCTable_wksp()
104 cumul[u] = cumul[u-1] + normalizedCounter[u-1]; in FSE_buildCTable_wksp()
114 int const freq = normalizedCounter[symbol]; in FSE_buildCTable_wksp()
135 switch (normalizedCounter[s]) in FSE_buildCTable_wksp()
150 U32 const maxBitsOut = tableLog - BIT_highbit32 (normalizedCounter[s]-1); in FSE_buildCTable_wksp()
151 U32 const minStatePlus = normalizedCounter[s] << maxBitsOut; in FSE_buildCTable_wksp()
153 symbolTT[s].deltaFindState = total - normalizedCounter[s]; in FSE_buildCTable_wksp()
154 total += normalizedCounter[s]; in FSE_buildCTable_wksp()
162 symbol, normalizedCounter[symbol], in FSE_buildCTable_wksp()
[all …]
H A Dzstd_compress.c2894 static size_t ZSTD_checkDictNCount(short* normalizedCounter, unsigned dictMaxSymbolValue, unsigned … in ZSTD_checkDictNCount() argument
2898 …RETURN_ERROR_IF(normalizedCounter[s] == 0, dictionary_corrupted, "dict fse tables don't have all s… in ZSTD_checkDictNCount()
/freebsd/sys/contrib/zstd/lib/compress/
H A Dfse_compress.c68 const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog, in FSE_buildCTable_wksp() argument
103 if (normalizedCounter[u-1]==-1) { /* Low proba symbol */ in FSE_buildCTable_wksp()
107 assert(normalizedCounter[u-1] >= 0); in FSE_buildCTable_wksp()
108 cumul[u] = cumul[u-1] + (U16)normalizedCounter[u-1]; in FSE_buildCTable_wksp()
126 int const n = normalizedCounter[s]; in FSE_buildCTable_wksp()
158 int const freq = normalizedCounter[symbol]; in FSE_buildCTable_wksp()
178 switch (normalizedCounter[s]) in FSE_buildCTable_wksp()
193 assert(normalizedCounter[s] > 1); in FSE_buildCTable_wksp()
194 { U32 const maxBitsOut = tableLog - BIT_highbit32 ((U32)normalizedCounter[s]-1); in FSE_buildCTable_wksp()
195 U32 const minStatePlus = (U32)normalizedCounter[s] << maxBitsOut; in FSE_buildCTable_wksp()
[all …]
H A Dzstd_compress.c4300 static FSE_repeat ZSTD_dictNCountRepeat(short* normalizedCounter, unsigned dictMaxSymbolValue, unsi… in ZSTD_dictNCountRepeat() argument
4307 if (normalizedCounter[s] == 0) { in ZSTD_dictNCountRepeat()
/freebsd/sys/contrib/zstd/lib/common/
H A Dentropy_common.c70 size_t FSE_readNCount_body(short* normalizedCounter, unsigned* maxSVPtr, unsigned* tableLogPtr, in FSE_readNCount_body() argument
89 { size_t const countSize = FSE_readNCount(normalizedCounter, maxSVPtr, tableLogPtr, in FSE_readNCount_body()
98 …ZSTD_memset(normalizedCounter, 0, (*maxSVPtr+1) * sizeof(normalizedCounter[0])); /* all symbols … in FSE_readNCount_body()
182 normalizedCounter[charnum++] = (short)count; in FSE_readNCount_body()
219 short* normalizedCounter, unsigned* maxSVPtr, unsigned* tableLogPtr, in FSE_readNCount_body_default() argument
222 return FSE_readNCount_body(normalizedCounter, maxSVPtr, tableLogPtr, headerBuffer, hbSize); in FSE_readNCount_body_default()
227 short* normalizedCounter, unsigned* maxSVPtr, unsigned* tableLogPtr, in FSE_readNCount_body_bmi2() argument
230 return FSE_readNCount_body(normalizedCounter, maxSVPtr, tableLogPtr, headerBuffer, hbSize); in FSE_readNCount_body_bmi2()
235 short* normalizedCounter, unsigned* maxSVPtr, unsigned* tableLogPtr, in FSE_readNCount_bmi2() argument
240 … return FSE_readNCount_body_bmi2(normalizedCounter, maxSVPtr, tableLogPtr, headerBuffer, hbSize); in FSE_readNCount_bmi2()
[all …]
H A Dfse_decompress.c71 static size_t FSE_buildDTable_internal(FSE_DTable* dt, const short* normalizedCounter, unsigned max… in FSE_buildDTable_internal() argument
94 if (normalizedCounter[s]==-1) { in FSE_buildDTable_internal()
98 if (normalizedCounter[s] >= largeLimit) DTableH.fastMode=0; in FSE_buildDTable_internal()
99 symbolNext[s] = normalizedCounter[s]; in FSE_buildDTable_internal()
121 int const n = normalizedCounter[s]; in FSE_buildDTable_internal()
156 for (i=0; i<normalizedCounter[s]; i++) { in FSE_buildDTable_internal()
176 size_t FSE_buildDTable_wksp(FSE_DTable* dt, const short* normalizedCounter, unsigned maxSymbolValue… in FSE_buildDTable_wksp() argument
178 …return FSE_buildDTable_internal(dt, normalizedCounter, maxSymbolValue, tableLog, workSpace, wkspSi… in FSE_buildDTable_wksp()
389 size_t FSE_buildDTable(FSE_DTable* dt, const short* normalizedCounter, unsigned maxSymbolValue, uns… in FSE_buildDTable() argument
391 … return FSE_buildDTable_wksp(dt, normalizedCounter, maxSymbolValue, tableLog, wksp, sizeof(wksp)); in FSE_buildDTable()
H A Dfse.h148 FSE_PUBLIC_API size_t FSE_normalizeCount(short* normalizedCounter, unsigned tableLog,
161 const short* normalizedCounter,
173 FSE_PUBLIC_API size_t FSE_buildCTable(FSE_CTable* ct, const short* normalizedCounter, unsigned maxS…
233 FSE_PUBLIC_API size_t FSE_readNCount (short* normalizedCounter,
240 FSE_PUBLIC_API size_t FSE_readNCount_bmi2(short* normalizedCounter,
253 FSE_PUBLIC_API size_t FSE_buildDTable (FSE_DTable* dt, const short* normalizedCounter, unsigned max…
343 size_t FSE_buildCTable_wksp(FSE_CTable* ct, const short* normalizedCounter, unsigned maxSymbolValue…
347 FSE_PUBLIC_API size_t FSE_buildDTable_wksp(FSE_DTable* dt, const short* normalizedCounter, unsigned…
/freebsd/sys/contrib/openzfs/module/zstd/lib/common/
H A Dentropy_common.c42 size_t FSE_readNCount (short* normalizedCounter, unsigned* maxSVPtr, unsigned* tableLogPtr, in FSE_readNCount() argument
61 { size_t const countSize = FSE_readNCount(normalizedCounter, maxSVPtr, tableLogPtr, in FSE_readNCount()
70 …memset(normalizedCounter, 0, (*maxSVPtr+1) * sizeof(normalizedCounter[0])); /* all symbols not p… in FSE_readNCount()
101 while (charnum < n0) normalizedCounter[charnum++] = 0; in FSE_readNCount()
124 normalizedCounter[charnum++] = (short)count; in FSE_readNCount()
H A Dfse_decompress.c60 size_t FSE_buildDTable(FSE_DTable* dt, const short* normalizedCounter, unsigned maxSymbolValue, uns… in FSE_buildDTable() argument
81 if (normalizedCounter[s]==-1) { in FSE_buildDTable()
85 if (normalizedCounter[s] >= largeLimit) DTableH.fastMode=0; in FSE_buildDTable()
86 symbolNext[s] = normalizedCounter[s]; in FSE_buildDTable()
97 for (i=0; i<normalizedCounter[s]; i++) { in FSE_buildDTable()
H A Dfse.h143 FSE_PUBLIC_API size_t FSE_normalizeCount(short* normalizedCounter, unsigned tableLog,
156 const short* normalizedCounter,
168 FSE_PUBLIC_API size_t FSE_buildCTable(FSE_CTable* ct, const short* normalizedCounter, unsigned maxS…
228 FSE_PUBLIC_API size_t FSE_readNCount (short* normalizedCounter,
241 FSE_PUBLIC_API size_t FSE_buildDTable (FSE_DTable* dt, const short* normalizedCounter, unsigned max…
328 size_t FSE_buildCTable_wksp(FSE_CTable* ct, const short* normalizedCounter, unsigned maxSymbolValue…
/freebsd/sys/contrib/openzfs/module/zstd/lib/decompress/
H A Dzstd_decompress_block.h55 const short* normalizedCounter, unsigned maxSymbolValue,
H A Dzstd_decompress_block.c370 const short* normalizedCounter, unsigned maxSymbolValue, in ZSTD_buildFSETable() argument
392 if (normalizedCounter[s]==-1) { in ZSTD_buildFSETable()
396 if (normalizedCounter[s] >= largeLimit) DTableH.fastMode=0; in ZSTD_buildFSETable()
397 assert(normalizedCounter[s]>=0); in ZSTD_buildFSETable()
398 symbolNext[s] = (U16)normalizedCounter[s]; in ZSTD_buildFSETable()
409 for (i=0; i<normalizedCounter[s]; i++) { in ZSTD_buildFSETable()
/freebsd/sys/contrib/zstd/lib/decompress/
H A Dzstd_decompress_block.h62 const short* normalizedCounter, unsigned maxSymbolValue,
H A Dzstd_decompress_block.c445 const short* normalizedCounter, unsigned maxSymbolValue, in ZSTD_buildFSETable_body() argument
470 if (normalizedCounter[s]==-1) { in ZSTD_buildFSETable_body()
474 if (normalizedCounter[s] >= largeLimit) DTableH.fastMode=0; in ZSTD_buildFSETable_body()
475 assert(normalizedCounter[s]>=0); in ZSTD_buildFSETable_body()
476 symbolNext[s] = (U16)normalizedCounter[s]; in ZSTD_buildFSETable_body()
504 int const n = normalizedCounter[s]; in ZSTD_buildFSETable_body()
539 int const n = normalizedCounter[s]; in ZSTD_buildFSETable_body()
565 const short* normalizedCounter, unsigned maxSymbolValue, in ZSTD_buildFSETable_body_default() argument
569 ZSTD_buildFSETable_body(dt, normalizedCounter, maxSymbolValue, in ZSTD_buildFSETable_body_default()
575 const short* normalizedCounter, unsigned maxSymbolValue, in ZSTD_buildFSETable_body_bmi2() argument
[all …]
/freebsd/sys/contrib/zstd/lib/legacy/
H A Dzstd_v01.c396 (FSE_DTable* dt, const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog) in FSE_buildDTable() argument
419 if (normalizedCounter[s]==-1) in FSE_buildDTable()
426 if (normalizedCounter[s] >= largeLimit) noLarge=0; in FSE_buildDTable()
427 symbolNext[s] = normalizedCounter[s]; in FSE_buildDTable()
435 for (i=0; i<normalizedCounter[s]; i++) in FSE_buildDTable()
478 static size_t FSE_readNCount (short* normalizedCounter, unsigned* maxSVPtr, unsigned* tableLogPtr, in FSE_readNCount() argument
531 while (charnum < n0) normalizedCounter[charnum++] = 0; in FSE_readNCount()
559 normalizedCounter[charnum++] = count; in FSE_readNCount()
H A Dzstd_v04.c481 static size_t FSE_readNCount (short* normalizedCounter, unsigned* maxSymbolValuePtr, unsigned* tab…
493 static size_t FSE_buildDTable ( FSE_DTable* dt, const short* normalizedCounter, unsigned maxSymbolV…
1073 static size_t FSE_buildDTable(FSE_DTable* dt, const short* normalizedCounter, unsigned maxSymbolVal… in FSE_buildDTable() argument
1097 if (normalizedCounter[s]==-1) in FSE_buildDTable()
1104 if (normalizedCounter[s] >= largeLimit) noLarge=0; in FSE_buildDTable()
1105 symbolNext[s] = normalizedCounter[s]; in FSE_buildDTable()
1113 for (i=0; i<normalizedCounter[s]; i++) in FSE_buildDTable()
1156 static size_t FSE_readNCount (short* normalizedCounter, unsigned* maxSVPtr, unsigned* tableLogPtr, in FSE_readNCount() argument
1209 while (charnum < n0) normalizedCounter[charnum++] = 0; in FSE_readNCount()
1237 normalizedCounter[charnum++] = count; in FSE_readNCount()
H A Dzstd_v03.c1097 (FSE_DTable* dt, const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog) in FSE_buildDTable() argument
1120 if (normalizedCounter[s]==-1) in FSE_buildDTable()
1127 if (normalizedCounter[s] >= largeLimit) noLarge=0; in FSE_buildDTable()
1128 symbolNext[s] = normalizedCounter[s]; in FSE_buildDTable()
1136 for (i=0; i<normalizedCounter[s]; i++) in FSE_buildDTable()
1179 static size_t FSE_readNCount (short* normalizedCounter, unsigned* maxSVPtr, unsigned* tableLogPtr, in FSE_readNCount() argument
1232 while (charnum < n0) normalizedCounter[charnum++] = 0; in FSE_readNCount()
1260 normalizedCounter[charnum++] = count; in FSE_readNCount()
H A Dzstd_v05.c638 size_t FSEv05_readNCount (short* normalizedCounter, unsigned* maxSymbolValuePtr, unsigned* tableLog…
652 size_t FSEv05_buildDTable (FSEv05_DTable* dt, const short* normalizedCounter, unsigned maxSymbolVal…
1209 size_t FSEv05_buildDTable(FSEv05_DTable* dt, const short* normalizedCounter, unsigned maxSymbolValu… in FSEv05_buildDTable() argument
1232 if (normalizedCounter[s]==-1) { in FSEv05_buildDTable()
1236 if (normalizedCounter[s] >= largeLimit) noLarge=0; in FSEv05_buildDTable()
1237 symbolNext[s] = normalizedCounter[s]; in FSEv05_buildDTable()
1243 for (i=0; i<normalizedCounter[s]; i++) { in FSEv05_buildDTable()
1282 size_t FSEv05_readNCount (short* normalizedCounter, unsigned* maxSVPtr, unsigned* tableLogPtr, in FSEv05_readNCount() argument
1327 while (charnum < n0) normalizedCounter[charnum++] = 0; in FSEv05_readNCount()
1351 normalizedCounter[charnum++] = count; in FSEv05_readNCount()
H A Dzstd_v06.c710 size_t FSEv06_readNCount (short* normalizedCounter, unsigned* maxSymbolValuePtr, unsigned* tableLog…
721 size_t FSEv06_buildDTable (FSEv06_DTable* dt, const short* normalizedCounter, unsigned maxSymbolVal…
1263 size_t FSEv06_readNCount (short* normalizedCounter, unsigned* maxSVPtr, unsigned* tableLogPtr, in FSEv06_readNCount() argument
1308 while (charnum < n0) normalizedCounter[charnum++] = 0; in FSEv06_readNCount()
1331 normalizedCounter[charnum++] = count; in FSEv06_readNCount()
1458 size_t FSEv06_buildDTable(FSEv06_DTable* dt, const short* normalizedCounter, unsigned maxSymbolValu… in FSEv06_buildDTable() argument
1479 if (normalizedCounter[s]==-1) { in FSEv06_buildDTable()
1483 if (normalizedCounter[s] >= largeLimit) DTableH.fastMode=0; in FSEv06_buildDTable()
1484 symbolNext[s] = normalizedCounter[s]; in FSEv06_buildDTable()
1495 for (i=0; i<normalizedCounter[s]; i++) { in FSEv06_buildDTable()
H A Dzstd_v02.c1096 (FSE_DTable* dt, const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog) in FSE_buildDTable() argument
1119 if (normalizedCounter[s]==-1) in FSE_buildDTable()
1126 if (normalizedCounter[s] >= largeLimit) noLarge=0; in FSE_buildDTable()
1127 symbolNext[s] = normalizedCounter[s]; in FSE_buildDTable()
1135 for (i=0; i<normalizedCounter[s]; i++) in FSE_buildDTable()
1178 static size_t FSE_readNCount (short* normalizedCounter, unsigned* maxSVPtr, unsigned* tableLogPtr, in FSE_readNCount() argument
1231 while (charnum < n0) normalizedCounter[charnum++] = 0; in FSE_readNCount()
1259 normalizedCounter[charnum++] = count; in FSE_readNCount()
H A Dzstd_v07.c755 size_t FSEv07_readNCount (short* normalizedCounter, unsigned* maxSymbolValuePtr, unsigned* tableLog…
766 size_t FSEv07_buildDTable (FSEv07_DTable* dt, const short* normalizedCounter, unsigned maxSymbolVal…
1207 size_t FSEv07_readNCount (short* normalizedCounter, unsigned* maxSVPtr, unsigned* tableLogPtr, in FSEv07_readNCount() argument
1252 while (charnum < n0) normalizedCounter[charnum++] = 0; in FSEv07_readNCount()
1275 normalizedCounter[charnum++] = count; in FSEv07_readNCount()
1478 size_t FSEv07_buildDTable(FSEv07_DTable* dt, const short* normalizedCounter, unsigned maxSymbolValu… in FSEv07_buildDTable() argument
1499 if (normalizedCounter[s]==-1) { in FSEv07_buildDTable()
1503 if (normalizedCounter[s] >= largeLimit) DTableH.fastMode=0; in FSEv07_buildDTable()
1504 symbolNext[s] = normalizedCounter[s]; in FSEv07_buildDTable()
1515 for (i=0; i<normalizedCounter[s]; i++) { in FSEv07_buildDTable()