Home
last modified time | relevance | path

Searched refs:tableLog (Results 1 – 11 of 11) sorted by relevance

/linux-6.15/lib/zstd/compress/
H A Dfse_compress.c184 symbolTT[s].deltaNbBits = ((tableLog+1) << 16) - (1<<tableLog); in FSE_buildCTable_wksp()
189 symbolTT[s].deltaNbBits = (tableLog << 16) - (1<<tableLog); in FSE_buildCTable_wksp()
259 nbBits = (int)tableLog+1; in FSE_writeNCount_generic()
361 U32 tableLog = maxTableLog; in FSE_optimalTableLog_internal() local
364 if (tableLog==0) tableLog = FSE_DEFAULT_TABLELOG; in FSE_optimalTableLog_internal()
365 if (maxBitsSrc < tableLog) tableLog = maxBitsSrc; /* Accuracy can be reduced */ in FSE_optimalTableLog_internal()
367 if (tableLog < FSE_MIN_TABLELOG) tableLog = FSE_MIN_TABLELOG; in FSE_optimalTableLog_internal()
368 if (tableLog > FSE_MAX_TABLELOG) tableLog = FSE_MAX_TABLELOG; in FSE_optimalTableLog_internal()
369 return tableLog; in FSE_optimalTableLog_internal()
471 if (tableLog==0) tableLog = FSE_DEFAULT_TABLELOG; in FSE_normalizeCount()
[all …]
H A Dhuf_compress.c154 U32 tableLog = MAX_FSE_TABLELOG_FOR_HUFF_HEADER; in HUF_compressWeights() local
168 tableLog = FSE_optimalTableLog(tableLog, wtSize, maxSymbolValue); in HUF_compressWeights()
233 assert(tableLog < 256); in HUF_writeCTableHeader()
234 header.tableLog = (BYTE)tableLog; in HUF_writeCTableHeader()
294 U32 tableLog = 0; in HUF_readCTable() local
312 for (n=1; n<=tableLog; n++) { in HUF_readCTable()
1049 return ((srcSize * tableLog) >> 3) + 8; in HUF_tightCompressBound()
1058 U32 const tableLog = HUF_readCTableHeader(CTable).tableLog; in HUF_compress1X_usingCTable_internal_body() local
1071 if (dstSize < HUF_tightCompressBound(srcSize, (size_t)tableLog) || tableLog > 11) in HUF_compress1X_usingCTable_internal_body()
1075 switch (tableLog) { in HUF_compress1X_usingCTable_internal_body()
[all …]
H A Dzstd_compress_sequences.c76 const U32 tableLog = FSE_optimalTableLog(FSELog, nbSeq, max); in ZSTD_NCountCost() local
77 …FORWARD_IF_ERROR(FSE_normalizeCount(norm, tableLog, count, nbSeq, max, ZSTD_useLowProbCount(nbSeq)… in ZSTD_NCountCost()
78 return FSE_writeNCount(wksp, sizeof(wksp), norm, max, tableLog); in ZSTD_NCountCost()
121 unsigned const tableLog = cstate.stateLog; in ZSTD_fseBitCost() local
122 unsigned const badCost = (tableLog + 1) << kAccuracyLog; in ZSTD_fseBitCost()
123 unsigned const bitCost = FSE_bitCost(cstate.symbolTT, tableLog, s, kAccuracyLog); in ZSTD_fseBitCost()
271 const U32 tableLog = FSE_optimalTableLog(FSELog, nbSeq, max); in ZSTD_buildCTable() local
279 …FORWARD_IF_ERROR(FSE_normalizeCount(wksp->norm, tableLog, count, nbSeq_1, max, ZSTD_useLowProbCoun… in ZSTD_buildCTable()
281 … NCountSize = FSE_writeNCount(op, (size_t)(oend - op), wksp->norm, max, tableLog); /* overflow p… in ZSTD_buildCTable()
283 …FORWARD_IF_ERROR(FSE_buildCTable_wksp(nextCTable, wksp->norm, max, tableLog, wksp->wksp, sizeof(wk… in ZSTD_buildCTable()
/linux-6.15/lib/zstd/common/
H A Dfse.h101 FSE_PUBLIC_API size_t FSE_normalizeCount(short* normalizedCounter, unsigned tableLog,
115 unsigned maxSymbolValue, unsigned tableLog);
265 …WORKSPACE_SIZE(maxSymbolValue, tableLog) (sizeof(unsigned) * FSE_BUILD_CTABLE_WORKSPACE_SIZE_U32(m… argument
433 const U32 tableLog = MEM_read16(ptr); in FSE_initCState() local
434 statePtr->value = (ptrdiff_t)1<<tableLog; in FSE_initCState()
436 statePtr->symbolTT = ct + 1 + (tableLog ? (1<<(tableLog-1)) : 1); in FSE_initCState()
437 statePtr->stateLog = tableLog; in FSE_initCState()
491 assert(tableLog < 16); in FSE_bitCost()
493 { U32 const tableSize = 1 << tableLog; in FSE_bitCost()
507 U16 tableLog; member
[all …]
H A Dfse_decompress.c67 U32 const tableSize = 1 << tableLog; in FSE_buildDTable_internal()
73 if (tableLog > FSE_MAX_TABLELOG) return ERROR(tableLog_tooLarge); in FSE_buildDTable_internal()
77 DTableH.tableLog = (U16)tableLog; in FSE_buildDTable_internal()
79 { S16 const largeLimit= (S16)(1 << (tableLog-1)); in FSE_buildDTable_internal()
155 tableDecode[u].nbBits = (BYTE) (tableLog - ZSTD_highbit32(nextState) ); in FSE_buildDTable_internal()
252 unsigned tableLog; in FSE_decompress_wksp_body() local
266 FSE_readNCount_bmi2(wksp->ncount, &maxSymbolValue, &tableLog, istart, cSrcSize, bmi2); in FSE_decompress_wksp_body()
268 if (tableLog > maxLog) return ERROR(tableLog_tooLarge); in FSE_decompress_wksp_body()
275 assert(sizeof(*wksp) + FSE_DTABLE_SIZE(tableLog) <= wkspSize); in FSE_decompress_wksp_body()
276 workSpace = (BYTE*)workSpace + sizeof(*wksp) + FSE_DTABLE_SIZE(tableLog); in FSE_decompress_wksp_body()
[all …]
H A Dentropy_common.c288 { U32 const tableLog = ZSTD_highbit32(weightTotal) + 1; in HUF_readStats_body() local
289 if (tableLog > HUF_TABLELOG_MAX) return ERROR(corruption_detected); in HUF_readStats_body()
290 *tableLogPtr = tableLog; in HUF_readStats_body()
292 { U32 const total = 1 << tableLog; in HUF_readStats_body()
H A Dhuf.h154 unsigned maxSymbolValue, unsigned tableLog,
202 BYTE tableLog; member
253 unsigned maxSymbolValue, unsigned tableLog,
/linux-6.15/lib/zstd/decompress/
H A Dhuf_decompress.c351 if (tableLog > targetTableLog) in HUF_rescaleStats()
352 return tableLog; in HUF_rescaleStats()
353 if (tableLog < targetTableLog) { in HUF_rescaleStats()
384 U32 tableLog = 0; in HUF_readDTableX1_wksp() local
405tableLog = HUF_rescaleStats(wksp->huffWeight, wksp->rankVal, nbSymbols, tableLog, targetTableLog); in HUF_readDTableX1_wksp()
408 dtd.tableLog = (BYTE)tableLog; in HUF_readDTableX1_wksp()
455 for (w=1; w<tableLog+1; ++w) { in HUF_readDTableX1_wksp()
583 U32 const dtLog = dtd.tableLog; in HUF_decompress1X1_usingDTable_internal_body()
1010 U32 nbBits, U32 tableLog, in HUF_fillDTableX2ForWeight() argument
1180 U32 tableLog, maxW, nbSymbols; in HUF_readDTableX2_wksp() local
[all …]
H A Dzstd_decompress_block.c470 DTableH->tableLog = 0; in ZSTD_buildSeqTable_rle()
489 unsigned tableLog, void* wksp, size_t wkspSize) in ZSTD_buildFSETable_body() argument
493 U32 const tableSize = 1 << tableLog; in ZSTD_buildFSETable_body()
502 assert(tableLog <= MaxFSELog); in ZSTD_buildFSETable_body()
507 DTableH.tableLog = tableLog; in ZSTD_buildFSETable_body()
509 { S16 const largeLimit= (S16)(1 << (tableLog-1)); in ZSTD_buildFSETable_body()
681 { unsigned tableLog; in ZSTD_buildSeqTable() local
1199 (U32)DStatePtr->state, DTableH->tableLog); in ZSTD_initFseState()
2022 U32 const tableLog = ((const ZSTD_seqSymbol_header*)ptr)[0].tableLog; in ZSTD_getOffsetInfo() local
2024 U32 const max = 1 << tableLog; in ZSTD_getOffsetInfo()
[all …]
H A Dzstd_decompress_block.h65 unsigned tableLog, void* wksp, size_t wkspSize,
H A Dzstd_decompress_internal.h65 U32 tableLog; member