Home
last modified time | relevance | path

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

/linux/lib/zstd/compress/
A Dfse_compress.c141 symbolTT[s].deltaNbBits = ((tableLog+1) << 16) - (1<<tableLog); in FSE_buildCTable_wksp()
146 symbolTT[s].deltaNbBits = (tableLog << 16) - (1<<tableLog); in FSE_buildCTable_wksp()
214 nbBits = tableLog+1; in FSE_writeNCount_generic()
305 if (tableLog > FSE_TABLELOG_ABSOLUTE_MAX) tableLog = FSE_TABLELOG_ABSOLUTE_MAX; in FSE_createCTable()
328 if (tableLog==0) tableLog = FSE_DEFAULT_TABLELOG; in FSE_optimalTableLog_internal()
329 if (maxBitsSrc < tableLog) tableLog = maxBitsSrc; /* Accuracy can be reduced */ in FSE_optimalTableLog_internal()
331 if (tableLog < FSE_MIN_TABLELOG) tableLog = FSE_MIN_TABLELOG; in FSE_optimalTableLog_internal()
332 if (tableLog > FSE_MAX_TABLELOG) tableLog = FSE_MAX_TABLELOG; in FSE_optimalTableLog_internal()
333 return tableLog; in FSE_optimalTableLog_internal()
435 if (tableLog==0) tableLog = FSE_DEFAULT_TABLELOG; in FSE_normalizeCount()
[all …]
A Dzstd_compress_sequences.c75 const U32 tableLog = FSE_optimalTableLog(FSELog, nbSeq, max); in ZSTD_NCountCost() local
76 …FORWARD_IF_ERROR(FSE_normalizeCount(norm, tableLog, count, nbSeq, max, ZSTD_useLowProbCount(nbSeq)… in ZSTD_NCountCost()
77 return FSE_writeNCount(wksp, sizeof(wksp), norm, max, tableLog); in ZSTD_NCountCost()
118 unsigned const tableLog = cstate.stateLog; in ZSTD_fseBitCost() local
119 unsigned const badCost = (tableLog + 1) << kAccuracyLog; in ZSTD_fseBitCost()
120 unsigned const bitCost = FSE_bitCost(cstate.symbolTT, tableLog, s, kAccuracyLog); in ZSTD_fseBitCost()
268 const U32 tableLog = FSE_optimalTableLog(FSELog, nbSeq, max); in ZSTD_buildCTable() local
276 …FORWARD_IF_ERROR(FSE_normalizeCount(wksp->norm, tableLog, count, nbSeq_1, max, ZSTD_useLowProbCoun… in ZSTD_buildCTable()
277 …{ size_t const NCountSize = FSE_writeNCount(op, oend - op, wksp->norm, max, tableLog); /* over… in ZSTD_buildCTable()
279 …FORWARD_IF_ERROR(FSE_buildCTable_wksp(nextCTable, wksp->norm, max, tableLog, wksp->wksp, sizeof(wk… in ZSTD_buildCTable()
A Dhuf_compress.c74 U32 tableLog = MAX_FSE_TABLELOG_FOR_HUFF_HEADER; in HUF_compressWeights() local
88 tableLog = FSE_optimalTableLog(tableLog, wtSize, maxSymbolValue); in HUF_compressWeights()
89 …CHECK_F( FSE_normalizeCount(wksp->norm, tableLog, wksp->count, wtSize, maxSymbolValue, /* useLowPr… in HUF_compressWeights()
92 … CHECK_V_F(hSize, FSE_writeNCount(op, (size_t)(oend-op), wksp->norm, maxSymbolValue, tableLog) ); in HUF_compressWeights()
164 U32 tableLog = 0; in HUF_readCTable() local
168 …e, HUF_readStats(huffWeight, HUF_SYMBOLVALUE_MAX+1, rankVal, &nbSymbols, &tableLog, src, srcSize)); in HUF_readCTable()
172 if (tableLog > HUF_TABLELOG_MAX) return ERROR(tableLog_tooLarge); in HUF_readCTable()
177 for (n=1; n<=tableLog; n++) { in HUF_readCTable()
186 CTable[n].nbBits = (BYTE)(tableLog + 1 - w) & -(w != 0); in HUF_readCTable()
194 valPerRank[tableLog+1] = 0; /* for w==0 */ in HUF_readCTable()
[all …]
/linux/lib/zstd/common/
A Dfse.h244 FSE_PUBLIC_API FSE_DTable* FSE_createDTable(unsigned tableLog);
337 …SE_BUILD_CTABLE_WORKSPACE_SIZE_U32(maxSymbolValue, tableLog) (maxSymbolValue + 2 + (1ull << (table… argument
338 …WORKSPACE_SIZE(maxSymbolValue, tableLog) (sizeof(unsigned) * FSE_BUILD_CTABLE_WORKSPACE_SIZE_U32(m… argument
514 const U32 tableLog = MEM_read16(ptr); in FSE_initCState() local
515 statePtr->value = (ptrdiff_t)1<<tableLog; in FSE_initCState()
517 statePtr->symbolTT = ct + 1 + (tableLog ? (1<<(tableLog-1)) : 1); in FSE_initCState()
518 statePtr->stateLog = tableLog; in FSE_initCState()
572 assert(tableLog < 16); in FSE_bitCost()
574 { U32 const tableSize = 1 << tableLog; in FSE_bitCost()
588 U16 tableLog; member
[all …]
A Dfse_decompress.c60 FSE_DTable* FSE_createDTable (unsigned tableLog) in FSE_createDTable() argument
62 if (tableLog > FSE_TABLELOG_ABSOLUTE_MAX) tableLog = FSE_TABLELOG_ABSOLUTE_MAX; in FSE_createDTable()
79 U32 const tableSize = 1 << tableLog; in FSE_buildDTable_internal()
89 DTableH.tableLog = (U16)tableLog; in FSE_buildDTable_internal()
91 { S16 const largeLimit= (S16)(1 << (tableLog-1)); in FSE_buildDTable_internal()
194 DTableH->tableLog = 0; in FSE_buildDTable_rle()
220 DTableH->tableLog = (U16)nbBits; in FSE_buildDTable_raw()
327 unsigned tableLog; in FSE_decompress_wksp_body() local
338 if (tableLog > maxLog) return ERROR(tableLog_tooLarge); in FSE_decompress_wksp_body()
345 workSpace = wksp->dtable + FSE_DTABLE_SIZE_U32(tableLog); in FSE_decompress_wksp_body()
[all …]
A Dhuf.h85 unsigned maxSymbolValue, unsigned tableLog);
94 unsigned maxSymbolValue, unsigned tableLog,
209 unsigned maxSymbolValue, unsigned tableLog,
304 … dst, size_t dstSize, const void* src, size_t srcSize, unsigned maxSymbolValue, unsigned tableLog);
305 …ize, const void* src, size_t srcSize, unsigned maxSymbolValue, unsigned tableLog, void* workSpace,…
314 unsigned maxSymbolValue, unsigned tableLog,
A Dentropy_common.c304 { U32 const tableLog = BIT_highbit32(weightTotal) + 1; in HUF_readStats_body() local
305 if (tableLog > HUF_TABLELOG_MAX) return ERROR(corruption_detected); in HUF_readStats_body()
306 *tableLogPtr = tableLog; in HUF_readStats_body()
308 { U32 const total = 1 << tableLog; in HUF_readStats_body()
/linux/lib/zstd/decompress/
A Dzstd_decompress_block.c352 DTableH->tableLog = 0; in ZSTD_buildSeqTable_rle()
371 unsigned tableLog, void* wksp, size_t wkspSize) in ZSTD_buildFSETable_body() argument
375 U32 const tableSize = 1 << tableLog; in ZSTD_buildFSETable_body()
384 assert(tableLog <= MaxFSELog); in ZSTD_buildFSETable_body()
389 DTableH.tableLog = tableLog; in ZSTD_buildFSETable_body()
391 { S16 const largeLimit= (S16)(1 << (tableLog-1)); in ZSTD_buildFSETable_body()
562 { unsigned tableLog; in ZSTD_buildSeqTable() local
906 (U32)DStatePtr->state, DTableH->tableLog); in ZSTD_initFseState()
1430 U32 const tableLog = ((const ZSTD_seqSymbol_header*)ptr)[0].tableLog; in ZSTD_getLongOffsetsShare() local
1432 U32 const max = 1 << tableLog; in ZSTD_getLongOffsetsShare()
[all …]
A Dhuf_decompress.c149 U32 tableLog = 0; in HUF_readDTableX1_wksp_bmi2() local
169 dtd.tableLog = (BYTE)tableLog; in HUF_readDTableX1_wksp_bmi2()
190 for (n=0; n<(int)tableLog+1; n++) { in HUF_readDTableX1_wksp_bmi2()
218 for (w=1; w<tableLog+1; ++w) { in HUF_readDTableX1_wksp_bmi2()
338 U32 const dtLog = dtd.tableLog; in HUF_decompress1X1_usingDTable_internal_body()
387 U32 const dtLog = dtd.tableLog; in HUF_decompress4X1_usingDTable_internal_body()
630 U32 tableLog, maxW, sizeOfSort, nbSymbols; in HUF_readDTableX2_wksp() local
691 { U32 const minBits = tableLog+1 - maxW; in HUF_readDTableX2_wksp()
703 tableLog+1, in HUF_readDTableX2_wksp()
706 dtd.tableLog = (BYTE)maxTableLog; in HUF_readDTableX2_wksp()
[all …]
A Dzstd_decompress_block.h58 unsigned tableLog, void* wksp, size_t wkspSize,
A Dzstd_decompress_internal.h64 U32 tableLog; member

Completed in 31 milliseconds