/external/zstd/lib/common/ |
D | huf.h | 98 void* workSpace, size_t wkspSize); 168 …e_t dstSize, const void* cSrc, size_t cSrcSize, void* workSpace, size_t wkspSize); /**< considers … 170 …e_t dstSize, const void* cSrc, size_t cSrcSize, void* workSpace, size_t wkspSize); /**< single-s… 173 …e_t dstSize, const void* cSrc, size_t cSrcSize, void* workSpace, size_t wkspSize); /**< double-s… 212 …void* workSpace, size_t wkspSize, /**< `workSpace` must be aligned on 4-bytes boundaries, `wksp… 223 void* workSpace, size_t wkspSize); 244 void* workspace, size_t wkspSize, 286 …bleX1_wksp (HUF_DTable* DTable, const void* src, size_t srcSize, void* workSpace, size_t wkspSize); 290 …bleX2_wksp (HUF_DTable* DTable, const void* src, size_t srcSize, void* workSpace, size_t wkspSize); 307 …ze, unsigned maxSymbolValue, unsigned tableLog, void* workSpace, size_t wkspSize); /**< `workSpac… [all …]
|
D | fse_decompress.c | 71 …t* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog, void* workSpace, size_t wkspSize) in FSE_buildDTable_internal() argument 83 …if (FSE_BUILD_DTABLE_WKSP_SIZE(tableLog, maxSymbolValue) > wkspSize) return ERROR(maxSymbolValue_t… in FSE_buildDTable_internal() 176 …t* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog, void* workSpace, size_t wkspSize) in FSE_buildDTable_wksp() argument 178 …urn FSE_buildDTable_internal(dt, normalizedCounter, maxSymbolValue, tableLog, workSpace, wkspSize); in FSE_buildDTable_wksp() 308 … dstCapacity, const void* cSrc, size_t cSrcSize, unsigned maxLog, void* workSpace, size_t wkspSize) in FSE_decompress_wksp() argument 310 …return FSE_decompress_wksp_bmi2(dst, dstCapacity, cSrc, cSrcSize, maxLog, workSpace, wkspSize, /* … in FSE_decompress_wksp() 316 unsigned maxLog, void* workSpace, size_t wkspSize, in FSE_decompress_wksp_body() argument 334 …if (FSE_DECOMPRESS_WKSP_SIZE(tableLog, maxSymbolValue) > wkspSize) return ERROR(tableLog_tooLarge); in FSE_decompress_wksp_body() 336 wkspSize -= FSE_DTABLE_SIZE(tableLog); in FSE_decompress_wksp_body() 338 …ECK_F( FSE_buildDTable_internal(dtable, counting, maxSymbolValue, tableLog, workSpace, wkspSize) ); in FSE_decompress_wksp_body() [all …]
|
D | entropy_common.c | 268 void* workSpace, size_t wkspSize, in HUF_readStats_body() argument 294 … oSize = FSE_decompress_wksp_bmi2(huffWeight, hwSize-1, ip+1, iSize, 6, workSpace, wkspSize, bmi2); in HUF_readStats_body() 334 void* workSpace, size_t wkspSize) in HUF_readStats_body_default() argument 336 …dy(huffWeight, hwSize, rankStats, nbSymbolsPtr, tableLogPtr, src, srcSize, workSpace, wkspSize, 0); in HUF_readStats_body_default() 343 void* workSpace, size_t wkspSize) in HUF_readStats_body_bmi2() argument 345 …dy(huffWeight, hwSize, rankStats, nbSymbolsPtr, tableLogPtr, src, srcSize, workSpace, wkspSize, 1); in HUF_readStats_body_bmi2() 352 void* workSpace, size_t wkspSize, in HUF_readStats_wksp() argument 357 …_bmi2(huffWeight, hwSize, rankStats, nbSymbolsPtr, tableLogPtr, src, srcSize, workSpace, wkspSize); in HUF_readStats_wksp() 361 …fault(huffWeight, hwSize, rankStats, nbSymbolsPtr, tableLogPtr, src, srcSize, workSpace, wkspSize); in HUF_readStats_wksp()
|
D | fse.h | 328 …src, size_t srcSize, unsigned maxSymbolValue, unsigned tableLog, void* workSpace, size_t wkspSize); 341 …* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog, void* workSpace, size_t wkspSize); 345 …* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog, void* workSpace, size_t wkspSize); 356 …dstCapacity, const void* cSrc, size_t cSrcSize, unsigned maxLog, void* workSpace, size_t wkspSize); 359 …y, const void* cSrc, size_t cSrcSize, unsigned maxLog, void* workSpace, size_t wkspSize, int bmi2);
|
/external/zstd/lib/compress/ |
D | zstd_compress_superblock.c | 66 void* workspace, size_t wkspSize) in ZSTD_buildSuperBlockEntropy_literal() argument 69 BYTE* const wkspEnd = wkspStart + wkspSize; in ZSTD_buildSuperBlockEntropy_literal() 101 …est = HIST_count_wksp (countWksp, &maxSymbolValue, (const BYTE*)src, srcSize, workspace, wkspSize); in ZSTD_buildSuperBlockEntropy_literal() 168 void* workspace, size_t wkspSize) in ZSTD_buildSuperBlockEntropy_sequences() argument 171 BYTE* const wkspEnd = wkspStart + wkspSize; in ZSTD_buildSuperBlockEntropy_sequences() 191 ZSTD_memset(workspace, 0, wkspSize); in ZSTD_buildSuperBlockEntropy_sequences() 199 …t = HIST_countFast_wksp(countWksp, &max, llCodeTable, nbSeq, workspace, wkspSize); /* can't fail … in ZSTD_buildSuperBlockEntropy_sequences() 222 …t = HIST_countFast_wksp(countWksp, &max, ofCodeTable, nbSeq, workspace, wkspSize); /* can't fail … in ZSTD_buildSuperBlockEntropy_sequences() 246 …t = HIST_countFast_wksp(countWksp, &max, mlCodeTable, nbSeq, workspace, wkspSize); /* can't fail… in ZSTD_buildSuperBlockEntropy_sequences() 279 void* workspace, size_t wkspSize) in ZSTD_buildSuperBlockEntropy() argument [all …]
|
D | huf_compress.c | 494 …* tree, const unsigned* count, U32 maxSymbolValue, U32 maxNbBits, void* workSpace, size_t wkspSize) in HUF_buildCTable_wksp() argument 503 if (wkspSize < sizeof(HUF_buildCTable_wksp_tables)) in HUF_buildCTable_wksp() 745 void* workSpace, size_t wkspSize, in HUF_compress_internal() argument 758 if (wkspSize < HUF_WORKSPACE_SIZE) return ERROR(workSpace_tooSmall); in HUF_compress_internal() 775 … HIST_count_wksp (table->count, &maxSymbolValue, (const BYTE*)src, srcSize, workSpace, wkspSize) ); in HUF_compress_internal() 833 void* workSpace, size_t wkspSize) in HUF_compress1X_wksp() argument 837 workSpace, wkspSize, in HUF_compress1X_wksp() 844 void* workSpace, size_t wkspSize, in HUF_compress1X_repeat() argument 849 workSpace, wkspSize, hufTable, in HUF_compress1X_repeat() 859 void* workSpace, size_t wkspSize) in HUF_compress4X_wksp() argument [all …]
|
D | fse_compress.c | 69 void* workSpace, size_t wkspSize) in FSE_buildCTable_wksp() argument 85 …if (FSE_BUILD_CTABLE_WORKSPACE_SIZE(maxSymbolValue, tableLog) > wkspSize) return ERROR(tableLog_to… in FSE_buildCTable_wksp() 636 … src, size_t srcSize, unsigned maxSymbolValue, unsigned tableLog, void* workSpace, size_t wkspSize) in FSE_compress_wksp() argument 647 size_t const scratchBufferSize = wkspSize - (CTableSize * sizeof(FSE_CTable)); in FSE_compress_wksp() 650 …if (wkspSize < FSE_COMPRESS_WKSP_SIZE_U32(tableLog, maxSymbolValue)) return ERROR(tableLog_tooLarg… in FSE_compress_wksp()
|
/external/zstd/contrib/linux-kernel/test/ |
D | static_test.c | 34 size_t const wkspSize = zstd_dctx_workspace_bound(); in test_decompress_unzstd() local 35 void* wksp = malloc(wkspSize); in test_decompress_unzstd() 37 ZSTD_DCtx* dctx = zstd_init_dctx(wksp, wkspSize); in test_decompress_unzstd()
|
D | test.c | 148 size_t const wkspSize = zstd_cctx_workspace_bound(¶ms.cparams); in test_decompress_unzstd() local 149 void* wksp = malloc(wkspSize); in test_decompress_unzstd() 151 zstd_cctx* cctx = zstd_init_cctx(wksp, wkspSize); in test_decompress_unzstd() 158 size_t const wkspSize = zstd_dctx_workspace_bound(); in test_decompress_unzstd() local 159 void* wksp = malloc(wkspSize); in test_decompress_unzstd() 161 zstd_dctx* dctx = zstd_init_dctx(wksp, wkspSize); in test_decompress_unzstd()
|
/external/zstd/lib/decompress/ |
D | huf_decompress.c | 142 …TableX1_wksp(HUF_DTable* DTable, const void* src, size_t srcSize, void* workSpace, size_t wkspSize) in HUF_readDTableX1_wksp() argument 144 return HUF_readDTableX1_wksp_bmi2(DTable, src, srcSize, workSpace, wkspSize, /* bmi2 */ 0); in HUF_readDTableX1_wksp() 147 …i2(HUF_DTable* DTable, const void* src, size_t srcSize, void* workSpace, size_t wkspSize, int bmi2) in HUF_readDTableX1_wksp_bmi2() argument 157 if (sizeof(*wksp) > wkspSize) return ERROR(tableLog_tooLarge); in HUF_readDTableX1_wksp_bmi2() 466 void* workSpace, size_t wkspSize) in HUF_decompress1X1_DCtx_wksp() argument 470 size_t const hSize = HUF_readDTableX1_wksp(DCtx, cSrc, cSrcSize, workSpace, wkspSize); in HUF_decompress1X1_DCtx_wksp() 491 void* workSpace, size_t wkspSize, int bmi2) in HUF_decompress4X1_DCtx_wksp_bmi2() argument 495 … size_t const hSize = HUF_readDTableX1_wksp_bmi2(dctx, cSrc, cSrcSize, workSpace, wkspSize, bmi2); in HUF_decompress4X1_DCtx_wksp_bmi2() 505 void* workSpace, size_t wkspSize) in HUF_decompress4X1_DCtx_wksp() argument 507 …return HUF_decompress4X1_DCtx_wksp_bmi2(dctx, dst, dstSize, cSrc, cSrcSize, workSpace, wkspSize, 0… in HUF_decompress4X1_DCtx_wksp() [all …]
|
D | zstd_decompress_block.c | 371 unsigned tableLog, void* wksp, size_t wkspSize) in ZSTD_buildFSETable_body() argument 385 assert(wkspSize >= ZSTD_BUILD_FSE_TABLE_WKSP_SIZE); in ZSTD_buildFSETable_body() 386 (void)wkspSize; in ZSTD_buildFSETable_body() 491 unsigned tableLog, void* wksp, size_t wkspSize) in ZSTD_buildFSETable_body_default() argument 494 baseValue, nbAdditionalBits, tableLog, wksp, wkspSize); in ZSTD_buildFSETable_body_default() 501 unsigned tableLog, void* wksp, size_t wkspSize) in ZSTD_buildFSETable_body_bmi2() argument 504 baseValue, nbAdditionalBits, tableLog, wksp, wkspSize); in ZSTD_buildFSETable_body_bmi2() 511 unsigned tableLog, void* wksp, size_t wkspSize, int bmi2) in ZSTD_buildFSETable() argument 516 baseValue, nbAdditionalBits, tableLog, wksp, wkspSize); in ZSTD_buildFSETable() 522 baseValue, nbAdditionalBits, tableLog, wksp, wkspSize); in ZSTD_buildFSETable() [all …]
|
D | zstd_decompress_block.h | 58 unsigned tableLog, void* wksp, size_t wkspSize,
|