Home
last modified time | relevance | path

Searched refs:windowLog (Results 1 - 16 of 16) sorted by relevance

/kernel/linux/linux-6.6/lib/zstd/compress/
H A Dzstd_compress.c235 if (cParams->windowLog > 14) mode = ZSTD_ps_enable; in ZSTD_resolveRowMatchFinderMode()
237 if (cParams->windowLog > 17) mode = ZSTD_ps_enable; in ZSTD_resolveRowMatchFinderMode()
246 return (cParams->strategy >= ZSTD_btopt && cParams->windowLog >= 17) ? ZSTD_ps_enable : ZSTD_ps_disable; in ZSTD_resolveBlockSplitterMode()
267 return (cParams->strategy >= ZSTD_btopt && cParams->windowLog >= 27) ? ZSTD_ps_enable : ZSTD_ps_disable; in ZSTD_resolveEnableLdm()
702 CCtxParams->cParams.windowLog = (U32)value; in ZSTD_CCtxParams_setParameter()
703 return CCtxParams->cParams.windowLog; in ZSTD_CCtxParams_setParameter()
890 *value = (int)CCtxParams->cParams.windowLog; in ZSTD_CCtxParams_getParameter()
1165 BOUNDCHECK(ZSTD_c_windowLog, (int)cParams.windowLog); in ZSTD_checkCParams()
1187 CLAMP(ZSTD_c_windowLog, cParams.windowLog); in ZSTD_clampCParams()
1210 * the hashLog and windowLog
1213 ZSTD_dictAndWindowLog(U32 windowLog, U64 srcSize, U64 dictSize) ZSTD_dictAndWindowLog() argument
1972 unsigned const windowLog = params.cParams.windowLog; ZSTD_resetCCtx_byAttachingCDict() local
2034 { unsigned const windowLog = params.cParams.windowLog; ZSTD_resetCCtx_byCopyingCDict() local
5563 ZSTD_validateSequence(U32 offCode, U32 matchLength, size_t posInSrc, U32 windowLog, size_t dictSize) ZSTD_validateSequence() argument
[all...]
H A Dzstd_ldm.c138 params->windowLog = cParams->windowLog; in ZSTD_ldm_adjustParameters()
144 params->hashLog = MAX(ZSTD_HASHLOG_MIN, params->windowLog - LDM_HASH_RLOG); in ZSTD_ldm_adjustParameters()
148 params->hashRateLog = params->windowLog < params->hashLog in ZSTD_ldm_adjustParameters()
150 : params->windowLog - params->hashLog; in ZSTD_ldm_adjustParameters()
509 U32 const maxDist = 1U << params->windowLog; in ZSTD_ldm_generateSequences()
H A Dzstd_double_fast.c65 const U32 prefixLowestIndex = ZSTD_getLowestPrefixIndex(ms, endIndex, cParams->windowLog); in ZSTD_compressBlock_doubleFast_noDict_generic()
101 U32 const windowLow = ZSTD_getLowestPrefixIndex(ms, current, cParams->windowLog); in ZSTD_compressBlock_doubleFast_noDict_generic()
273 const U32 prefixLowestIndex = ZSTD_getLowestPrefixIndex(ms, endIndex, cParams->windowLog); in ZSTD_compressBlock_doubleFast_dictMatchState_generic()
296 assert(ms->window.dictLimit + (1U << cParams->windowLog) >= endIndex); in ZSTD_compressBlock_doubleFast_dictMatchState_generic()
547 const U32 lowLimit = ZSTD_getLowestMatchIndex(ms, endIndex, cParams->windowLog); in ZSTD_compressBlock_doubleFast_extDict_generic()
H A Dzstd_lazy.c87 U32 const maxDistance = 1U << cParams->windowLog; in ZSTD_insertDUBT1()
245 U32 const windowLow = ZSTD_getLowestMatchIndex(ms, curr, cParams->windowLog); in ZSTD_DUBT_findBestMatch()
664 const U32 maxDistance = 1U << cParams->windowLog; in ZSTD_HcFindBestMatch()
1138 const U32 maxDistance = 1U << cParams->windowLog; in ZSTD_RowFindBestMatch()
1513 U32 const windowLow = ZSTD_getLowestPrefixIndex(ms, curr, ms->cParams.windowLog); in ZSTD_compressBlock_lazy_generic()
1881 const U32 windowLog = ms->cParams.windowLog; in ZSTD_compressBlock_lazy_extDict_generic() local
1911 { const U32 windowLow = ZSTD_getLowestMatchIndex(ms, curr+1, windowLog); in ZSTD_compressBlock_lazy_extDict_generic()
1943 const U32 windowLow = ZSTD_getLowestMatchIndex(ms, curr, windowLog); in ZSTD_compressBlock_lazy_extDict_generic()
1975 const U32 windowLow = ZSTD_getLowestMatchIndex(ms, curr, windowLog); in ZSTD_compressBlock_lazy_extDict_generic()
[all...]
H A Dzstd_fast.c106 const U32 prefixStartIndex = ZSTD_getLowestPrefixIndex(ms, endIndex, cParams->windowLog); in ZSTD_compressBlock_fast_noDict_generic()
142 U32 const windowLow = ZSTD_getLowestPrefixIndex(ms, curr, cParams->windowLog); in ZSTD_compressBlock_fast_noDict_generic()
405 const U32 maxDistance = 1U << cParams->windowLog; in ZSTD_compressBlock_fast_dictMatchState_generic()
563 const U32 lowLimit = ZSTD_getLowestMatchIndex(ms, endIndex, cParams->windowLog); in ZSTD_compressBlock_fast_extDict_generic()
H A Dzstd_compress_internal.h268 U32 windowLog; /* Window log for the LDM */ member
1019 * lowLimit > (3<<29) ==> current > 3<<29 + 1<<windowLog in ZSTD_window_correctOverflow()
1020 * 1<<windowLog <= newCurrent < 1<<chainLog + 1<<windowLog in ZSTD_window_correctOverflow()
1023 * > (3<<29 + 1<<windowLog) - (1<<windowLog + 1<<chainLog) in ZSTD_window_correctOverflow()
1029 * After correction, current is less than (1<<chainLog + 1<<windowLog). in ZSTD_window_correctOverflow()
1033 * 3. (cctx->lowLimit + 1<<windowLog) < 1<<32: in ZSTD_window_correctOverflow()
1034 * windowLog <= 31 ==> 3<<29 + 1<<windowLog < in ZSTD_window_correctOverflow()
[all...]
H A Dzstd_compress_superblock.c167 const int longOffsets = cctxParams->cParams.windowLog > STREAM_ACCUMULATOR_MIN; in ZSTD_compressSubBlock_sequences()
H A Dzstd_opt.c440 U32 const windowLow = ZSTD_getLowestMatchIndex(ms, target, cParams->windowLog); in ZSTD_insertBt1()
584 U32 const windowLow = ZSTD_getLowestMatchIndex(ms, curr, cParams->windowLog); in ZSTD_insertBtAndGetAllMatches()
/kernel/linux/linux-5.10/lib/zstd/
H A Dcompress.c92 size_t const blockSize = MIN(ZSTD_BLOCKSIZE_ABSOLUTEMAX, (size_t)1 << cParams.windowLog); in ZSTD_CCtxWorkspaceBound()
98 U32 const hashLog3 = (cParams.searchLength > 3) ? 0 : MIN(ZSTD_HASHLOG3_MAX, cParams.windowLog); in ZSTD_CCtxWorkspaceBound()
155 CLAMPCHECK(cParams.windowLog, ZSTD_WINDOWLOG_MIN, ZSTD_WINDOWLOG_MAX); in ZSTD_checkCParams()
191 if (cPar.windowLog > srcLog) in ZSTD_adjustCParams()
192 cPar.windowLog = srcLog; in ZSTD_adjustCParams()
195 if (cPar.hashLog > cPar.windowLog) in ZSTD_adjustCParams()
196 cPar.hashLog = cPar.windowLog; in ZSTD_adjustCParams()
199 if (cycleLog > cPar.windowLog) in ZSTD_adjustCParams()
200 cPar.chainLog -= (cycleLog - cPar.windowLog); in ZSTD_adjustCParams()
203 if (cPar.windowLog < ZSTD_WINDOWLOG_ABSOLUTEMI in ZSTD_adjustCParams()
[all...]
H A Ddecompress.c247 U32 const windowLog = (wlByte >> 3) + ZSTD_WINDOWLOG_ABSOLUTEMIN; in ZSTD_getFrameParams() local
248 if (windowLog > ZSTD_WINDOWLOG_MAX) in ZSTD_getFrameParams()
249 return ERROR(frameParameter_windowTooLarge); /* avoids issue with 1 << windowLog */ in ZSTD_getFrameParams()
250 windowSize = (1U << windowLog); in ZSTD_getFrameParams()
/kernel/linux/linux-6.6/lib/zstd/
H A Dzstd_compress_module.c35 cctx, ZSTD_c_windowLog, parameters->cParams.windowLog)); in zstd_cctx_init()
/kernel/linux/linux-5.10/fs/btrfs/
H A Dzstd.c36 if (params.cParams.windowLog > ZSTD_BTRFS_MAX_WINDOWLOG) in zstd_get_btrfs_parameters()
37 params.cParams.windowLog = ZSTD_BTRFS_MAX_WINDOWLOG; in zstd_get_btrfs_parameters()
/kernel/linux/linux-6.6/fs/btrfs/
H A Dzstd.c36 if (params.cParams.windowLog > ZSTD_BTRFS_MAX_WINDOWLOG) in zstd_get_btrfs_parameters()
37 params.cParams.windowLog = ZSTD_BTRFS_MAX_WINDOWLOG; in zstd_get_btrfs_parameters()
/kernel/linux/linux-5.10/include/linux/
H A Dzstd.h132 * @windowLog: Log of the largest match distance. Larger means more
146 unsigned int windowLog; member
1090 * For skippable frames ZSTD_getFrameParams() returns fparamsPtr->windowLog==0
/kernel/linux/linux-6.6/lib/zstd/decompress/
H A Dzstd_decompress.c468 U32 const windowLog = (wlByte >> 3) + ZSTD_WINDOWLOG_ABSOLUTEMIN; in ZSTD_getFrameHeader_advanced() local
469 RETURN_ERROR_IF(windowLog > ZSTD_WINDOWLOG_MAX, frameParameter_windowTooLarge, ""); in ZSTD_getFrameHeader_advanced()
470 windowSize = (1ULL << windowLog); in ZSTD_getFrameHeader_advanced()
1630 * since this version sets windowSize, and the other sets windowLog */
/kernel/linux/linux-6.6/include/linux/
H A Dzstd_lib.h286 * Special: value 0 means "use default windowLog".
287 * Note: Using a windowLog greater than ZSTD_WINDOWLOG_LIMIT_DEFAULT
352 * Default is MAX(0, (windowLog - ldmHashLog)), optimizing hash table usage.
537 * Special: value 0 means "use default maximum windowLog". */
1197 unsigned windowLog; /*< largest match distance : larger == more compression, more memory needed during decompression */ member
1998 * with a few restrictions (windowLog, pledgedSrcSize, nbWorkers, jobSize, and overlapLog are not updated).

Completed in 41 milliseconds