| /f-stack/freebsd/contrib/zstd/lib/compress/ |
| H A D | fse_compress.c | 102 if (normalizedCounter[u-1]==-1) { /* Low proba symbol */ in FSE_buildCTable_wksp() 106 cumul[u] = cumul[u-1] + normalizedCounter[u-1]; in FSE_buildCTable_wksp() 116 int const freq = normalizedCounter[symbol]; in FSE_buildCTable_wksp() 137 switch (normalizedCounter[s]) in FSE_buildCTable_wksp() 156 total += normalizedCounter[s]; in FSE_buildCTable_wksp() 164 symbol, normalizedCounter[symbol], in FSE_buildCTable_wksp() 254 { int count = normalizedCounter[symbol++]; in FSE_writeNCount_generic() 462 normalizedCounter[s] = lowProbCount; in FSE_normalizeCount() 471 normalizedCounter[s] = proba; in FSE_normalizeCount() 487 RAWLOG(2, "%3i: %4i \n", s, normalizedCounter[s]); in FSE_normalizeCount() [all …]
|
| H A D | zstd_compress.c | 3153 static FSE_repeat ZSTD_dictNCountRepeat(short* normalizedCounter, unsigned dictMaxSymbolValue, unsi… in ZSTD_dictNCountRepeat() argument 3160 if (normalizedCounter[s] == 0) { in ZSTD_dictNCountRepeat()
|
| /f-stack/freebsd/contrib/zstd/lib/common/ |
| H A D | entropy_common.c | 64 size_t FSE_readNCount_body(short* normalizedCounter, unsigned* maxSVPtr, unsigned* tableLogPtr, in FSE_readNCount_body() argument 83 { size_t const countSize = FSE_readNCount(normalizedCounter, maxSVPtr, tableLogPtr, in FSE_readNCount_body() 92 …ZSTD_memset(normalizedCounter, 0, (*maxSVPtr+1) * sizeof(normalizedCounter[0])); /* all symbols … in FSE_readNCount_body() 176 normalizedCounter[charnum++] = (short)count; in FSE_readNCount_body() 213 short* normalizedCounter, unsigned* maxSVPtr, unsigned* tableLogPtr, in FSE_readNCount_body_default() argument 216 return FSE_readNCount_body(normalizedCounter, maxSVPtr, tableLogPtr, headerBuffer, hbSize); in FSE_readNCount_body_default() 221 short* normalizedCounter, unsigned* maxSVPtr, unsigned* tableLogPtr, in FSE_readNCount_body_bmi2() argument 224 return FSE_readNCount_body(normalizedCounter, maxSVPtr, tableLogPtr, headerBuffer, hbSize); in FSE_readNCount_body_bmi2() 229 short* normalizedCounter, unsigned* maxSVPtr, unsigned* tableLogPtr, in FSE_readNCount_bmi2() argument 238 …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() 379 size_t FSE_buildDTable(FSE_DTable* dt, const short* normalizedCounter, unsigned maxSymbolValue, uns… in FSE_buildDTable() argument 381 … 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… 342 size_t FSE_buildCTable_wksp(FSE_CTable* ct, const short* normalizedCounter, unsigned maxSymbolValue… 346 FSE_PUBLIC_API size_t FSE_buildDTable_wksp(FSE_DTable* dt, const short* normalizedCounter, unsigned…
|
| /f-stack/freebsd/contrib/zstd/lib/decompress/ |
| H A D | zstd_decompress_block.h | 56 const short* normalizedCounter, unsigned maxSymbolValue,
|
| H A D | zstd_decompress_block.c | 369 const short* normalizedCounter, unsigned maxSymbolValue, in ZSTD_buildFSETable_body() argument 394 if (normalizedCounter[s]==-1) { in ZSTD_buildFSETable_body() 399 assert(normalizedCounter[s]>=0); in ZSTD_buildFSETable_body() 400 symbolNext[s] = (U16)normalizedCounter[s]; in ZSTD_buildFSETable_body() 428 int const n = normalizedCounter[s]; in ZSTD_buildFSETable_body() 463 int const n = normalizedCounter[s]; in ZSTD_buildFSETable_body() 489 const short* normalizedCounter, unsigned maxSymbolValue, in ZSTD_buildFSETable_body_default() argument 493 ZSTD_buildFSETable_body(dt, normalizedCounter, maxSymbolValue, in ZSTD_buildFSETable_body_default() 499 const short* normalizedCounter, unsigned maxSymbolValue, in ZSTD_buildFSETable_body_bmi2() argument 503 ZSTD_buildFSETable_body(dt, normalizedCounter, maxSymbolValue, in ZSTD_buildFSETable_body_bmi2() [all …]
|
| /f-stack/freebsd/contrib/zstd/lib/legacy/ |
| H A D | zstd_v01.c | 400 (FSE_DTable* dt, const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog) in FSE_buildDTable() argument 423 if (normalizedCounter[s]==-1) in FSE_buildDTable() 430 if (normalizedCounter[s] >= largeLimit) noLarge=0; in FSE_buildDTable() 431 symbolNext[s] = normalizedCounter[s]; in FSE_buildDTable() 439 for (i=0; i<normalizedCounter[s]; i++) in FSE_buildDTable() 482 static size_t FSE_readNCount (short* normalizedCounter, unsigned* maxSVPtr, unsigned* tableLogPtr, in FSE_readNCount() argument 535 while (charnum < n0) normalizedCounter[charnum++] = 0; in FSE_readNCount() 563 normalizedCounter[charnum++] = count; in FSE_readNCount()
|
| H A D | zstd_v04.c | 484 static size_t FSE_readNCount (short* normalizedCounter, unsigned* maxSymbolValuePtr, unsigned* tab… 496 static size_t FSE_buildDTable ( FSE_DTable* dt, const short* normalizedCounter, unsigned maxSymbolV… 1077 static size_t FSE_buildDTable(FSE_DTable* dt, const short* normalizedCounter, unsigned maxSymbolVal… in FSE_buildDTable() argument 1101 if (normalizedCounter[s]==-1) in FSE_buildDTable() 1108 if (normalizedCounter[s] >= largeLimit) noLarge=0; in FSE_buildDTable() 1109 symbolNext[s] = normalizedCounter[s]; in FSE_buildDTable() 1117 for (i=0; i<normalizedCounter[s]; i++) in FSE_buildDTable() 1160 static size_t FSE_readNCount (short* normalizedCounter, unsigned* maxSVPtr, unsigned* tableLogPtr, in FSE_readNCount() argument 1213 while (charnum < n0) normalizedCounter[charnum++] = 0; in FSE_readNCount() 1241 normalizedCounter[charnum++] = count; in FSE_readNCount()
|
| H A D | zstd_v03.c | 1101 (FSE_DTable* dt, const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog) in FSE_buildDTable() argument 1124 if (normalizedCounter[s]==-1) in FSE_buildDTable() 1131 if (normalizedCounter[s] >= largeLimit) noLarge=0; in FSE_buildDTable() 1132 symbolNext[s] = normalizedCounter[s]; in FSE_buildDTable() 1140 for (i=0; i<normalizedCounter[s]; i++) in FSE_buildDTable() 1183 static size_t FSE_readNCount (short* normalizedCounter, unsigned* maxSVPtr, unsigned* tableLogPtr, in FSE_readNCount() argument 1236 while (charnum < n0) normalizedCounter[charnum++] = 0; in FSE_readNCount() 1264 normalizedCounter[charnum++] = count; in FSE_readNCount()
|
| H A D | zstd_v06.c | 713 size_t FSEv06_readNCount (short* normalizedCounter, unsigned* maxSymbolValuePtr, unsigned* tableLog… 724 size_t FSEv06_buildDTable (FSEv06_DTable* dt, const short* normalizedCounter, unsigned maxSymbolVal… 1267 size_t FSEv06_readNCount (short* normalizedCounter, unsigned* maxSVPtr, unsigned* tableLogPtr, in FSEv06_readNCount() argument 1312 while (charnum < n0) normalizedCounter[charnum++] = 0; in FSEv06_readNCount() 1335 normalizedCounter[charnum++] = count; in FSEv06_readNCount() 1462 size_t FSEv06_buildDTable(FSEv06_DTable* dt, const short* normalizedCounter, unsigned maxSymbolValu… in FSEv06_buildDTable() argument 1483 if (normalizedCounter[s]==-1) { in FSEv06_buildDTable() 1487 if (normalizedCounter[s] >= largeLimit) DTableH.fastMode=0; in FSEv06_buildDTable() 1488 symbolNext[s] = normalizedCounter[s]; in FSEv06_buildDTable() 1499 for (i=0; i<normalizedCounter[s]; i++) { in FSEv06_buildDTable()
|
| H A D | zstd_v05.c | 641 size_t FSEv05_readNCount (short* normalizedCounter, unsigned* maxSymbolValuePtr, unsigned* tableLog… 655 size_t FSEv05_buildDTable (FSEv05_DTable* dt, const short* normalizedCounter, unsigned maxSymbolVal… 1213 size_t FSEv05_buildDTable(FSEv05_DTable* dt, const short* normalizedCounter, unsigned maxSymbolValu… in FSEv05_buildDTable() argument 1236 if (normalizedCounter[s]==-1) { in FSEv05_buildDTable() 1240 if (normalizedCounter[s] >= largeLimit) noLarge=0; in FSEv05_buildDTable() 1241 symbolNext[s] = normalizedCounter[s]; in FSEv05_buildDTable() 1247 for (i=0; i<normalizedCounter[s]; i++) { in FSEv05_buildDTable() 1286 size_t FSEv05_readNCount (short* normalizedCounter, unsigned* maxSVPtr, unsigned* tableLogPtr, in FSEv05_readNCount() argument 1331 while (charnum < n0) normalizedCounter[charnum++] = 0; in FSEv05_readNCount() 1355 normalizedCounter[charnum++] = count; in FSEv05_readNCount()
|
| H A D | zstd_v02.c | 1100 (FSE_DTable* dt, const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog) in FSE_buildDTable() argument 1123 if (normalizedCounter[s]==-1) in FSE_buildDTable() 1130 if (normalizedCounter[s] >= largeLimit) noLarge=0; in FSE_buildDTable() 1131 symbolNext[s] = normalizedCounter[s]; in FSE_buildDTable() 1139 for (i=0; i<normalizedCounter[s]; i++) in FSE_buildDTable() 1182 static size_t FSE_readNCount (short* normalizedCounter, unsigned* maxSVPtr, unsigned* tableLogPtr, in FSE_readNCount() argument 1235 while (charnum < n0) normalizedCounter[charnum++] = 0; in FSE_readNCount() 1263 normalizedCounter[charnum++] = count; in FSE_readNCount()
|
| H A D | zstd_v07.c | 759 size_t FSEv07_readNCount (short* normalizedCounter, unsigned* maxSymbolValuePtr, unsigned* tableLog… 770 size_t FSEv07_buildDTable (FSEv07_DTable* dt, const short* normalizedCounter, unsigned maxSymbolVal… 1211 size_t FSEv07_readNCount (short* normalizedCounter, unsigned* maxSVPtr, unsigned* tableLogPtr, in FSEv07_readNCount() argument 1256 while (charnum < n0) normalizedCounter[charnum++] = 0; in FSEv07_readNCount() 1279 normalizedCounter[charnum++] = count; in FSEv07_readNCount() 1482 size_t FSEv07_buildDTable(FSEv07_DTable* dt, const short* normalizedCounter, unsigned maxSymbolValu… in FSEv07_buildDTable() argument 1503 if (normalizedCounter[s]==-1) { in FSEv07_buildDTable() 1507 if (normalizedCounter[s] >= largeLimit) DTableH.fastMode=0; in FSEv07_buildDTable() 1508 symbolNext[s] = normalizedCounter[s]; in FSEv07_buildDTable() 1519 for (i=0; i<normalizedCounter[s]; i++) { in FSEv07_buildDTable()
|
| /f-stack/freebsd/contrib/openzfs/module/zstd/lib/ |
| H A D | zstd.c | 2843 if (normalizedCounter[s]==-1) { in FSE_buildDTable() 2859 for (i=0; i<normalizedCounter[s]; i++) { in FSE_buildDTable() 7613 switch (normalizedCounter[s]) in FSE_buildCTable_wksp() 7632 total += normalizedCounter[s]; in FSE_buildCTable_wksp() 7640 symbol, normalizedCounter[symbol], in FSE_buildCTable_wksp() 7729 { int count = normalizedCounter[symbol++]; in FSE_writeNCount_generic() 7938 normalizedCounter[s] = -1; in FSE_normalizeCount() 7947 normalizedCounter[s] = proba; in FSE_normalizeCount() 7965 nTotal += abs(normalizedCounter[s]); in FSE_normalizeCount() 26784 if (normalizedCounter[s]==-1) { in ZSTD_buildFSETable() [all …]
|