Home
last modified time | relevance | path

Searched refs:windowSize (Results 1 - 10 of 10) sorted by relevance

/kernel/linux/linux-6.6/lib/zstd/decompress/
H A Dzstd_decompress.c460 U64 windowSize = 0; in ZSTD_getFrameHeader_advanced() local
470 windowSize = (1ULL << windowLog); in ZSTD_getFrameHeader_advanced()
471 windowSize += (windowSize >> 3) * (wlByte&7); in ZSTD_getFrameHeader_advanced()
493 if (singleSegment) windowSize = frameContentSize; in ZSTD_getFrameHeader_advanced()
497 zfhPtr->windowSize = windowSize; in ZSTD_getFrameHeader_advanced()
498 zfhPtr->blockSizeMax = (unsigned) MIN(windowSize, ZSTD_BLOCKSIZE_MAX); in ZSTD_getFrameHeader_advanced()
1630 * since this version sets windowSize, and the other sets windowLog */
1773 size_t ZSTD_decodingBufferSize_min(unsigned long long windowSize, unsigne argument
1785 ZSTD_estimateDStreamSize(size_t windowSize) ZSTD_estimateDStreamSize() argument
[all...]
H A Dzstd_decompress_block.c1274 size_t const windowSize = dctx->fParams.windowSize; local
1282 if ((size_t)(oLitEnd - prefixStart) >= windowSize) return 0;
1294 size_t const windowSize = dctx->fParams.windowSize; local
1306 assert(seq.offset <= windowSize + dictSize);
1309 assert(seq.offset <= windowSize);
1989 ZSTD_longOffset_e const isLongOffset = (ZSTD_longOffset_e)(MEM_32bits() && (!frame || (dctx->fParams.windowSize > (1ULL << STREAM_ACCUMULATOR_MIN))));
2023 && (!frame || (dctx->fParams.windowSize > (1<<24)))
/kernel/linux/linux-5.10/lib/
H A Ddecompress_unzstd.c256 if (params.windowSize > ZSTD_WINDOWSIZE_MAX) { in __unzstd()
266 wksp_size = ZSTD_DStreamWorkspaceBound(params.windowSize); in __unzstd()
268 dstream = ZSTD_initDStream(params.windowSize, wksp, wksp_size); in __unzstd()
/kernel/linux/linux-6.6/lib/
H A Ddecompress_unzstd.c258 if (header.windowSize > ZSTD_WINDOWSIZE_MAX) { in __unzstd()
268 wksp_size = zstd_dstream_workspace_bound(header.windowSize); in __unzstd()
270 dstream = zstd_init_dstream(header.windowSize, wksp, wksp_size); in __unzstd()
/kernel/linux/linux-5.10/lib/zstd/
H A Ddecompress.c219 fparamsPtr->windowSize = 0; /* windowSize==0 means a frame is skippable */ in ZSTD_getFrameParams()
240 U32 windowSize = 0; in ZSTD_getFrameParams() local
250 windowSize = (1U << windowLog); in ZSTD_getFrameParams()
251 windowSize += (windowSize >> 3) * (wlByte & 7); in ZSTD_getFrameParams()
280 if (!windowSize) in ZSTD_getFrameParams()
281 windowSize = (U32)frameContentSize; in ZSTD_getFrameParams()
282 if (windowSize > windowSizeMax) in ZSTD_getFrameParams()
285 fparamsPtr->windowSize in ZSTD_getFrameParams()
1253 ZSTD_decodeSequenceLong(seqState_t *seqState, unsigned const windowSize) ZSTD_decodeSequenceLong() argument
1360 unsigned const windowSize = dctx->fParams.windowSize; ZSTD_decompressSequencesLong() local
[all...]
H A Dcompress.c2436 U32 const windowSize = 1U << params.cParams.windowLog; in ZSTD_writeFrameHeader() local
2437 U32 const singleSegment = params.fParams.contentSizeFlag && (windowSize >= pledgedSrcSize); in ZSTD_writeFrameHeader()
/kernel/linux/linux-6.6/kernel/module/
H A Ddecompress.c237 if (header.windowSize > (1 << ZSTD_WINDOWLOG_MAX)) { in module_zstd_decompress()
243 wksp_size = zstd_dstream_workspace_bound(header.windowSize); in module_zstd_decompress()
250 dstream = zstd_init_dstream(header.windowSize, wksp, wksp_size); in module_zstd_decompress()
/kernel/linux/linux-6.6/include/linux/
H A Dzstd_lib.h1508 ZSTDLIB_STATIC_API size_t ZSTD_estimateDStreamSize(size_t windowSize);
1718 /* Force back-reference distances to remain < windowSize,
2416 such as the dictionary ID, content size, or maximum back-reference distance (`windowSize`).
2419 For example, do not allocate memory blindly, check that `windowSize` is within expectation.
2421 For extended interoperability, it is recommended to support `windowSize` of at least 8 MB.
2423 ZSTD_decompressContinue() needs previous data blocks during decompression, up to `windowSize` bytes.
2438 There are alternatives possible, for example using two or more buffers of size `windowSize` each, though they consume more memory.
2477 unsigned long long windowSize; /* can be very large, up to <= frameContentSize */ member
2495 ZSTDLIB_STATIC_API size_t ZSTD_decodingBufferSize_min(unsigned long long windowSize, unsigned long long frameContentSize); /*< when frame content size is not known, pass in frameContentSize == ZSTD_CONTENTSIZE_UNKNOWN */
/kernel/linux/linux-5.10/include/linux/
H A Dzstd.h926 * @windowSize: The window size, or 0 if the frame is a skippable frame.
932 unsigned int windowSize; member
1032 * rolling buffer size to allocate to decompress data (`windowSize`), and the
1038 * especially `windowSize`, before allocation. Each application can set its own
1065 * to `windowSize`. They should preferably be located contiguously, prior to
/kernel/linux/linux-6.6/lib/zstd/compress/
H A Dzstd_compress.c1223 U64 const windowSize = 1ULL << windowLog; in ZSTD_dictAndWindowLog() local
1224 U64 const dictAndWindowSize = dictSize + windowSize; in ZSTD_dictAndWindowLog()
1229 if (windowSize >= dictSize + srcSize) { in ZSTD_dictAndWindowLog()
1398 size_t const windowSize = (size_t) BOUNDED(1ULL, 1ULL << cParams->windowLog, pledgedSrcSize); in ZSTD_estimateCCtxSize_usingCCtxParams_internal() local
1399 size_t const blockSize = MIN(ZSTD_BLOCKSIZE_MAX, windowSize); in ZSTD_estimateCCtxSize_usingCCtxParams_internal()
1778 { size_t const windowSize = MAX(1, (size_t)MIN(((U64)1 << params->cParams.windowLog), pledgedSrcSize)); in ZSTD_resetCCtx_internal() local
1779 size_t const blockSize = MIN(ZSTD_BLOCKSIZE_MAX, windowSize); in ZSTD_resetCCtx_internal()
1786 ? windowSize + blockSize in ZSTD_resetCCtx_internal()
1810 DEBUGLOG(4, "windowSize: %zu - blockSize: %zu", windowSize, blockSiz in ZSTD_resetCCtx_internal()
3927 U32 const windowSize = (U32)1 << params->cParams.windowLog; ZSTD_writeFrameHeader() local
5566 U32 const windowSize = 1 << windowLog; ZSTD_validateSequence() local
[all...]

Completed in 29 milliseconds