| /freebsd-12.1/sys/contrib/zstd/lib/compress/ |
| H A D | fse_compress.c | 150 symbolTT[s].deltaNbBits = (tableLog << 16) - (1<<tableLog); in FSE_buildCTable_wksp() 211 nbBits = tableLog+1; in FSE_writeNCount_generic() 459 if (tableLog > FSE_TABLELOG_ABSOLUTE_MAX) tableLog = FSE_TABLELOG_ABSOLUTE_MAX; in FSE_createCTable() 482 if (tableLog==0) tableLog = FSE_DEFAULT_TABLELOG; in FSE_optimalTableLog_internal() 485 if (tableLog < FSE_MIN_TABLELOG) tableLog = FSE_MIN_TABLELOG; in FSE_optimalTableLog_internal() 486 if (tableLog > FSE_MAX_TABLELOG) tableLog = FSE_MAX_TABLELOG; in FSE_optimalTableLog_internal() 487 return tableLog; in FSE_optimalTableLog_internal() 588 if (tableLog==0) tableLog = FSE_DEFAULT_TABLELOG; in FSE_normalizeCount() 641 return tableLog; in FSE_normalizeCount() 800 if (!tableLog) tableLog = FSE_DEFAULT_TABLELOG; in FSE_compress_wksp() [all …]
|
| H A D | huf_compress.c | 91 U32 tableLog = MAX_FSE_TABLELOG_FOR_HUFF_HEADER; in HUF_compressWeights() local 108 tableLog = FSE_optimalTableLog(tableLog, wtSize, maxSymbolValue); in HUF_compressWeights() 109 CHECK_F( FSE_normalizeCount(norm, tableLog, count, wtSize, maxSymbolValue) ); in HUF_compressWeights() 112 { CHECK_V_F(hSize, FSE_writeNCount(op, oend-op, norm, maxSymbolValue, tableLog) ); in HUF_compressWeights() 117 …CHECK_F( FSE_buildCTable_wksp(CTable, norm, maxSymbolValue, tableLog, scratchBuffer, sizeof(scratc… in HUF_compressWeights() 175 U32 tableLog = 0; in HUF_readCTable() local 182 if (tableLog > HUF_TABLELOG_MAX) return ERROR(tableLog_tooLarge); in HUF_readCTable() 187 for (n=1; n<=tableLog; n++) { in HUF_readCTable() 196 CTable[n].nbBits = (BYTE)(tableLog + 1 - w); in HUF_readCTable() 204 valPerRank[tableLog+1] = 0; /* for w==0 */ in HUF_readCTable() [all …]
|
| H A D | zstd_compress.c | 1537 const U32 tableLog = FSE_optimalTableLog(FSELog, nbSeq, max); in ZSTD_buildCTable() local 1543 CHECK_F(FSE_normalizeCount(norm, tableLog, count, nbSeq_1, max)); in ZSTD_buildCTable() 1544 …{ size_t const NCountSize = FSE_writeNCount(op, oend - op, norm, max, tableLog); /* overflow p… in ZSTD_buildCTable() 1546 … CHECK_F(FSE_buildCTable_wksp(nextCTable, norm, max, tableLog, workspace, workspaceSize)); in ZSTD_buildCTable()
|
| /freebsd-12.1/sys/contrib/zstd/lib/common/ |
| H A D | fse_decompress.c | 82 FSE_DTable* FSE_createDTable (unsigned tableLog) in FSE_createDTable() argument 84 if (tableLog > FSE_TABLELOG_ABSOLUTE_MAX) tableLog = FSE_TABLELOG_ABSOLUTE_MAX; in FSE_createDTable() 85 return (FSE_DTable*)malloc( FSE_DTABLE_SIZE_U32(tableLog) * sizeof (U32) ); in FSE_createDTable() 100 U32 const tableSize = 1 << tableLog; in FSE_buildDTable() 105 if (tableLog > FSE_MAX_TABLELOG) return ERROR(tableLog_tooLarge); in FSE_buildDTable() 109 DTableH.tableLog = (U16)tableLog; in FSE_buildDTable() 111 { S16 const largeLimit= (S16)(1 << (tableLog-1)); in FSE_buildDTable() 163 DTableH->tableLog = 0; in FSE_buildDTable_rle() 189 DTableH->tableLog = (U16)nbBits; in FSE_buildDTable_raw() 282 unsigned tableLog; in FSE_decompress_wksp() local [all …]
|
| H A D | fse.h | 175 FSE_PUBLIC_API size_t FSE_NCountWriteBound(unsigned maxSymbolValue, unsigned tableLog); 187 FSE_PUBLIC_API FSE_CTable* FSE_createCTable (unsigned maxSymbolValue, unsigned tableLog); 193 …CTable(FSE_CTable* ct, const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog); 258 FSE_PUBLIC_API FSE_DTable* FSE_createDTable(unsigned tableLog); 264 …Table (FSE_DTable* dt, const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog); 541 const U32 tableLog = MEM_read16(ptr); in FSE_initCState() local 542 statePtr->value = (ptrdiff_t)1<<tableLog; in FSE_initCState() 544 statePtr->symbolTT = ((const U32*)ct + 1 + (tableLog ? (1<<(tableLog-1)) : 1)); in FSE_initCState() 545 statePtr->stateLog = tableLog; in FSE_initCState() 582 U16 tableLog; member [all …]
|
| H A D | huf.h | 108 unsigned maxSymbolValue, unsigned tableLog); 117 unsigned maxSymbolValue, unsigned tableLog, 220 unsigned maxSymbolValue, unsigned tableLog, 287 … dst, size_t dstSize, const void* src, size_t srcSize, unsigned maxSymbolValue, unsigned tableLog); 288 …ize, const void* src, size_t srcSize, unsigned maxSymbolValue, unsigned tableLog, void* workSpace,… 297 unsigned maxSymbolValue, unsigned tableLog,
|
| H A D | entropy_common.c | 202 { U32 const tableLog = BIT_highbit32(weightTotal) + 1; in HUF_readStats() local 203 if (tableLog > HUF_TABLELOG_MAX) return ERROR(corruption_detected); in HUF_readStats() 204 *tableLogPtr = tableLog; in HUF_readStats() 206 { U32 const total = 1 << tableLog; in HUF_readStats()
|
| /freebsd-12.1/sys/contrib/zstd/lib/legacy/ |
| H A D | zstd_v02.c | 689 U16 tableLog; member 1105 DTableH.tableLog = (U16)tableLog; in FSE_buildDTable() 1289 DTableH->tableLog = 0; in FSE_buildDTable_rle() 1314 DTableH->tableLog = (U16)nbBits; in FSE_buildDTable_raw() 1415 unsigned tableLog; in FSE_decompress() local 1536 U32 tableLog; in HUF_readStats() local 1591 U32 total = 1 << tableLog; in HUF_readStats() 1605 *tableLogPtr = tableLog; in HUF_readStats() 1618 U32 tableLog = 0; in HUF_readDTableX2() local 1639 for (n=1; n<=tableLog; n++) in HUF_readDTableX2() [all …]
|
| H A D | zstd_v03.c | 691 U16 tableLog; member 1106 DTableH.tableLog = (U16)tableLog; in FSE_buildDTable() 1290 DTableH->tableLog = 0; in FSE_buildDTable_rle() 1315 DTableH->tableLog = (U16)nbBits; in FSE_buildDTable_raw() 1416 unsigned tableLog; in FSE_decompress() local 1533 U32 tableLog; in HUF_readStats() local 1588 U32 total = 1 << tableLog; in HUF_readStats() 1602 *tableLogPtr = tableLog; in HUF_readStats() 1615 U32 tableLog = 0; in HUF_readDTableX2() local 1636 for (n=1; n<=tableLog; n++) in HUF_readDTableX2() [all …]
|
| H A D | zstd_v07.c | 861 U16 tableLog; member 1356 *tableLogPtr = tableLog; in HUFv07_readStats() 1469 if (tableLog > FSEv07_TABLELOG_ABSOLUTE_MAX) tableLog = FSEv07_TABLELOG_ABSOLUTE_MAX; in FSEv07_createDTable() 1494 DTableH.tableLog = (U16)tableLog; in FSEv07_buildDTable() 1550 DTableH->tableLog = 0; in FSEv07_buildDTable_rle() 1675 unsigned tableLog; in FSEv07_decompress() local 1780 U32 tableLog = 0; in HUFv07_readDTableX2() local 1796 dtd.tableLog = (BYTE)tableLog; in HUFv07_readDTableX2() 1878 U32 const dtLog = dtd.tableLog; in HUFv07_decompress1X2_usingDTable_internal() 2206 tableLog+1); in HUFv07_readDTableX4() [all …]
|
| H A D | zstd_v06.c | 1095 U16 tableLog; member 1449 if (tableLog > FSEv06_TABLELOG_ABSOLUTE_MAX) tableLog = FSEv06_TABLELOG_ABSOLUTE_MAX; in FSEv06_createDTable() 1474 DTableH.tableLog = (U16)tableLog; in FSEv06_buildDTable() 1530 DTableH->tableLog = 0; in FSEv06_buildDTable_rle() 1556 DTableH->tableLog = (U16)nbBits; in FSEv06_buildDTable_raw() 1655 unsigned tableLog; in FSEv06_decompress() local 1904 *tableLogPtr = tableLog; in HUFv06_readStats() 2008 U32 tableLog = 0; in HUFv06_readDTableX2() local 2028 for (n=1; n<tableLog+1; n++) { in HUFv06_readDTableX2() 2398 tableLog+1); in HUFv06_readDTableX4() [all …]
|
| H A D | zstd_v05.c | 989 U16 tableLog; member 1198 if (tableLog > FSEv05_TABLELOG_ABSOLUTE_MAX) tableLog = FSEv05_TABLELOG_ABSOLUTE_MAX; in FSEv05_createDTable() 1227 DTableH.tableLog = (U16)tableLog; in FSEv05_buildDTable() 1384 DTableH->tableLog = 0; in FSEv05_buildDTable_rle() 1509 unsigned tableLog; in FSEv05_decompress() local 1796 U32 tableLog; in HUFv05_readStats() local 1843 U32 total = 1 << tableLog; in HUFv05_readStats() 1857 *tableLogPtr = tableLog; in HUFv05_readStats() 1870 U32 tableLog = 0; in HUFv05_readDTableX2() local 1890 for (n=1; n<=tableLog; n++) { in HUFv05_readDTableX2() [all …]
|
| H A D | zstd_v04.c | 927 U16 tableLog; member 1145 DTableH.tableLog = (U16)tableLog; in FSE_buildDTable() 1330 DTableH->tableLog = 0; in FSE_buildDTable_rle() 1356 DTableH->tableLog = (U16)nbBits; in FSE_buildDTable_raw() 1460 unsigned tableLog; in FSE_decompress() local 1748 U32 tableLog; in HUF_readStats() local 1803 U32 total = 1 << tableLog; in HUF_readStats() 1817 *tableLogPtr = tableLog; in HUF_readStats() 1830 U32 tableLog = 0; in HUF_readDTableX2() local 1850 for (n=1; n<=tableLog; n++) in HUF_readDTableX2() [all …]
|
| H A D | zstd_v01.c | 395 U16 tableLog; member 405 const U32 tableSize = 1 << tableLog; in FSE_buildDTable() 411 const S16 largeLimit= (S16)(1 << (tableLog-1)); in FSE_buildDTable() 417 if (tableLog > FSE_MAX_TABLELOG) return (size_t)-FSE_ERROR_tableLog_tooLarge; in FSE_buildDTable() 420 DTableH[0].tableLog = (U16)tableLog; in FSE_buildDTable() 456 tableDecode[i].nbBits = (BYTE) (tableLog - FSE_highbit32 ((U32)nextState) ); in FSE_buildDTable() 604 DTableH->tableLog = 0; in FSE_buildDTable_rle() 629 DTableH->tableLog = (U16)nbBits; in FSE_buildDTable_raw() 771 DStatePtr->state = FSE_readBits(bitD, DTableH->tableLog); in FSE_initDState() 901 unsigned tableLog; in FSE_decompress() local [all …]
|
| /freebsd-12.1/sys/contrib/zstd/lib/decompress/ |
| H A D | huf_decompress.c | 82 U32 tableLog = 0; in HUF_readDTableX2_wksp() local 109 dtd.tableLog = (BYTE)tableLog; in HUF_readDTableX2_wksp() 115 for (n=1; n<tableLog+1; n++) { in HUF_readDTableX2_wksp() 128 D.byte = (BYTE)n; D.nbBits = (BYTE)(tableLog + 1 - w); in HUF_readDTableX2_wksp() 203 U32 const dtLog = dtd.tableLog; in HUF_decompress1X2_usingDTable_internal_body() 252 U32 const dtLog = dtd.tableLog; in HUF_decompress4X2_usingDTable_internal_body() 437 U32 const dtLog = dtd.tableLog; in HUF_decompress4X4_usingDTable_internal_body() 724 U32 tableLog, maxW, sizeOfSort, nbSymbols; in HUF_readDTableX4_wksp() local 800 { U32 const minBits = tableLog+1 - maxW; in HUF_readDTableX4_wksp() 812 tableLog+1); in HUF_readDTableX4_wksp() [all …]
|
| H A D | zstd_decompress.c | 89 U32 tableLog; member 790 DTableH->tableLog = 0; in ZSTD_buildSeqTable_rle() 807 unsigned tableLog) in ZSTD_buildFSETable() argument 813 U32 const tableSize = 1 << tableLog; in ZSTD_buildFSETable() 818 assert(tableLog <= MaxFSELog); in ZSTD_buildFSETable() 822 DTableH.tableLog = tableLog; in ZSTD_buildFSETable() 893 { U32 tableLog; in ZSTD_buildSeqTable() local 1241 (U32)DStatePtr->state, DTableH->tableLog); in ZSTD_initFseState() 1639 U32 const tableLog = ((const ZSTD_seqSymbol_header*)ptr)[0].tableLog; in ZSTD_getLongOffsetsShare() local 1641 U32 const max = 1 << tableLog; in ZSTD_getLongOffsetsShare() [all …]
|
| /freebsd-12.1/sys/contrib/zstd/tests/ |
| H A D | decodecorpus.c | 855 const U32 tableLog = FSE_optimalTableLog(LLFSELog, nbSeq, max); in writeSequences() local 857 FSE_normalizeCount(norm, tableLog, count, nbSeq_1, max); in writeSequences() 858 …{ size_t const NCountSize = FSE_writeNCount(op, oend-op, norm, max, tableLog); /* overflow prote… in writeSequences() 861 … FSE_buildCTable_wksp(CTable_LitLength, norm, max, tableLog, scratchBuffer, sizeof(scratchBuffer)); in writeSequences() 882 const U32 tableLog = FSE_optimalTableLog(OffFSELog, nbSeq, max); in writeSequences() local 884 FSE_normalizeCount(norm, tableLog, count, nbSeq_1, max); in writeSequences() 885 …{ size_t const NCountSize = FSE_writeNCount(op, oend-op, norm, max, tableLog); /* overflow prote… in writeSequences() 888 …FSE_buildCTable_wksp(CTable_OffsetBits, norm, max, tableLog, scratchBuffer, sizeof(scratchBuffer)); in writeSequences() 911 const U32 tableLog = FSE_optimalTableLog(MLFSELog, nbSeq, max); in writeSequences() local 913 FSE_normalizeCount(norm, tableLog, count, nbSeq_1, max); in writeSequences() [all …]
|