Home
last modified time | relevance | path

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

/src/sys/contrib/openzfs/module/zstd/lib/compress/
H A Dfse_compress.c70 const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog, in FSE_buildCTable_wksp() argument
105 if (normalizedCounter[u-1]==-1) { /* Low proba symbol */ in FSE_buildCTable_wksp()
109 assert(normalizedCounter[u-1] >= 0); in FSE_buildCTable_wksp()
110 cumul[u] = cumul[u-1] + (U16)normalizedCounter[u-1]; in FSE_buildCTable_wksp()
128 int const n = normalizedCounter[s]; in FSE_buildCTable_wksp()
160 int const freq = normalizedCounter[symbol]; in FSE_buildCTable_wksp()
180 switch (normalizedCounter[s]) in FSE_buildCTable_wksp()
195 assert(normalizedCounter[s] > 1); in FSE_buildCTable_wksp()
196 { U32 const maxBitsOut = tableLog - ZSTD_highbit32 ((U32)normalizedCounter[s]-1); in FSE_buildCTable_wksp()
197 U32 const minStatePlus = (U32)normalizedCounter[s] << maxBitsOut; in FSE_buildCTable_wksp()
[all …]
H A Dzstd_compress.c5048 static FSE_repeat ZSTD_dictNCountRepeat(short* normalizedCounter, unsigned dictMaxSymbolValue, unsi… in ZSTD_dictNCountRepeat() argument
5055 if (normalizedCounter[s] == 0) { in ZSTD_dictNCountRepeat()
/src/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()
/src/sys/contrib/openzfs/module/zstd/lib/common/
H A Dentropy_common.c43 size_t FSE_readNCount_body(short* normalizedCounter, unsigned* maxSVPtr, unsigned* tableLogPtr, in FSE_readNCount_body() argument
62 { size_t const countSize = FSE_readNCount(normalizedCounter, maxSVPtr, tableLogPtr, in FSE_readNCount_body()
71 …ZSTD_memset(normalizedCounter, 0, (*maxSVPtr+1) * sizeof(normalizedCounter[0])); /* all symbols … in FSE_readNCount_body()
155 normalizedCounter[charnum++] = (short)count; in FSE_readNCount_body()
192 short* normalizedCounter, unsigned* maxSVPtr, unsigned* tableLogPtr, in FSE_readNCount_body_default() argument
195 return FSE_readNCount_body(normalizedCounter, maxSVPtr, tableLogPtr, headerBuffer, hbSize); in FSE_readNCount_body_default()
200 short* normalizedCounter, unsigned* maxSVPtr, unsigned* tableLogPtr, in FSE_readNCount_body_bmi2() argument
203 return FSE_readNCount_body(normalizedCounter, maxSVPtr, tableLogPtr, headerBuffer, hbSize); in FSE_readNCount_body_bmi2()
208 short* normalizedCounter, unsigned* maxSVPtr, unsigned* tableLogPtr, in FSE_readNCount_bmi2() argument
213 … return FSE_readNCount_body_bmi2(normalizedCounter, maxSVPtr, tableLogPtr, headerBuffer, hbSize); in FSE_readNCount_bmi2()
[all …]
H A Dfse_decompress.c59 static size_t FSE_buildDTable_internal(FSE_DTable* dt, const short* normalizedCounter, unsigned max… in FSE_buildDTable_internal() argument
82 if (normalizedCounter[s]==-1) { in FSE_buildDTable_internal()
86 if (normalizedCounter[s] >= largeLimit) DTableH.fastMode=0; in FSE_buildDTable_internal()
87 symbolNext[s] = (U16)normalizedCounter[s]; in FSE_buildDTable_internal()
108 int const n = normalizedCounter[s]; in FSE_buildDTable_internal()
142 for (i=0; i<normalizedCounter[s]; i++) { in FSE_buildDTable_internal()
162 size_t FSE_buildDTable_wksp(FSE_DTable* dt, const short* normalizedCounter, unsigned maxSymbolValue… in FSE_buildDTable_wksp() argument
164 …return FSE_buildDTable_internal(dt, normalizedCounter, maxSymbolValue, tableLog, workSpace, wkspSi… in FSE_buildDTable_wksp()
H A Dfse.h101 FSE_PUBLIC_API size_t FSE_normalizeCount(short* normalizedCounter, unsigned tableLog,
114 const short* normalizedCounter,
124 FSE_PUBLIC_API size_t FSE_buildCTable(FSE_CTable* ct, const short* normalizedCounter, unsigned maxS…
184 FSE_PUBLIC_API size_t FSE_readNCount (short* normalizedCounter,
191 FSE_PUBLIC_API size_t FSE_readNCount_bmi2(short* normalizedCounter,
266 size_t FSE_buildCTable_wksp(FSE_CTable* ct, const short* normalizedCounter, unsigned maxSymbolValue…
270 FSE_PUBLIC_API size_t FSE_buildDTable_wksp(FSE_DTable* dt, const short* normalizedCounter, unsigned…
/src/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…
/src/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 …]
/src/sys/contrib/openzfs/module/zstd/lib/decompress/
H A Dzstd_decompress_block.h63 const short* normalizedCounter, unsigned maxSymbolValue,
H A Dzstd_decompress_block.c487 const short* normalizedCounter, unsigned maxSymbolValue, in ZSTD_buildFSETable_body() argument
512 if (normalizedCounter[s]==-1) { in ZSTD_buildFSETable_body()
516 if (normalizedCounter[s] >= largeLimit) DTableH.fastMode=0; in ZSTD_buildFSETable_body()
517 assert(normalizedCounter[s]>=0); in ZSTD_buildFSETable_body()
518 symbolNext[s] = (U16)normalizedCounter[s]; in ZSTD_buildFSETable_body()
546 int const n = normalizedCounter[s]; in ZSTD_buildFSETable_body()
582 int const n = normalizedCounter[s]; in ZSTD_buildFSETable_body()
608 const short* normalizedCounter, unsigned maxSymbolValue, in ZSTD_buildFSETable_body_default() argument
612 ZSTD_buildFSETable_body(dt, normalizedCounter, maxSymbolValue, in ZSTD_buildFSETable_body_default()
618 const short* normalizedCounter, unsigned maxSymbolValue, in ZSTD_buildFSETable_body_bmi2() argument
[all …]
/src/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_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_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_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()