Home
last modified time | relevance | path

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

12

/freebsd/sys/contrib/openzfs/module/zstd/lib/compress/
H A Dfse_compress.c67 const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog, in FSE_buildCTable_wksp() argument
70 U32 const tableSize = 1 << tableLog; in FSE_buildCTable_wksp()
74 void* const FSCT = ((U32*)ptr) + 1 /* header */ + (tableLog ? tableSize>>1 : 1) ; in FSE_buildCTable_wksp()
83 …if (((size_t)1 << tableLog) * sizeof(FSE_FUNCTION_TYPE) > wkspSize) return ERROR(tableLog_tooLarge… in FSE_buildCTable_wksp()
84 tableU16[-2] = (U16) tableLog; in FSE_buildCTable_wksp()
86 assert(tableLog < 16); /* required for threshold strategy to work */ in FSE_buildCTable_wksp()
138 symbolTT[s].deltaNbBits = ((tableLog+1) << 16) - (1<<tableLog); in FSE_buildCTable_wksp()
143 symbolTT[s].deltaNbBits = (tableLog << 16) - (1<<tableLog); in FSE_buildCTable_wksp()
149 U32 const maxBitsOut = tableLog - BIT_highbit32 (normalizedCounter[s]-1); in FSE_buildCTable_wksp()
163 (double)FSE_bitCost(symbolTT, tableLog, symbol, 8) / 256); in FSE_buildCTable_wksp()
[all …]
H A Dzstd_compress_sequences.c62 const U32 tableLog = FSE_optimalTableLog(FSELog, nbSeq, max); in ZSTD_NCountCost() local
63 FORWARD_IF_ERROR(FSE_normalizeCount(norm, tableLog, count, nbSeq, max), ""); in ZSTD_NCountCost()
64 return FSE_writeNCount(wksp, sizeof(wksp), norm, max, tableLog); in ZSTD_NCountCost()
105 unsigned const tableLog = cstate.stateLog; in ZSTD_fseBitCost() local
106 unsigned const badCost = (tableLog + 1) << kAccuracyLog; in ZSTD_fseBitCost()
107 unsigned const bitCost = FSE_bitCost(cstate.symbolTT, tableLog, s, kAccuracyLog); in ZSTD_fseBitCost()
250 const U32 tableLog = FSE_optimalTableLog(FSELog, nbSeq, max); in ZSTD_buildCTable() local
256 FORWARD_IF_ERROR(FSE_normalizeCount(norm, tableLog, count, nbSeq_1, max), ""); in ZSTD_buildCTable()
257 …{ size_t const NCountSize = FSE_writeNCount(op, oend - op, norm, max, tableLog); /* overflow p… in ZSTD_buildCTable()
259 …FORWARD_IF_ERROR(FSE_buildCTable_wksp(nextCTable, norm, max, tableLog, entropyWorkspace, entropyWo… in ZSTD_buildCTable()
H A Dhuf_compress.c70 U32 tableLog = MAX_FSE_TABLELOG_FOR_HUFF_HEADER; in HUF_compressWeights() local
87 tableLog = FSE_optimalTableLog(tableLog, wtSize, maxSymbolValue); in HUF_compressWeights()
88 CHECK_F( FSE_normalizeCount(norm, tableLog, count, wtSize, maxSymbolValue) ); in HUF_compressWeights()
91 { CHECK_V_F(hSize, FSE_writeNCount(op, (size_t)(oend-op), norm, maxSymbolValue, tableLog) ); in HUF_compressWeights()
96 …CHECK_F( FSE_buildCTable_wksp(CTable, norm, maxSymbolValue, tableLog, scratchBuffer, sizeof(scratc… in HUF_compressWeights()
154 U32 tableLog = 0; in HUF_readCTable() local
158 …e, HUF_readStats(huffWeight, HUF_SYMBOLVALUE_MAX+1, rankVal, &nbSymbols, &tableLog, src, srcSize)); in HUF_readCTable()
161 if (tableLog > HUF_TABLELOG_MAX) return ERROR(tableLog_tooLarge); in HUF_readCTable()
166 for (n=1; n<=tableLog; n++) { in HUF_readCTable()
177 CTable[n].nbBits = (BYTE)(tableLog + 1 - w) & -(w != 0); in HUF_readCTable()
[all …]
/freebsd/sys/contrib/zstd/lib/compress/
H A Dfse_compress.c68 const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog, in FSE_buildCTable_wksp() argument
71 U32 const tableSize = 1 << tableLog; in FSE_buildCTable_wksp()
75 void* const FSCT = ((U32*)ptr) + 1 /* header */ + (tableLog ? tableSize>>1 : 1) ; in FSE_buildCTable_wksp()
86 …if (FSE_BUILD_CTABLE_WORKSPACE_SIZE(maxSymbolValue, tableLog) > wkspSize) return ERROR(tableLog_to… in FSE_buildCTable_wksp()
88 tableU16[-2] = (U16) tableLog; in FSE_buildCTable_wksp()
90 assert(tableLog < 16); /* required for threshold strategy to work */ in FSE_buildCTable_wksp()
182 symbolTT[s].deltaNbBits = ((tableLog+1) << 16) - (1<<tableLog); in FSE_buildCTable_wksp()
187 symbolTT[s].deltaNbBits = (tableLog << 16) - (1<<tableLog); in FSE_buildCTable_wksp()
194 { U32 const maxBitsOut = tableLog - BIT_highbit32 ((U32)normalizedCounter[s]-1); in FSE_buildCTable_wksp()
208 (double)FSE_bitCost(symbolTT, tableLog, symbol, 8) / 256); in FSE_buildCTable_wksp()
[all …]
H 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()
120 unsigned const tableLog = cstate.stateLog; in ZSTD_fseBitCost() local
121 unsigned const badCost = (tableLog + 1) << kAccuracyLog; in ZSTD_fseBitCost()
122 unsigned const bitCost = FSE_bitCost(cstate.symbolTT, tableLog, s, kAccuracyLog); in ZSTD_fseBitCost()
270 const U32 tableLog = FSE_optimalTableLog(FSELog, nbSeq, max); in ZSTD_buildCTable() local
278 …FORWARD_IF_ERROR(FSE_normalizeCount(wksp->norm, tableLog, count, nbSeq_1, max, ZSTD_useLowProbCoun… in ZSTD_buildCTable()
280 … NCountSize = FSE_writeNCount(op, (size_t)(oend - op), wksp->norm, max, tableLog); /* overflow p… in ZSTD_buildCTable()
282 …FORWARD_IF_ERROR(FSE_buildCTable_wksp(nextCTable, wksp->norm, max, tableLog, wksp->wksp, sizeof(wk… in ZSTD_buildCTable()
H A Dhuf_compress.c99 U32 tableLog = MAX_FSE_TABLELOG_FOR_HUFF_HEADER; in HUF_compressWeights() local
113 tableLog = FSE_optimalTableLog(tableLog, wtSize, maxSymbolValue); in HUF_compressWeights()
114 …CHECK_F( FSE_normalizeCount(wksp->norm, tableLog, wksp->count, wtSize, maxSymbolValue, /* useLowPr… in HUF_compressWeights()
117 … CHECK_V_F(hSize, FSE_writeNCount(op, (size_t)(oend-op), wksp->norm, maxSymbolValue, tableLog) ); in HUF_compressWeights()
122 …CHECK_F( FSE_buildCTable_wksp(wksp->CTable, wksp->norm, maxSymbolValue, tableLog, wksp->scratchBuf… in HUF_compressWeights()
225 U32 tableLog = 0; in HUF_readCTable() local
230 …e, HUF_readStats(huffWeight, HUF_SYMBOLVALUE_MAX+1, rankVal, &nbSymbols, &tableLog, src, srcSize)); in HUF_readCTable()
234 if (tableLog > HUF_TABLELOG_MAX) return ERROR(tableLog_tooLarge); in HUF_readCTable()
237 CTable[0] = tableLog; in HUF_readCTable()
241 for (n=1; n<=tableLog; n++) { in HUF_readCTable()
[all …]
/freebsd/sys/contrib/zstd/lib/common/
H A Dfse.h105 … dst, size_t dstSize, const void* src, size_t srcSize, unsigned maxSymbolValue, unsigned tableLog);
148 FSE_PUBLIC_API size_t FSE_normalizeCount(short* normalizedCounter, unsigned tableLog,
154 FSE_PUBLIC_API size_t FSE_NCountWriteBound(unsigned maxSymbolValue, unsigned tableLog);
162 unsigned maxSymbolValue, unsigned tableLog);
167 FSE_PUBLIC_API FSE_CTable* FSE_createCTable (unsigned maxSymbolValue, unsigned tableLog);
173 …CTable(FSE_CTable* ct, const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog);
247 FSE_PUBLIC_API FSE_DTable* FSE_createDTable(unsigned tableLog);
253 …Table (FSE_DTable* dt, const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog);
328 …ize, const void* src, size_t srcSize, unsigned maxSymbolValue, unsigned tableLog, void* workSpace,…
341 …E_BUILD_CTABLE_WORKSPACE_SIZE_U32(maxSymbolValue, tableLog) (((maxSymbolValue + 2) + (1ull << (tab… argument
[all …]
H 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()
63 return (FSE_DTable*)ZSTD_malloc( FSE_DTABLE_SIZE_U32(tableLog) * sizeof (U32) ); in FSE_createDTable()
71 …* dt, const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog, void* workSpace,… in FSE_buildDTable_internal() argument
79 U32 const tableSize = 1 << tableLog; in FSE_buildDTable_internal()
83 …if (FSE_BUILD_DTABLE_WKSP_SIZE(tableLog, maxSymbolValue) > wkspSize) return ERROR(maxSymbolValue_t… in FSE_buildDTable_internal()
85 if (tableLog > FSE_MAX_TABLELOG) return ERROR(tableLog_tooLarge); 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()
169 tableDecode[u].nbBits = (BYTE) (tableLog - BIT_highbit32(nextState) ); in FSE_buildDTable_internal()
[all …]
H A Dhuf.h88 unsigned maxSymbolValue, unsigned tableLog);
97 unsigned maxSymbolValue, unsigned tableLog,
210 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,…
316 unsigned maxSymbolValue, unsigned tableLog,
H A Dentropy_common.c315 { U32 const tableLog = BIT_highbit32(weightTotal) + 1; in HUF_readStats_body() local
316 if (tableLog > HUF_TABLELOG_MAX) return ERROR(corruption_detected); in HUF_readStats_body()
317 *tableLogPtr = tableLog; in HUF_readStats_body()
319 { U32 const total = 1 << tableLog; in HUF_readStats_body()
/freebsd/sys/contrib/openzfs/module/zstd/lib/common/
H A Dfse.h105 … dst, size_t dstSize, const void* src, size_t srcSize, unsigned maxSymbolValue, unsigned tableLog);
142 FSE_PUBLIC_API size_t FSE_normalizeCount(short* normalizedCounter, unsigned tableLog,
148 FSE_PUBLIC_API size_t FSE_NCountWriteBound(unsigned maxSymbolValue, unsigned tableLog);
156 unsigned maxSymbolValue, unsigned tableLog);
161 FSE_PUBLIC_API FSE_CTable* FSE_createCTable (unsigned maxSymbolValue, unsigned tableLog);
167 …CTable(FSE_CTable* ct, const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog);
234 FSE_PUBLIC_API FSE_DTable* FSE_createDTable(unsigned tableLog);
240 …Table (FSE_DTable* dt, const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog);
315 …ize, const void* src, size_t srcSize, unsigned maxSymbolValue, unsigned tableLog, void* workSpace,…
327 …* ct, const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog, void* workSpace,…
[all …]
H A Dfse_decompress.c59 …dDTable(FSE_DTable* dt, const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog) in FSE_buildDTable() argument
66 U32 const tableSize = 1 << tableLog; in FSE_buildDTable()
71 if (tableLog > FSE_MAX_TABLELOG) return ERROR(tableLog_tooLarge); in FSE_buildDTable()
75 DTableH.tableLog = (U16)tableLog; in FSE_buildDTable()
77 { S16 const largeLimit= (S16)(1 << (tableLog-1)); in FSE_buildDTable()
109 tableDecode[u].nbBits = (BYTE) (tableLog - BIT_highbit32(nextState) ); in FSE_buildDTable()
129 DTableH->tableLog = 0; in FSE_buildDTable_rle()
155 DTableH->tableLog = (U16)nbBits; in FSE_buildDTable_raw()
248 unsigned tableLog; in FSE_decompress_wksp() local
252 …size_t const NCountLength = FSE_readNCount (counting, &maxSymbolValue, &tableLog, istart, cSrcSize… in FSE_decompress_wksp()
[all …]
H A Dhuf.h88 unsigned maxSymbolValue, unsigned tableLog);
97 unsigned maxSymbolValue, unsigned tableLog,
206 unsigned maxSymbolValue, unsigned tableLog,
288 … dst, size_t dstSize, const void* src, size_t srcSize, unsigned maxSymbolValue, unsigned tableLog);
289 …ize, const void* src, size_t srcSize, unsigned maxSymbolValue, unsigned tableLog, void* workSpace,…
298 unsigned maxSymbolValue, unsigned tableLog,
H A Dentropy_common.c197 { U32 const tableLog = BIT_highbit32(weightTotal) + 1; in HUF_readStats() local
198 if (tableLog > HUF_TABLELOG_MAX) return ERROR(corruption_detected); in HUF_readStats()
199 *tableLogPtr = tableLog; in HUF_readStats()
201 { U32 const total = 1 << tableLog; in HUF_readStats()
/freebsd/sys/contrib/zstd/lib/decompress/
H A Dhuf_decompress.c132 typedef struct { BYTE maxTableLog; BYTE tableType; BYTE tableLog; BYTE reserved; } DTableDesc; member
169 U32 const dtLog = HUF_getDTableDesc(DTable).tableLog; in HUF_DecompressAsmArgs_init()
303 static U32 HUF_rescaleStats(BYTE* huffWeight, U32* rankVal, U32 nbSymbols, U32 tableLog, U32 target… in HUF_rescaleStats() argument
305 if (tableLog > targetTableLog) in HUF_rescaleStats()
306 return tableLog; in HUF_rescaleStats()
307 if (tableLog < targetTableLog) { in HUF_rescaleStats()
308 U32 const scale = targetTableLog - tableLog; in HUF_rescaleStats()
344 U32 tableLog = 0; in HUF_readDTableX1_wksp_bmi2() local
357 …(wksp->huffWeight, HUF_SYMBOLVALUE_MAX + 1, wksp->rankVal, &nbSymbols, &tableLog, src, srcSize, wk… in HUF_readDTableX1_wksp_bmi2()
365tableLog = HUF_rescaleStats(wksp->huffWeight, wksp->rankVal, nbSymbols, tableLog, targetTableLog); in HUF_readDTableX1_wksp_bmi2()
[all …]
H A Dzstd_decompress_block.c428 DTableH->tableLog = 0; in ZSTD_buildSeqTable_rle()
447 unsigned tableLog, void* wksp, size_t wkspSize) in ZSTD_buildFSETable_body() argument
451 U32 const tableSize = 1 << tableLog; in ZSTD_buildFSETable_body()
460 assert(tableLog <= MaxFSELog); in ZSTD_buildFSETable_body()
465 DTableH.tableLog = tableLog; in ZSTD_buildFSETable_body()
467 { S16 const largeLimit= (S16)(1 << (tableLog-1)); in ZSTD_buildFSETable_body()
554 tableDecode[u].nbBits = (BYTE) (tableLog - BIT_highbit32(nextState) ); in ZSTD_buildFSETable_body()
567 unsigned tableLog, void* wksp, size_t wkspSize) in ZSTD_buildFSETable_body_default() argument
570 baseValue, nbAdditionalBits, tableLog, wksp, wkspSize); in ZSTD_buildFSETable_body_default()
577 unsigned tableLog, void* wksp, size_t wkspSize) in ZSTD_buildFSETable_body_bmi2() argument
[all …]
/freebsd/sys/contrib/zstd/lib/legacy/
H A Dzstd_v02.c700 U16 tableLog; member
715 DStatePtr->state = BIT_readBits(bitD, DTableH.tableLog); in FSE_initDState()
1096 (FSE_DTable* dt, const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog) in FSE_buildDTable() argument
1101 const U32 tableSize = 1 << tableLog; in FSE_buildDTable()
1107 const S16 largeLimit= (S16)(1 << (tableLog-1)); in FSE_buildDTable()
1113 if (tableLog > FSE_MAX_TABLELOG) return ERROR(tableLog_tooLarge); in FSE_buildDTable()
1116 DTableH.tableLog = (U16)tableLog; in FSE_buildDTable()
1152 tableDecode[i].nbBits = (BYTE) (tableLog - BIT_highbit32 ((U32)nextState) ); in FSE_buildDTable()
1300 DTableH->tableLog = 0; in FSE_buildDTable_rle()
1325 DTableH->tableLog = (U16)nbBits; in FSE_buildDTable_raw()
[all …]
H A Dzstd_v03.c702 U16 tableLog; member
717 DStatePtr->state = BIT_readBits(bitD, DTableH.tableLog); in FSE_initDState()
1097 (FSE_DTable* dt, const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog) in FSE_buildDTable() argument
1102 const U32 tableSize = 1 << tableLog; in FSE_buildDTable()
1108 const S16 largeLimit= (S16)(1 << (tableLog-1)); in FSE_buildDTable()
1114 if (tableLog > FSE_MAX_TABLELOG) return ERROR(tableLog_tooLarge); in FSE_buildDTable()
1117 DTableH.tableLog = (U16)tableLog; in FSE_buildDTable()
1153 tableDecode[i].nbBits = (BYTE) (tableLog - BIT_highbit32 ((U32)nextState) ); in FSE_buildDTable()
1301 DTableH->tableLog = 0; in FSE_buildDTable_rle()
1326 DTableH->tableLog = (U16)nbBits; in FSE_buildDTable_raw()
[all …]
H A Dzstd_v07.c760 FSEv07_DTable* FSEv07_createDTable(unsigned tableLog);
766 …le (FSEv07_DTable* dt, const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog);
861 U16 tableLog; member
876 DStatePtr->state = BITv07_readBits(bitD, DTableH->tableLog); in FSEv07_initDState()
1354 { U32 const tableLog = BITv07_highbit32(weightTotal) + 1; in HUFv07_readStats() local
1355 if (tableLog > HUFv07_TABLELOG_ABSOLUTEMAX) return ERROR(corruption_detected); in HUFv07_readStats()
1356 *tableLogPtr = tableLog; in HUFv07_readStats()
1358 { U32 const total = 1 << tableLog; in HUFv07_readStats()
1467 FSEv07_DTable* FSEv07_createDTable (unsigned tableLog) in FSEv07_createDTable() argument
1469 if (tableLog > FSEv07_TABLELOG_ABSOLUTE_MAX) tableLog = FSEv07_TABLELOG_ABSOLUTE_MAX; in FSEv07_createDTable()
[all …]
H A Dzstd_v06.c715 FSEv06_DTable* FSEv06_createDTable(unsigned tableLog);
721 …le (FSEv06_DTable* dt, const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog);
1097 U16 tableLog; member
1112 DStatePtr->state = BITv06_readBits(bitD, DTableH->tableLog); in FSEv06_initDState()
1447 FSEv06_DTable* FSEv06_createDTable (unsigned tableLog) in FSEv06_createDTable() argument
1449 if (tableLog > FSEv06_TABLELOG_ABSOLUTE_MAX) tableLog = FSEv06_TABLELOG_ABSOLUTE_MAX; in FSEv06_createDTable()
1450 return (FSEv06_DTable*)malloc( FSEv06_DTABLE_SIZE_U32(tableLog) * sizeof (U32) ); in FSEv06_createDTable()
1458 …able(FSEv06_DTable* dt, const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog) in FSEv06_buildDTable() argument
1465 U32 const tableSize = 1 << tableLog; in FSEv06_buildDTable()
1470 if (tableLog > FSEv06_MAX_TABLELOG) return ERROR(tableLog_tooLarge); in FSEv06_buildDTable()
[all …]
H A Dzstd_v04.c493 …able ( FSE_DTable* dt, const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog);
875 U16 tableLog; member
890 DStatePtr->state = BIT_readBits(bitD, DTableH.tableLog); in FSE_initDState()
1073 …dDTable(FSE_DTable* dt, const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog) in FSE_buildDTable() argument
1078 const U32 tableSize = 1 << tableLog; in FSE_buildDTable()
1084 const S16 largeLimit= (S16)(1 << (tableLog-1)); in FSE_buildDTable()
1090 if (tableLog > FSE_MAX_TABLELOG) return ERROR(tableLog_tooLarge); in FSE_buildDTable()
1094 DTableH.tableLog = (U16)tableLog; in FSE_buildDTable()
1130 tableDecode[i].nbBits = (BYTE) (tableLog - BIT_highbit32 ((U32)nextState) ); in FSE_buildDTable()
1279 DTableH->tableLog = 0; in FSE_buildDTable_rle()
[all …]
H A Dzstd_v05.c644 FSEv05_DTable* FSEv05_createDTable(unsigned tableLog);
652 …le (FSEv05_DTable* dt, const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog);
991 U16 tableLog; member
1006 DStatePtr->state = BITv05_readBits(bitD, DTableH->tableLog); in FSEv05_initDState()
1198 FSEv05_DTable* FSEv05_createDTable (unsigned tableLog) in FSEv05_createDTable() argument
1200 if (tableLog > FSEv05_TABLELOG_ABSOLUTE_MAX) tableLog = FSEv05_TABLELOG_ABSOLUTE_MAX; in FSEv05_createDTable()
1201 return (FSEv05_DTable*)malloc( FSEv05_DTABLE_SIZE_U32(tableLog) * sizeof (U32) ); in FSEv05_createDTable()
1209 …able(FSEv05_DTable* dt, const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog) in FSEv05_buildDTable() argument
1214 const U32 tableSize = 1 << tableLog; in FSEv05_buildDTable()
1220 const S16 largeLimit= (S16)(1 << (tableLog-1)); in FSEv05_buildDTable()
[all …]
H A Dzstd_v01.c391 U16 tableLog; member
396 (FSE_DTable* dt, const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog) in FSE_buildDTable() argument
401 const U32 tableSize = 1 << tableLog; in FSE_buildDTable()
407 const S16 largeLimit= (S16)(1 << (tableLog-1)); in FSE_buildDTable()
413 if (tableLog > FSE_MAX_TABLELOG) return (size_t)-FSE_ERROR_tableLog_tooLarge; in FSE_buildDTable()
416 DTableH[0].tableLog = (U16)tableLog; in FSE_buildDTable()
452 tableDecode[i].nbBits = (BYTE) (tableLog - FSE_highbit32 ((U32)nextState) ); in FSE_buildDTable()
600 DTableH->tableLog = 0; in FSE_buildDTable_rle()
625 DTableH->tableLog = (U16)nbBits; in FSE_buildDTable_raw()
773 DStatePtr->state = FSE_readBits(bitD, DTableH->tableLog); in FSE_initDState()
[all …]
/freebsd/sys/contrib/openzfs/module/zstd/lib/decompress/
H A Dzstd_decompress_block.c352 DTableH->tableLog = 0; in ZSTD_buildSeqTable_rle()
371 unsigned tableLog) in ZSTD_buildFSETable() argument
377 U32 const tableSize = 1 << tableLog; in ZSTD_buildFSETable()
382 assert(tableLog <= MaxFSELog); in ZSTD_buildFSETable()
386 DTableH.tableLog = tableLog; in ZSTD_buildFSETable()
388 { S16 const largeLimit= (S16)(1 << (tableLog-1)); in ZSTD_buildFSETable()
421 tableDecode[u].nbBits = (BYTE) (tableLog - BIT_highbit32(nextState) ); in ZSTD_buildFSETable()
465 { unsigned tableLog; in ZSTD_buildSeqTable() local
467 size_t const headerSize = FSE_readNCount(norm, &max, &tableLog, src, srcSize); in ZSTD_buildSeqTable()
469 RETURN_ERROR_IF(tableLog > maxLog, corruption_detected, ""); in ZSTD_buildSeqTable()
[all …]
H A Dhuf_decompress.c101 typedef struct { BYTE maxTableLog; BYTE tableType; BYTE tableLog; BYTE reserved; } DTableDesc; member
120 U32 tableLog = 0; in HUF_readDTableX1_wksp() local
140 …iSize = HUF_readStats(huffWeight, HUF_SYMBOLVALUE_MAX + 1, rankVal, &nbSymbols, &tableLog, src, sr… in HUF_readDTableX1_wksp()
145 …if (tableLog > (U32)(dtd.maxTableLog+1)) return ERROR(tableLog_tooLarge); /* DTable too small, H… in HUF_readDTableX1_wksp()
147 dtd.tableLog = (BYTE)tableLog; in HUF_readDTableX1_wksp()
153 for (n=1; n<tableLog+1; n++) { in HUF_readDTableX1_wksp()
170 D.nbBits = (BYTE)(tableLog + 1 - w); in HUF_readDTableX1_wksp()
251 U32 const dtLog = dtd.tableLog; in HUF_decompress1X1_usingDTable_internal_body()
300 U32 const dtLog = dtd.tableLog; in HUF_decompress4X1_usingDTable_internal_body()
555 U32 tableLog, maxW, sizeOfSort, nbSymbols; in HUF_readDTableX2_wksp() local
[all …]

12