Home
last modified time | relevance | path

Searched refs:srcCCtx (Results 1 - 2 of 2) sorted by relevance

/kernel/linux/linux-5.10/lib/zstd/
H A Dcompress.c345 * Duplicate an existing context `srcCCtx` into another one `dstCCtx`.
348 size_t ZSTD_copyCCtx(ZSTD_CCtx *dstCCtx, const ZSTD_CCtx *srcCCtx, unsigned long long pledgedSrcSize) in ZSTD_copyCCtx() argument
350 if (srcCCtx->stage != ZSTDcs_init) in ZSTD_copyCCtx()
353 memcpy(&dstCCtx->customMem, &srcCCtx->customMem, sizeof(ZSTD_customMem)); in ZSTD_copyCCtx()
355 ZSTD_parameters params = srcCCtx->params; in ZSTD_copyCCtx()
362 size_t const chainSize = (srcCCtx->params.cParams.strategy == ZSTD_fast) ? 0 : (1 << srcCCtx->params.cParams.chainLog); in ZSTD_copyCCtx()
363 size_t const hSize = ((size_t)1) << srcCCtx->params.cParams.hashLog; in ZSTD_copyCCtx()
364 size_t const h3Size = (size_t)1 << srcCCtx->hashLog3; in ZSTD_copyCCtx()
366 memcpy(dstCCtx->workSpace, srcCCtx in ZSTD_copyCCtx()
[all...]
/kernel/linux/linux-6.6/lib/zstd/compress/
H A Dzstd_compress.c2124 * Duplicate an existing context `srcCCtx` into another one `dstCCtx`.
2128 * `windowLog` value is enforced if != 0, otherwise value is copied from srcCCtx.
2131 const ZSTD_CCtx* srcCCtx, in ZSTD_copyCCtx_internal()
2136 RETURN_ERROR_IF(srcCCtx->stage!=ZSTDcs_init, stage_wrong, in ZSTD_copyCCtx_internal()
2139 ZSTD_memcpy(&dstCCtx->customMem, &srcCCtx->customMem, sizeof(ZSTD_customMem)); in ZSTD_copyCCtx_internal()
2142 params.cParams = srcCCtx->appliedParams.cParams; in ZSTD_copyCCtx_internal()
2143 assert(srcCCtx->appliedParams.useRowMatchFinder != ZSTD_ps_auto); in ZSTD_copyCCtx_internal()
2144 assert(srcCCtx->appliedParams.useBlockSplitter != ZSTD_ps_auto); in ZSTD_copyCCtx_internal()
2145 assert(srcCCtx->appliedParams.ldmParams.enableLdm != ZSTD_ps_auto); in ZSTD_copyCCtx_internal()
2146 params.useRowMatchFinder = srcCCtx in ZSTD_copyCCtx_internal()
2130 ZSTD_copyCCtx_internal(ZSTD_CCtx* dstCCtx, const ZSTD_CCtx* srcCCtx, ZSTD_frameParameters fParams, U64 pledgedSrcSize, ZSTD_buffered_policy_e zbuff) ZSTD_copyCCtx_internal() argument
2207 ZSTD_copyCCtx(ZSTD_CCtx* dstCCtx, const ZSTD_CCtx* srcCCtx, unsigned long long pledgedSrcSize) ZSTD_copyCCtx() argument
[all...]

Completed in 11 milliseconds