Home
last modified time | relevance | path

Searched refs:dstCCtx (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
353 memcpy(&dstCCtx->customMem, &srcCCtx->customMem, sizeof(ZSTD_customMem)); in ZSTD_copyCCtx()
357 ZSTD_resetCCtx_advanced(dstCCtx, params, pledgedSrcSize, ZSTDcrp_noMemset); in ZSTD_copyCCtx()
366 memcpy(dstCCtx->workSpace, srcCCtx->workSpace, tableSpace); in ZSTD_copyCCtx()
370 dstCCtx->nextToUpdate = srcCCtx->nextToUpdate; in ZSTD_copyCCtx()
371 dstCCtx->nextToUpdate3 = srcCCtx->nextToUpdate3; in ZSTD_copyCCtx()
372 dstCCtx->nextSrc = srcCCtx->nextSrc; in ZSTD_copyCCtx()
373 dstCCtx->base = srcCCtx->base; in ZSTD_copyCCtx()
374 dstCCtx 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`.
2130 static size_t ZSTD_copyCCtx_internal(ZSTD_CCtx* dstCCtx, in ZSTD_copyCCtx_internal() argument
2139 ZSTD_memcpy(&dstCCtx->customMem, &srcCCtx->customMem, sizeof(ZSTD_customMem)); in ZSTD_copyCCtx_internal()
2140 { ZSTD_CCtx_params params = dstCCtx->requestedParams; in ZSTD_copyCCtx_internal()
2150 ZSTD_resetCCtx_internal(dstCCtx, &params, pledgedSrcSize, in ZSTD_copyCCtx_internal()
2153 assert(dstCCtx->appliedParams.cParams.windowLog == srcCCtx->appliedParams.cParams.windowLog); in ZSTD_copyCCtx_internal()
2154 assert(dstCCtx->appliedParams.cParams.strategy == srcCCtx->appliedParams.cParams.strategy); in ZSTD_copyCCtx_internal()
2155 assert(dstCCtx->appliedParams.cParams.hashLog == srcCCtx->appliedParams.cParams.hashLog); in ZSTD_copyCCtx_internal()
2156 assert(dstCCtx->appliedParams.cParams.chainLog == srcCCtx->appliedParams.cParams.chainLog); in ZSTD_copyCCtx_internal()
2157 assert(dstCCtx in ZSTD_copyCCtx_internal()
2207 ZSTD_copyCCtx(ZSTD_CCtx* dstCCtx, const ZSTD_CCtx* srcCCtx, unsigned long long pledgedSrcSize) ZSTD_copyCCtx() argument
[all...]

Completed in 11 milliseconds