| /freebsd/sys/contrib/openzfs/module/zstd/lib/compress/ |
| H A D | fse_compress.c | 70 const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog, in FSE_buildCTable_wksp() argument 73 U32 const tableSize = 1 << tableLog; in FSE_buildCTable_wksp() 77 void* const FSCT = ((U32*)ptr) + 1 /* header */ + (tableLog ? tableSize>>1 : 1) ; in FSE_buildCTable_wksp() 88 …if (FSE_BUILD_CTABLE_WORKSPACE_SIZE(maxSymbolValue, tableLog) > wkspSize) return ERROR(tableLog_to… in FSE_buildCTable_wksp() 90 tableU16[-2] = (U16) tableLog; in FSE_buildCTable_wksp() 92 assert(tableLog < 16); /* required for threshold strategy to work */ in FSE_buildCTable_wksp() 184 symbolTT[s].deltaNbBits = ((tableLog+1) << 16) - (1<<tableLog); in FSE_buildCTable_wksp() 189 symbolTT[s].deltaNbBits = (tableLog << 16) - (1<<tableLog); in FSE_buildCTable_wksp() 196 { U32 const maxBitsOut = tableLog - ZSTD_highbit32 ((U32)normalizedCounter[s]-1); in FSE_buildCTable_wksp() 210 (double)FSE_bitCost(symbolTT, tableLog, symbol, 8) / 256); in FSE_buildCTable_wksp() [all …]
|
| H A D | huf_compress.c | 157 U32 tableLog = MAX_FSE_TABLELOG_FOR_HUFF_HEADER; in HUF_compressWeights() local 171 tableLog = FSE_optimalTableLog(tableLog, wtSize, maxSymbolValue); in HUF_compressWeights() 172 …CHECK_F( FSE_normalizeCount(wksp->norm, tableLog, wksp->count, wtSize, maxSymbolValue, /* useLowPr… in HUF_compressWeights() 175 … CHECK_V_F(hSize, FSE_writeNCount(op, (size_t)(oend-op), wksp->norm, maxSymbolValue, tableLog) ); in HUF_compressWeights() 180 …CHECK_F( FSE_buildCTable_wksp(wksp->CTable, wksp->norm, maxSymbolValue, tableLog, wksp->scratchBuf… in HUF_compressWeights() 231 static void HUF_writeCTableHeader(HUF_CElt* ctable, U32 tableLog, U32 maxSymbolValue) in HUF_writeCTableHeader() argument 236 assert(tableLog < 256); in HUF_writeCTableHeader() 237 header.tableLog = (BYTE)tableLog; in HUF_writeCTableHeader() 261 assert(HUF_readCTableHeader(CTable).tableLog == huffLog); in HUF_writeCTable_wksp() 297 U32 tableLog = 0; in HUF_readCTable() local [all …]
|
| H A D | zstd_compress_sequences.c | 76 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()
|
| /freebsd/sys/contrib/zstd/lib/compress/ |
| H A D | fse_compress.c | 69 const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog, in FSE_buildCTable_wksp() argument 72 U32 const tableSize = 1 << tableLog; in FSE_buildCTable_wksp() 76 void* const FSCT = ((U32*)ptr) + 1 /* header */ + (tableLog ? tableSize>>1 : 1) ; in FSE_buildCTable_wksp() 87 …if (FSE_BUILD_CTABLE_WORKSPACE_SIZE(maxSymbolValue, tableLog) > wkspSize) return ERROR(tableLog_to… in FSE_buildCTable_wksp() 89 tableU16[-2] = (U16) tableLog; in FSE_buildCTable_wksp() 91 assert(tableLog < 16); /* required for threshold strategy to work */ in FSE_buildCTable_wksp() 183 symbolTT[s].deltaNbBits = ((tableLog+1) << 16) - (1<<tableLog); in FSE_buildCTable_wksp() 188 symbolTT[s].deltaNbBits = (tableLog << 16) - (1<<tableLog); in FSE_buildCTable_wksp() 195 { U32 const maxBitsOut = tableLog - ZSTD_highbit32 ((U32)normalizedCounter[s]-1); in FSE_buildCTable_wksp() 209 (double)FSE_bitCost(symbolTT, tableLog, symbol, 8) / 256); in FSE_buildCTable_wksp() [all …]
|
| H A D | huf_compress.c | 156 U32 tableLog = MAX_FSE_TABLELOG_FOR_HUFF_HEADER; in HUF_compressWeights() local 170 tableLog = FSE_optimalTableLog(tableLog, wtSize, maxSymbolValue); in HUF_compressWeights() 171 …CHECK_F( FSE_normalizeCount(wksp->norm, tableLog, wksp->count, wtSize, maxSymbolValue, /* useLowPr… in HUF_compressWeights() 174 … CHECK_V_F(hSize, FSE_writeNCount(op, (size_t)(oend-op), wksp->norm, maxSymbolValue, tableLog) ); in HUF_compressWeights() 179 …CHECK_F( FSE_buildCTable_wksp(wksp->CTable, wksp->norm, maxSymbolValue, tableLog, wksp->scratchBuf… in HUF_compressWeights() 230 static void HUF_writeCTableHeader(HUF_CElt* ctable, U32 tableLog, U32 maxSymbolValue) in HUF_writeCTableHeader() argument 235 assert(tableLog < 256); in HUF_writeCTableHeader() 236 header.tableLog = (BYTE)tableLog; in HUF_writeCTableHeader() 260 assert(HUF_readCTableHeader(CTable).tableLog == huffLog); in HUF_writeCTable_wksp() 296 U32 tableLog = 0; in HUF_readCTable() local [all …]
|
| H A D | zstd_compress_sequences.c | 75 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()
|
| /freebsd/sys/contrib/openzfs/module/zstd/lib/common/ |
| H A D | fse.h | 101 FSE_PUBLIC_API size_t FSE_normalizeCount(short* normalizedCounter, unsigned tableLog, 107 FSE_PUBLIC_API size_t FSE_NCountWriteBound(unsigned maxSymbolValue, unsigned tableLog); 115 unsigned maxSymbolValue, unsigned tableLog); 124 …CTable(FSE_CTable* ct, const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog); 264 …E_BUILD_CTABLE_WORKSPACE_SIZE_U32(maxSymbolValue, tableLog) (((maxSymbolValue + 2) + (1ull << (tab… argument 265 …WORKSPACE_SIZE(maxSymbolValue, tableLog) (sizeof(unsigned) * FSE_BUILD_CTABLE_WORKSPACE_SIZE_U32(m… argument 266 …* ct, const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog, void* workSpace,… 270 …* dt, const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog, void* workSpace,… 433 const U32 tableLog = MEM_read16(ptr); in FSE_initCState() local 434 statePtr->value = (ptrdiff_t)1<<tableLog; in FSE_initCState() [all …]
|
| H A D | fse_decompress.c | 59 …* dt, const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog, void* workSpace,… in FSE_buildDTable_internal() argument 67 U32 const tableSize = 1 << tableLog; in FSE_buildDTable_internal() 71 …if (FSE_BUILD_DTABLE_WKSP_SIZE(tableLog, maxSymbolValue) > wkspSize) return ERROR(maxSymbolValue_t… 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() 162 …* dt, const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog, void* workSpace,… in FSE_buildDTable_wksp() argument 164 …return FSE_buildDTable_internal(dt, normalizedCounter, maxSymbolValue, tableLog, workSpace, wkspSi… in FSE_buildDTable_wksp() 252 unsigned tableLog; in FSE_decompress_wksp_body() local [all …]
|
| H A D | entropy_common.c | 288 { 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 D | huf.h | 154 unsigned maxSymbolValue, unsigned tableLog, 202 BYTE tableLog; member 253 unsigned maxSymbolValue, unsigned tableLog,
|
| /freebsd/sys/contrib/zstd/lib/common/ |
| H A D | fse.h | 100 FSE_PUBLIC_API size_t FSE_normalizeCount(short* normalizedCounter, unsigned tableLog, 106 FSE_PUBLIC_API size_t FSE_NCountWriteBound(unsigned maxSymbolValue, unsigned tableLog); 114 unsigned maxSymbolValue, unsigned tableLog); 123 …CTable(FSE_CTable* ct, const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog); 263 …E_BUILD_CTABLE_WORKSPACE_SIZE_U32(maxSymbolValue, tableLog) (((maxSymbolValue + 2) + (1ull << (tab… argument 264 …WORKSPACE_SIZE(maxSymbolValue, tableLog) (sizeof(unsigned) * FSE_BUILD_CTABLE_WORKSPACE_SIZE_U32(m… argument 265 …* ct, const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog, void* workSpace,… 269 …* dt, const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog, void* workSpace,… 432 const U32 tableLog = MEM_read16(ptr); in FSE_initCState() local 433 statePtr->value = (ptrdiff_t)1<<tableLog; in FSE_initCState() [all …]
|
| H A D | fse_decompress.c | 58 …* dt, const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog, void* workSpace,… in FSE_buildDTable_internal() argument 66 U32 const tableSize = 1 << tableLog; in FSE_buildDTable_internal() 70 …if (FSE_BUILD_DTABLE_WKSP_SIZE(tableLog, maxSymbolValue) > wkspSize) return ERROR(maxSymbolValue_t… in FSE_buildDTable_internal() 72 if (tableLog > FSE_MAX_TABLELOG) return ERROR(tableLog_tooLarge); in FSE_buildDTable_internal() 76 DTableH.tableLog = (U16)tableLog; in FSE_buildDTable_internal() 78 { S16 const largeLimit= (S16)(1 << (tableLog-1)); in FSE_buildDTable_internal() 154 tableDecode[u].nbBits = (BYTE) (tableLog - ZSTD_highbit32(nextState) ); in FSE_buildDTable_internal() 161 …* dt, const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog, void* workSpace,… in FSE_buildDTable_wksp() argument 163 …return FSE_buildDTable_internal(dt, normalizedCounter, maxSymbolValue, tableLog, workSpace, wkspSi… in FSE_buildDTable_wksp() 251 unsigned tableLog; in FSE_decompress_wksp_body() local [all …]
|
| H A D | entropy_common.c | 287 { U32 const tableLog = ZSTD_highbit32(weightTotal) + 1; in HUF_readStats_body() local 288 if (tableLog > HUF_TABLELOG_MAX) return ERROR(corruption_detected); in HUF_readStats_body() 289 *tableLogPtr = tableLog; in HUF_readStats_body() 291 { U32 const total = 1 << tableLog; in HUF_readStats_body()
|
| H A D | huf.h | 153 unsigned maxSymbolValue, unsigned tableLog, 201 BYTE tableLog; member 252 unsigned maxSymbolValue, unsigned tableLog,
|
| /freebsd/sys/contrib/zstd/lib/decompress/ |
| H A D | huf_decompress.c | 141 typedef struct { BYTE maxTableLog; BYTE tableType; BYTE tableLog; BYTE reserved; } DTableDesc; member 194 U32 const dtLog = HUF_getDTableDesc(DTable).tableLog; in HUF_DecompressFastArgs_init() 352 static U32 HUF_rescaleStats(BYTE* huffWeight, U32* rankVal, U32 nbSymbols, U32 tableLog, U32 target… in HUF_rescaleStats() argument 354 if (tableLog > targetTableLog) in HUF_rescaleStats() 355 return tableLog; in HUF_rescaleStats() 356 if (tableLog < targetTableLog) { in HUF_rescaleStats() 357 U32 const scale = targetTableLog - tableLog; in HUF_rescaleStats() 387 U32 tableLog = 0; in HUF_readDTableX1_wksp() local 400 …(wksp->huffWeight, HUF_SYMBOLVALUE_MAX + 1, wksp->rankVal, &nbSymbols, &tableLog, src, srcSize, wk… in HUF_readDTableX1_wksp() 408 … tableLog = HUF_rescaleStats(wksp->huffWeight, wksp->rankVal, nbSymbols, tableLog, targetTableLog); in HUF_readDTableX1_wksp() [all …]
|
| H A D | zstd_decompress_block.c | 469 DTableH->tableLog = 0; in ZSTD_buildSeqTable_rle() 488 unsigned tableLog, void* wksp, size_t wkspSize) in ZSTD_buildFSETable_body() argument 492 U32 const tableSize = 1 << tableLog; in ZSTD_buildFSETable_body() 501 assert(tableLog <= MaxFSELog); in ZSTD_buildFSETable_body() 506 DTableH.tableLog = tableLog; in ZSTD_buildFSETable_body() 508 { S16 const largeLimit= (S16)(1 << (tableLog-1)); in ZSTD_buildFSETable_body() 596 tableDecode[u].nbBits = (BYTE) (tableLog - ZSTD_highbit32(nextState) ); in ZSTD_buildFSETable_body() 609 unsigned tableLog, void* wksp, size_t wkspSize) in ZSTD_buildFSETable_body_default() argument 612 baseValue, nbAdditionalBits, tableLog, wksp, wkspSize); in ZSTD_buildFSETable_body_default() 619 unsigned tableLog, void* wksp, size_t wkspSize) in ZSTD_buildFSETable_body_bmi2() argument [all …]
|
| /freebsd/sys/contrib/openzfs/module/zstd/lib/decompress/ |
| H A D | huf_decompress.c | 142 typedef struct { BYTE maxTableLog; BYTE tableType; BYTE tableLog; BYTE reserved; } DTableDesc; member 195 U32 const dtLog = HUF_getDTableDesc(DTable).tableLog; in HUF_DecompressFastArgs_init() 353 static U32 HUF_rescaleStats(BYTE* huffWeight, U32* rankVal, U32 nbSymbols, U32 tableLog, U32 target… in HUF_rescaleStats() argument 355 if (tableLog > targetTableLog) in HUF_rescaleStats() 356 return tableLog; in HUF_rescaleStats() 357 if (tableLog < targetTableLog) { in HUF_rescaleStats() 358 U32 const scale = targetTableLog - tableLog; in HUF_rescaleStats() 388 U32 tableLog = 0; in HUF_readDTableX1_wksp() local 401 …(wksp->huffWeight, HUF_SYMBOLVALUE_MAX + 1, wksp->rankVal, &nbSymbols, &tableLog, src, srcSize, wk… in HUF_readDTableX1_wksp() 409 … tableLog = HUF_rescaleStats(wksp->huffWeight, wksp->rankVal, nbSymbols, tableLog, targetTableLog); in HUF_readDTableX1_wksp() [all …]
|
| H A D | zstd_decompress_block.c | 470 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() 597 tableDecode[u].nbBits = (BYTE) (tableLog - ZSTD_highbit32(nextState) ); in ZSTD_buildFSETable_body() 610 unsigned tableLog, void* wksp, size_t wkspSize) in ZSTD_buildFSETable_body_default() argument 613 baseValue, nbAdditionalBits, tableLog, wksp, wkspSize); in ZSTD_buildFSETable_body_default() 620 unsigned tableLog, void* wksp, size_t wkspSize) in ZSTD_buildFSETable_body_bmi2() argument [all …]
|
| /freebsd/sys/contrib/zstd/lib/legacy/ |
| H A D | zstd_v02.c | 639 U16 tableLog; member 654 DStatePtr->state = BIT_readBits(bitD, DTableH.tableLog); in FSE_initDState() 1035 (FSE_DTable* dt, const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog) in FSE_buildDTable() argument 1040 const U32 tableSize = 1 << tableLog; in FSE_buildDTable() 1046 const S16 largeLimit= (S16)(1 << (tableLog-1)); in FSE_buildDTable() 1052 if (tableLog > FSE_MAX_TABLELOG) return ERROR(tableLog_tooLarge); in FSE_buildDTable() 1055 DTableH.tableLog = (U16)tableLog; in FSE_buildDTable() 1091 tableDecode[i].nbBits = (BYTE) (tableLog - BIT_highbit32 ((U32)nextState) ); in FSE_buildDTable() 1239 DTableH->tableLog = 0; in FSE_buildDTable_rle() 1264 DTableH->tableLog = (U16)nbBits; in FSE_buildDTable_raw() [all …]
|
| H A D | zstd_v03.c | 640 U16 tableLog; member 655 DStatePtr->state = BIT_readBits(bitD, DTableH.tableLog); in FSE_initDState() 1035 (FSE_DTable* dt, const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog) in FSE_buildDTable() argument 1040 const U32 tableSize = 1 << tableLog; in FSE_buildDTable() 1046 const S16 largeLimit= (S16)(1 << (tableLog-1)); in FSE_buildDTable() 1052 if (tableLog > FSE_MAX_TABLELOG) return ERROR(tableLog_tooLarge); in FSE_buildDTable() 1055 DTableH.tableLog = (U16)tableLog; in FSE_buildDTable() 1091 tableDecode[i].nbBits = (BYTE) (tableLog - BIT_highbit32 ((U32)nextState) ); in FSE_buildDTable() 1239 DTableH->tableLog = 0; in FSE_buildDTable_rle() 1264 DTableH->tableLog = (U16)nbBits; in FSE_buildDTable_raw() [all …]
|
| H A D | zstd_v07.c | 705 FSEv07_DTable* FSEv07_createDTable(unsigned tableLog); 711 …le (FSEv07_DTable* dt, const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog); 806 U16 tableLog; member 821 DStatePtr->state = BITv07_readBits(bitD, DTableH->tableLog); in FSEv07_initDState() 1299 { U32 const tableLog = BITv07_highbit32(weightTotal) + 1; in HUFv07_readStats() local 1300 if (tableLog > HUFv07_TABLELOG_ABSOLUTEMAX) return ERROR(corruption_detected); in HUFv07_readStats() 1301 *tableLogPtr = tableLog; in HUFv07_readStats() 1303 { U32 const total = 1 << tableLog; in HUFv07_readStats() 1412 FSEv07_DTable* FSEv07_createDTable (unsigned tableLog) in FSEv07_createDTable() argument 1414 if (tableLog > FSEv07_TABLELOG_ABSOLUTE_MAX) tableLog = FSEv07_TABLELOG_ABSOLUTE_MAX; in FSEv07_createDTable() [all …]
|
| H A D | zstd_v06.c | 659 FSEv06_DTable* FSEv06_createDTable(unsigned tableLog); 665 …le (FSEv06_DTable* dt, const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog); 1041 U16 tableLog; member 1056 DStatePtr->state = BITv06_readBits(bitD, DTableH->tableLog); in FSEv06_initDState() 1391 FSEv06_DTable* FSEv06_createDTable (unsigned tableLog) in FSEv06_createDTable() argument 1393 if (tableLog > FSEv06_TABLELOG_ABSOLUTE_MAX) tableLog = FSEv06_TABLELOG_ABSOLUTE_MAX; in FSEv06_createDTable() 1394 return (FSEv06_DTable*)malloc( FSEv06_DTABLE_SIZE_U32(tableLog) * sizeof (U32) ); in FSEv06_createDTable() 1402 …able(FSEv06_DTable* dt, const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog) in FSEv06_buildDTable() argument 1409 U32 const tableSize = 1 << tableLog; in FSEv06_buildDTable() 1414 if (tableLog > FSEv06_MAX_TABLELOG) return ERROR(tableLog_tooLarge); in FSEv06_buildDTable() [all …]
|
| H A D | zstd_v04.c | 437 …able ( FSE_DTable* dt, const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog); 819 U16 tableLog; member 834 DStatePtr->state = BIT_readBits(bitD, DTableH.tableLog); in FSE_initDState() 1017 …dDTable(FSE_DTable* dt, const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog) in FSE_buildDTable() argument 1022 const U32 tableSize = 1 << tableLog; in FSE_buildDTable() 1028 const S16 largeLimit= (S16)(1 << (tableLog-1)); in FSE_buildDTable() 1034 if (tableLog > FSE_MAX_TABLELOG) return ERROR(tableLog_tooLarge); in FSE_buildDTable() 1038 DTableH.tableLog = (U16)tableLog; in FSE_buildDTable() 1074 tableDecode[i].nbBits = (BYTE) (tableLog - BIT_highbit32 ((U32)nextState) ); in FSE_buildDTable() 1223 DTableH->tableLog = 0; in FSE_buildDTable_rle() [all …]
|
| H A D | zstd_v05.c | 592 FSEv05_DTable* FSEv05_createDTable(unsigned tableLog); 600 …le (FSEv05_DTable* dt, const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog); 939 U16 tableLog; member 954 DStatePtr->state = BITv05_readBits(bitD, DTableH->tableLog); in FSEv05_initDState() 1146 FSEv05_DTable* FSEv05_createDTable (unsigned tableLog) in FSEv05_createDTable() argument 1148 if (tableLog > FSEv05_TABLELOG_ABSOLUTE_MAX) tableLog = FSEv05_TABLELOG_ABSOLUTE_MAX; in FSEv05_createDTable() 1149 return (FSEv05_DTable*)malloc( FSEv05_DTABLE_SIZE_U32(tableLog) * sizeof (U32) ); in FSEv05_createDTable() 1157 …able(FSEv05_DTable* dt, const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog) in FSEv05_buildDTable() argument 1162 const U32 tableSize = 1 << tableLog; in FSEv05_buildDTable() 1168 const S16 largeLimit= (S16)(1 << (tableLog-1)); in FSEv05_buildDTable() [all …]
|
| H A D | zstd_v01.c | 353 U16 tableLog; member 358 (FSE_DTable* dt, const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog) in FSE_buildDTable() argument 363 const U32 tableSize = 1 << tableLog; in FSE_buildDTable() 369 const S16 largeLimit= (S16)(1 << (tableLog-1)); in FSE_buildDTable() 375 if (tableLog > FSE_MAX_TABLELOG) return (size_t)-FSE_ERROR_tableLog_tooLarge; in FSE_buildDTable() 378 DTableH[0].tableLog = (U16)tableLog; in FSE_buildDTable() 414 tableDecode[i].nbBits = (BYTE) (tableLog - FSE_highbit32 ((U32)nextState) ); in FSE_buildDTable() 562 DTableH->tableLog = 0; in FSE_buildDTable_rle() 587 DTableH->tableLog = (U16)nbBits; in FSE_buildDTable_raw() 735 DStatePtr->state = FSE_readBits(bitD, DTableH->tableLog); in FSE_initDState() [all …]
|