/lib/ |
D | decompress_unzstd.c | 130 void *wksp = large_malloc(wksp_size); in decompress_single() local 131 zstd_dctx *dctx = zstd_init_dctx(wksp, wksp_size); in decompress_single() 160 if (wksp != NULL) in decompress_single() 161 large_free(wksp); in decompress_single() 177 void *wksp = NULL; in __unzstd() local 269 wksp = large_malloc(wksp_size); in __unzstd() 270 dstream = zstd_init_dstream(header.windowSize, wksp, wksp_size); in __unzstd() 327 if (wksp != NULL) in __unzstd() 328 large_free(wksp); in __unzstd()
|
/lib/zstd/decompress/ |
D | huf_decompress.c | 345 HUF_ReadDTableX1_Workspace* wksp = (HUF_ReadDTableX1_Workspace*)workSpace; in HUF_readDTableX1_wksp_bmi2() local 347 DEBUG_STATIC_ASSERT(HUF_DECOMPRESS_WORKSPACE_SIZE >= sizeof(*wksp)); in HUF_readDTableX1_wksp_bmi2() 348 if (sizeof(*wksp) > wkspSize) return ERROR(tableLog_tooLarge); in HUF_readDTableX1_wksp_bmi2() 353 …readStats_wksp(wksp->huffWeight, HUF_SYMBOLVALUE_MAX + 1, wksp->rankVal, &nbSymbols, &tableLog, sr… in HUF_readDTableX1_wksp_bmi2() 361 … tableLog = HUF_rescaleStats(wksp->huffWeight, wksp->rankVal, nbSymbols, tableLog, targetTableLog); in HUF_readDTableX1_wksp_bmi2() 387 nextRankStart += wksp->rankVal[n]; in HUF_readDTableX1_wksp_bmi2() 388 wksp->rankStart[n] = curr; in HUF_readDTableX1_wksp_bmi2() 393 size_t const w = wksp->huffWeight[n+u]; in HUF_readDTableX1_wksp_bmi2() 394 wksp->symbols[wksp->rankStart[w]++] = (BYTE)(n+u); in HUF_readDTableX1_wksp_bmi2() 398 size_t const w = wksp->huffWeight[n]; in HUF_readDTableX1_wksp_bmi2() [all …]
|
D | zstd_decompress_block.h | 64 unsigned tableLog, void* wksp, size_t wkspSize,
|
D | zstd_decompress_block.c | 447 unsigned tableLog, void* wksp, size_t wkspSize) in ZSTD_buildFSETable_body() argument 453 U16* symbolNext = (U16*)wksp; 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 580 baseValue, nbAdditionalBits, tableLog, wksp, wkspSize); in ZSTD_buildFSETable_body_bmi2() 587 unsigned tableLog, void* wksp, size_t wkspSize, int bmi2) in ZSTD_buildFSETable() argument 592 baseValue, nbAdditionalBits, tableLog, wksp, wkspSize); in ZSTD_buildFSETable() 598 baseValue, nbAdditionalBits, tableLog, wksp, wkspSize); in ZSTD_buildFSETable() 610 int ddictIsCold, int nbSeq, U32* wksp, size_t wkspSize, in ZSTD_buildSeqTable() argument [all …]
|
/lib/zstd/compress/ |
D | zstd_compress_sequences.c | 73 BYTE wksp[FSE_NCOUNTBOUND]; in ZSTD_NCountCost() local 77 return FSE_writeNCount(wksp, sizeof(wksp), norm, max, tableLog); in ZSTD_NCountCost() 239 U32 wksp[FSE_BUILD_CTABLE_WORKSPACE_SIZE_U32(MaxSeq, MaxFSELog)]; member 268 ZSTD_BuildCTableWksp* wksp = (ZSTD_BuildCTableWksp*)entropyWorkspace; in ZSTD_buildCTable() local 278 …FORWARD_IF_ERROR(FSE_normalizeCount(wksp->norm, tableLog, count, nbSeq_1, max, ZSTD_useLowProbCoun… in ZSTD_buildCTable() 280 …{ size_t const NCountSize = FSE_writeNCount(op, (size_t)(oend - op), wksp->norm, max, tableLog);… in ZSTD_buildCTable() 282 …RWARD_IF_ERROR(FSE_buildCTable_wksp(nextCTable, wksp->norm, max, tableLog, wksp->wksp, sizeof(wksp… in ZSTD_buildCTable()
|
D | huf_compress.c | 97 …HUF_CompressWeightsWksp* wksp = (HUF_CompressWeightsWksp*)HUF_alignUpWorkspace(workspace, &workspa… in HUF_compressWeights() local 105 …{ unsigned const maxCount = HIST_count_simple(wksp->count, &maxSymbolValue, weightTable, wtSize)… in HUF_compressWeights() 111 …CHECK_F( FSE_normalizeCount(wksp->norm, tableLog, wksp->count, wtSize, maxSymbolValue, /* useLowPr… in HUF_compressWeights() 114 …{ CHECK_V_F(hSize, FSE_writeNCount(op, (size_t)(oend-op), wksp->norm, maxSymbolValue, tableLog) … in HUF_compressWeights() 119 …CHECK_F( FSE_buildCTable_wksp(wksp->CTable, wksp->norm, maxSymbolValue, tableLog, wksp->scratchBuf… in HUF_compressWeights() 120 …_V_F(cSize, FSE_compress_usingCTable(op, (size_t)(oend - op), weightTable, wtSize, wksp->CTable) ); in HUF_compressWeights() 164 HUF_CompressWeightsWksp wksp; member 176 …HUF_WriteCTableWksp* wksp = (HUF_WriteCTableWksp*)HUF_alignUpWorkspace(workspace, &workspaceSize, … in HUF_writeCTable_wksp() local 183 wksp->bitsToWeight[0] = 0; in HUF_writeCTable_wksp() 185 wksp->bitsToWeight[n] = (BYTE)(huffLog + 1 - n); in HUF_writeCTable_wksp() [all …]
|
/lib/zstd/common/ |
D | fse_decompress.c | 329 FSE_DecompressWksp* const wksp = (FSE_DecompressWksp*)workSpace; in FSE_decompress_wksp_body() local 332 if (wkspSize < sizeof(*wksp)) return ERROR(GENERIC); in FSE_decompress_wksp_body() 336 …size_t const NCountLength = FSE_readNCount_bmi2(wksp->ncount, &maxSymbolValue, &tableLog, istart, … in FSE_decompress_wksp_body() 345 workSpace = wksp->dtable + FSE_DTABLE_SIZE_U32(tableLog); in FSE_decompress_wksp_body() 346 wkspSize -= sizeof(*wksp) + FSE_DTABLE_SIZE(tableLog); in FSE_decompress_wksp_body() 348 …CHECK_F( FSE_buildDTable_internal(wksp->dtable, wksp->ncount, maxSymbolValue, tableLog, workSpace,… in FSE_decompress_wksp_body() 351 const void* ptr = wksp->dtable; in FSE_decompress_wksp_body() 356 …stMode) return FSE_decompress_usingDTable_generic(dst, dstCapacity, ip, cSrcSize, wksp->dtable, 1); in FSE_decompress_wksp_body() 357 return FSE_decompress_usingDTable_generic(dst, dstCapacity, ip, cSrcSize, wksp->dtable, 0); in FSE_decompress_wksp_body()
|
D | entropy_common.c | 255 U32 wksp[HUF_READ_STATS_WORKSPACE_SIZE_U32]; in HUF_readStats() local 256 …Weight, hwSize, rankStats, nbSymbolsPtr, tableLogPtr, src, srcSize, wksp, sizeof(wksp), /* bmi2 */… in HUF_readStats()
|