| /freebsd-14.2/sys/contrib/openzfs/module/zstd/lib/compress/ |
| H A D | fse_compress.c | 99 if (normalizedCounter[u-1]==-1) { /* Low proba symbol */ in FSE_buildCTable_wksp() 103 cumul[u] = cumul[u-1] + normalizedCounter[u-1]; in FSE_buildCTable_wksp() 113 int const freq = normalizedCounter[symbol]; in FSE_buildCTable_wksp() 134 switch (normalizedCounter[s]) in FSE_buildCTable_wksp() 153 total += normalizedCounter[s]; in FSE_buildCTable_wksp() 161 symbol, normalizedCounter[symbol], in FSE_buildCTable_wksp() 250 { int count = normalizedCounter[symbol++]; in FSE_writeNCount_generic() 459 normalizedCounter[s] = -1; in FSE_normalizeCount() 468 normalizedCounter[s] = proba; in FSE_normalizeCount() 484 RAWLOG(2, "%3i: %4i \n", s, normalizedCounter[s]); in FSE_normalizeCount() [all …]
|
| H A D | zstd_compress.c | 2893 static size_t ZSTD_checkDictNCount(short* normalizedCounter, unsigned dictMaxSymbolValue, unsigned … in ZSTD_checkDictNCount() argument 2897 …RETURN_ERROR_IF(normalizedCounter[s] == 0, dictionary_corrupted, "dict fse tables don't have all s… in ZSTD_checkDictNCount()
|
| /freebsd-14.2/sys/contrib/zstd/lib/compress/ |
| H A D | fse_compress.c | 107 assert(normalizedCounter[u-1] >= 0); 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() 198 total += (unsigned)normalizedCounter[s]; in FSE_buildCTable_wksp() 206 symbol, normalizedCounter[symbol], in FSE_buildCTable_wksp() 290 { int count = normalizedCounter[symbol++]; in FSE_writeNCount_generic() 498 normalizedCounter[s] = lowProbCount; in FSE_normalizeCount() 507 normalizedCounter[s] = proba; in FSE_normalizeCount() [all …]
|
| H A D | zstd_compress.c | 4300 static FSE_repeat ZSTD_dictNCountRepeat(short* normalizedCounter, unsigned dictMaxSymbolValue, unsi… in ZSTD_dictNCountRepeat() argument 4307 if (normalizedCounter[s] == 0) { in ZSTD_dictNCountRepeat()
|
| /freebsd-14.2/sys/contrib/zstd/lib/common/ |
| H A D | entropy_common.c | 70 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 244 …return FSE_readNCount_body_default(normalizedCounter, maxSVPtr, tableLogPtr, headerBuffer, hbSize); in FSE_readNCount_bmi2() [all …]
|
| H A D | fse_decompress.c | 71 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 D | fse.h | 148 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-14.2/sys/contrib/openzfs/module/zstd/lib/common/ |
| H A D | entropy_common.c | 41 size_t FSE_readNCount (short* normalizedCounter, unsigned* maxSVPtr, unsigned* tableLogPtr, in FSE_readNCount() argument 60 { size_t const countSize = FSE_readNCount(normalizedCounter, maxSVPtr, tableLogPtr, in FSE_readNCount() 69 …memset(normalizedCounter, 0, (*maxSVPtr+1) * sizeof(normalizedCounter[0])); /* all symbols not p… in FSE_readNCount() 100 while (charnum < n0) normalizedCounter[charnum++] = 0; in FSE_readNCount() 123 normalizedCounter[charnum++] = (short)count; in FSE_readNCount()
|
| H A D | fse_decompress.c | 59 size_t FSE_buildDTable(FSE_DTable* dt, const short* normalizedCounter, unsigned maxSymbolValue, uns… in FSE_buildDTable() argument 80 if (normalizedCounter[s]==-1) { in FSE_buildDTable() 84 if (normalizedCounter[s] >= largeLimit) DTableH.fastMode=0; in FSE_buildDTable() 85 symbolNext[s] = normalizedCounter[s]; in FSE_buildDTable() 96 for (i=0; i<normalizedCounter[s]; i++) { in FSE_buildDTable()
|
| H A D | fse.h | 142 FSE_PUBLIC_API size_t FSE_normalizeCount(short* normalizedCounter, unsigned tableLog, 155 const short* normalizedCounter, 167 FSE_PUBLIC_API size_t FSE_buildCTable(FSE_CTable* ct, const short* normalizedCounter, unsigned maxS… 227 FSE_PUBLIC_API size_t FSE_readNCount (short* normalizedCounter, 240 FSE_PUBLIC_API size_t FSE_buildDTable (FSE_DTable* dt, const short* normalizedCounter, unsigned max… 327 size_t FSE_buildCTable_wksp(FSE_CTable* ct, const short* normalizedCounter, unsigned maxSymbolValue…
|
| /freebsd-14.2/sys/contrib/openzfs/module/zstd/lib/decompress/ |
| H A D | zstd_decompress_block.h | 54 const short* normalizedCounter, unsigned maxSymbolValue,
|
| H A D | zstd_decompress_block.c | 369 const short* normalizedCounter, unsigned maxSymbolValue, in ZSTD_buildFSETable() argument 391 if (normalizedCounter[s]==-1) { in ZSTD_buildFSETable() 395 if (normalizedCounter[s] >= largeLimit) DTableH.fastMode=0; in ZSTD_buildFSETable() 396 assert(normalizedCounter[s]>=0); in ZSTD_buildFSETable() 397 symbolNext[s] = (U16)normalizedCounter[s]; in ZSTD_buildFSETable() 408 for (i=0; i<normalizedCounter[s]; i++) { in ZSTD_buildFSETable()
|
| /freebsd-14.2/sys/contrib/zstd/lib/decompress/ |
| H A D | zstd_decompress_block.h | 62 const short* normalizedCounter, unsigned maxSymbolValue,
|
| H A D | zstd_decompress_block.c | 445 const short* normalizedCounter, unsigned maxSymbolValue, in ZSTD_buildFSETable_body() argument 470 if (normalizedCounter[s]==-1) { 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 579 ZSTD_buildFSETable_body(dt, normalizedCounter, maxSymbolValue, in ZSTD_buildFSETable_body_bmi2() [all …]
|
| /freebsd-14.2/sys/contrib/zstd/lib/legacy/ |
| H A D | zstd_v01.c | 396 (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 D | zstd_v04.c | 481 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 D | zstd_v03.c | 1097 (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 D | zstd_v06.c | 710 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 D | zstd_v05.c | 638 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 D | zstd_v02.c | 1096 (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 D | zstd_v07.c | 755 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()
|