/lib/zstd/ |
D | fse_compress.c | 92 … *ct, const short *normalizedCounter, unsigned maxSymbolValue, unsigned tableLog, void *workspace,… in FSE_buildCTable_wksp() argument 94 U32 const tableSize = 1 << tableLog; in FSE_buildCTable_wksp() 98 void *const FSCT = ((U32 *)ptr) + 1 /* header */ + (tableLog ? tableSize >> 1 : 1); in FSE_buildCTable_wksp() 110 spaceUsed32 += ALIGN(sizeof(FSE_FUNCTION_TYPE) * ((size_t)1 << tableLog), sizeof(U32)) >> 2; in FSE_buildCTable_wksp() 118 tableU16[-2] = (U16)tableLog; in FSE_buildCTable_wksp() 176 symbolTT[s].deltaNbBits = (tableLog << 16) - (1 << tableLog); in FSE_buildCTable_wksp() 181 U32 const maxBitsOut = tableLog - BIT_highbit32(normalizedCounter[s] - 1); in FSE_buildCTable_wksp() 197 size_t FSE_NCountWriteBound(unsigned maxSymbolValue, unsigned tableLog) in FSE_NCountWriteBound() argument 199 size_t const maxHeaderSize = (((maxSymbolValue + 1) * tableLog) >> 3) + 3; in FSE_NCountWriteBound() 203 …ize_t headerBufferSize, const short *normalizedCounter, unsigned maxSymbolValue, unsigned tableLog, in FSE_writeNCount_generic() argument [all …]
|
D | fse_decompress.c | 88 … *dt, const short *normalizedCounter, unsigned maxSymbolValue, unsigned tableLog, void *workspace,… in FSE_buildDTable_wksp() argument 95 U32 const tableSize = 1 << tableLog; in FSE_buildDTable_wksp() 103 if (tableLog > FSE_MAX_TABLELOG) in FSE_buildDTable_wksp() 109 DTableH.tableLog = (U16)tableLog; in FSE_buildDTable_wksp() 112 S16 const largeLimit = (S16)(1 << (tableLog - 1)); in FSE_buildDTable_wksp() 152 tableDecode[u].nbBits = (BYTE)(tableLog - BIT_highbit32((U32)nextState)); in FSE_buildDTable_wksp() 170 DTableH->tableLog = 0; in FSE_buildDTable_rle() 196 DTableH->tableLog = (U16)nbBits; in FSE_buildDTable_raw() 291 unsigned tableLog; in FSE_decompress_wksp() local 312 NCountLength = FSE_readNCount(counting, &maxSymbolValue, &tableLog, istart, cSrcSize); in FSE_decompress_wksp() [all …]
|
D | fse.h | 107 FSE_PUBLIC_API size_t FSE_normalizeCount(short *normalizedCounter, unsigned tableLog, const unsigne… 112 FSE_PUBLIC_API size_t FSE_NCountWriteBound(unsigned maxSymbolValue, unsigned tableLog); 118 …er, size_t bufferSize, const short *normalizedCounter, unsigned maxSymbolValue, unsigned tableLog); 190 … *dt, const short *normalizedCounter, unsigned maxSymbolValue, unsigned tableLog, void *workspace,… 276 … *ct, const short *normalizedCounter, unsigned maxSymbolValue, unsigned tableLog, void *workSpace,… 431 const U32 tableLog = ZSTD_read16(ptr); in FSE_initCState() local 432 statePtr->value = (ptrdiff_t)1 << tableLog; in FSE_initCState() 434 statePtr->symbolTT = ((const U32 *)ct + 1 + (tableLog ? (1 << (tableLog - 1)) : 1)); in FSE_initCState() 435 statePtr->stateLog = tableLog; in FSE_initCState() 471 U16 tableLog; member [all …]
|
D | huf_decompress.c | 70 BYTE tableLog; member 92 U32 tableLog = 0; in HUF_readDTableX2_wksp() local 115 …iSize = HUF_readStats_wksp(huffWeight, HUF_SYMBOLVALUE_MAX + 1, rankVal, &nbSymbols, &tableLog, sr… in HUF_readDTableX2_wksp() 122 if (tableLog > (U32)(dtd.maxTableLog + 1)) in HUF_readDTableX2_wksp() 125 dtd.tableLog = (BYTE)tableLog; in HUF_readDTableX2_wksp() 132 for (n = 1; n < tableLog + 1; n++) { in HUF_readDTableX2_wksp() 148 D.nbBits = (BYTE)(tableLog + 1 - w); in HUF_readDTableX2_wksp() 207 U32 const dtLog = dtd.tableLog; in HUF_decompress1X2_usingDTable_internal() 283 U32 const dtLog = dtd.tableLog; in HUF_decompress4X2_usingDTable_internal() 484 U32 tableLog, maxW, sizeOfSort, nbSymbols; in HUF_readDTableX4_wksp() local [all …]
|
D | entropy_common.c | 219 U32 const tableLog = BIT_highbit32(weightTotal) + 1; in HUF_readStats_wksp() local 220 if (tableLog > HUF_TABLELOG_MAX) in HUF_readStats_wksp() 222 *tableLogPtr = tableLog; in HUF_readStats_wksp() 225 U32 const total = 1 << tableLog; in HUF_readStats_wksp()
|
D | huf_compress.c | 89 U32 tableLog = MAX_FSE_TABLELOG_FOR_HUFF_HEADER; in HUF_compressWeights_wksp() local 123 tableLog = FSE_optimalTableLog(tableLog, wtSize, maxSymbolValue); in HUF_compressWeights_wksp() 124 CHECK_F(FSE_normalizeCount(norm, tableLog, count, wtSize, maxSymbolValue)); in HUF_compressWeights_wksp() 128 CHECK_V_F(hSize, FSE_writeNCount(op, oend - op, norm, maxSymbolValue, tableLog)); in HUF_compressWeights_wksp() 133 CHECK_F(FSE_buildCTable_wksp(CTable, norm, maxSymbolValue, tableLog, workspace, workspaceSize)); in HUF_compressWeights_wksp() 207 U32 tableLog = 0; in HUF_readCTable_wksp() local 223 …readSize = HUF_readStats_wksp(huffWeight, HUF_SYMBOLVALUE_MAX + 1, rankVal, &nbSymbols, &tableLog,… in HUF_readCTable_wksp() 228 if (tableLog > HUF_TABLELOG_MAX) in HUF_readCTable_wksp() 236 for (n = 1; n <= tableLog; n++) { in HUF_readCTable_wksp() 248 CTable[n].nbBits = (BYTE)(tableLog + 1 - w); in HUF_readCTable_wksp() [all …]
|
D | huf.h | 57 …Size, const void *src, size_t srcSize, unsigned maxSymbolValue, unsigned tableLog, void *workSpace, 144 …Size, const void *src, size_t srcSize, unsigned maxSymbolValue, unsigned tableLog, void *workSpace, 189 …Size, const void *src, size_t srcSize, unsigned maxSymbolValue, unsigned tableLog, void *workSpace, 197 …Size, const void *src, size_t srcSize, unsigned maxSymbolValue, unsigned tableLog, void *workSpace,
|
D | compress.c | 665 const U32 tableLog = FSE_optimalTableLog(LLFSELog, nbSeq, max); in ZSTD_compressSequences_internal() local 670 FSE_normalizeCount(norm, tableLog, count, nbSeq_1, max); in ZSTD_compressSequences_internal() 672 …size_t const NCountSize = FSE_writeNCount(op, oend - op, norm, max, tableLog); /* overflow protect… in ZSTD_compressSequences_internal() 677 FSE_buildCTable_wksp(CTable_LitLength, norm, max, tableLog, workspace, workspaceSize); in ZSTD_compressSequences_internal() 697 const U32 tableLog = FSE_optimalTableLog(OffFSELog, nbSeq, max); in ZSTD_compressSequences_internal() local 702 FSE_normalizeCount(norm, tableLog, count, nbSeq_1, max); in ZSTD_compressSequences_internal() 704 …size_t const NCountSize = FSE_writeNCount(op, oend - op, norm, max, tableLog); /* overflow protect… in ZSTD_compressSequences_internal() 709 FSE_buildCTable_wksp(CTable_OffsetBits, norm, max, tableLog, workspace, workspaceSize); in ZSTD_compressSequences_internal() 729 const U32 tableLog = FSE_optimalTableLog(MLFSELog, nbSeq, max); in ZSTD_compressSequences_internal() local 734 FSE_normalizeCount(norm, tableLog, count, nbSeq_1, max); in ZSTD_compressSequences_internal() [all …]
|
D | decompress.c | 772 U32 tableLog; in ZSTD_buildSeqTable() local 781 size_t const headerSize = FSE_readNCount(norm, &max, &tableLog, src, srcSize); in ZSTD_buildSeqTable() 784 if (tableLog > maxLog) in ZSTD_buildSeqTable() 786 FSE_buildDTable_wksp(DTableSpace, norm, max, tableLog, workspace, workspaceSize); in ZSTD_buildSeqTable()
|