| /freebsd-12.1/sys/contrib/zstd/lib/compress/ |
| H A D | fse_compress.c | 111 if (normalizedCounter[u-1]==-1) { /* Low proba symbol */ in FSE_buildCTable_wksp() 115 cumul[u] = cumul[u-1] + normalizedCounter[u-1]; in FSE_buildCTable_wksp() 144 switch (normalizedCounter[s]) in FSE_buildCTable_wksp() 160 total += normalizedCounter[s]; in FSE_buildCTable_wksp() 216 while (!normalizedCounter[charnum]) charnum++; in FSE_writeNCount_generic() 241 { int count = normalizedCounter[charnum++]; in FSE_writeNCount_generic() 605 if (count[s] == 0) { normalizedCounter[s]=0; continue; } in FSE_normalizeCount() 607 normalizedCounter[s] = -1; in FSE_normalizeCount() 616 normalizedCounter[s] = proba; in FSE_normalizeCount() 632 printf("%3i: %4i \n", s, normalizedCounter[s]); in FSE_normalizeCount() [all …]
|
| H A D | zstd_compress.c | 2240 static size_t ZSTD_checkDictNCount(short* normalizedCounter, unsigned dictMaxSymbolValue, unsigned … in ZSTD_checkDictNCount() argument 2244 if (normalizedCounter[s] == 0) return ERROR(dictionary_corrupted); in ZSTD_checkDictNCount()
|
| /freebsd-12.1/sys/contrib/zstd/lib/common/ |
| H A D | fse_decompress.c | 93 size_t FSE_buildDTable(FSE_DTable* dt, const short* normalizedCounter, unsigned maxSymbolValue, uns… in FSE_buildDTable() argument 114 if (normalizedCounter[s]==-1) { in FSE_buildDTable() 118 if (normalizedCounter[s] >= largeLimit) DTableH.fastMode=0; in FSE_buildDTable() 119 symbolNext[s] = normalizedCounter[s]; in FSE_buildDTable() 130 for (i=0; i<normalizedCounter[s]; i++) { in FSE_buildDTable()
|
| H A D | fse.h | 170 FSE_PUBLIC_API size_t FSE_normalizeCount(short* normalizedCounter, unsigned tableLog, const unsigne… 181 …ze_t FSE_writeNCount (void* buffer, size_t bufferSize, const short* normalizedCounter, unsigned ma… 193 FSE_PUBLIC_API size_t FSE_buildCTable(FSE_CTable* ct, const short* normalizedCounter, unsigned maxS… 253 FSE_PUBLIC_API size_t FSE_readNCount (short* normalizedCounter, unsigned* maxSymbolValuePtr, unsign… 264 FSE_PUBLIC_API size_t FSE_buildDTable (FSE_DTable* dt, const short* normalizedCounter, unsigned max… 376 size_t FSE_buildCTable_wksp(FSE_CTable* ct, const short* normalizedCounter, unsigned maxSymbolValue…
|
| H A D | entropy_common.c | 61 size_t FSE_readNCount (short* normalizedCounter, unsigned* maxSVPtr, unsigned* tableLogPtr, in FSE_readNCount() argument 106 while (charnum < n0) normalizedCounter[charnum++] = 0; in FSE_readNCount() 128 normalizedCounter[charnum++] = (short)count; in FSE_readNCount()
|
| /freebsd-12.1/sys/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 | 532 static size_t FSE_readNCount (short* normalizedCounter, unsigned* maxSymbolValuePtr, unsigned* tab… 544 static size_t FSE_buildDTable ( FSE_DTable* dt, const short* normalizedCounter, unsigned maxSymbolV… 1125 static size_t FSE_buildDTable(FSE_DTable* dt, const short* normalizedCounter, unsigned maxSymbolVal… in FSE_buildDTable() argument 1148 if (normalizedCounter[s]==-1) in FSE_buildDTable() 1155 if (normalizedCounter[s] >= largeLimit) noLarge=0; in FSE_buildDTable() 1156 symbolNext[s] = normalizedCounter[s]; in FSE_buildDTable() 1164 for (i=0; i<normalizedCounter[s]; i++) in FSE_buildDTable() 1207 static size_t FSE_readNCount (short* normalizedCounter, unsigned* maxSVPtr, unsigned* tableLogPtr, in FSE_readNCount() argument 1260 while (charnum < n0) normalizedCounter[charnum++] = 0; in FSE_readNCount() 1288 normalizedCounter[charnum++] = count; in FSE_readNCount()
|
| H A D | zstd_v03.c | 1086 (FSE_DTable* dt, const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog) in FSE_buildDTable() argument 1109 if (normalizedCounter[s]==-1) in FSE_buildDTable() 1116 if (normalizedCounter[s] >= largeLimit) noLarge=0; in FSE_buildDTable() 1117 symbolNext[s] = normalizedCounter[s]; in FSE_buildDTable() 1125 for (i=0; i<normalizedCounter[s]; i++) in FSE_buildDTable() 1168 static size_t FSE_readNCount (short* normalizedCounter, unsigned* maxSVPtr, unsigned* tableLogPtr, in FSE_readNCount() argument 1221 while (charnum < n0) normalizedCounter[charnum++] = 0; in FSE_readNCount() 1249 normalizedCounter[charnum++] = count; in FSE_readNCount()
|
| H A D | zstd_v06.c | 707 size_t FSEv06_readNCount (short* normalizedCounter, unsigned* maxSymbolValuePtr, unsigned* tableLog… 718 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 | 635 size_t FSEv05_readNCount (short* normalizedCounter, unsigned* maxSymbolValuePtr, unsigned* tableLog… 649 size_t FSEv05_buildDTable (FSEv05_DTable* dt, const short* normalizedCounter, unsigned maxSymbolVal… 1207 size_t FSEv05_buildDTable(FSEv05_DTable* dt, const short* normalizedCounter, unsigned maxSymbolValu… in FSEv05_buildDTable() argument 1229 if (normalizedCounter[s]==-1) { in FSEv05_buildDTable() 1233 if (normalizedCounter[s] >= largeLimit) noLarge=0; in FSEv05_buildDTable() 1234 symbolNext[s] = normalizedCounter[s]; in FSEv05_buildDTable() 1240 for (i=0; i<normalizedCounter[s]; i++) { in FSEv05_buildDTable() 1279 size_t FSEv05_readNCount (short* normalizedCounter, unsigned* maxSVPtr, unsigned* tableLogPtr, in FSEv05_readNCount() argument 1324 while (charnum < n0) normalizedCounter[charnum++] = 0; in FSEv05_readNCount() 1348 normalizedCounter[charnum++] = count; in FSEv05_readNCount()
|
| H A D | zstd_v02.c | 1085 (FSE_DTable* dt, const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog) in FSE_buildDTable() argument 1108 if (normalizedCounter[s]==-1) in FSE_buildDTable() 1115 if (normalizedCounter[s] >= largeLimit) noLarge=0; in FSE_buildDTable() 1116 symbolNext[s] = normalizedCounter[s]; in FSE_buildDTable() 1124 for (i=0; i<normalizedCounter[s]; i++) in FSE_buildDTable() 1167 static size_t FSE_readNCount (short* normalizedCounter, unsigned* maxSVPtr, unsigned* tableLogPtr, in FSE_readNCount() argument 1220 while (charnum < n0) normalizedCounter[charnum++] = 0; in FSE_readNCount() 1248 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()
|
| /freebsd-12.1/sys/contrib/zstd/lib/decompress/ |
| H A D | zstd_decompress.c | 805 const short* normalizedCounter, unsigned maxSymbolValue, in ZSTD_buildFSETable() argument 827 if (normalizedCounter[s]==-1) { in ZSTD_buildFSETable() 831 if (normalizedCounter[s] >= largeLimit) DTableH.fastMode=0; in ZSTD_buildFSETable() 832 symbolNext[s] = normalizedCounter[s]; in ZSTD_buildFSETable() 843 for (i=0; i<normalizedCounter[s]; i++) { in ZSTD_buildFSETable()
|