Home
last modified time | relevance | path

Searched refs:windowLog (Results 1 – 25 of 27) sorted by relevance

12

/f-stack/freebsd/contrib/zstd/lib/compress/
H A Dzstd_compress.c1153 return windowLog; in ZSTD_dictAndWindowLog()
1214 if (cPar.windowLog > srcLog) cPar.windowLog = srcLog; in ZSTD_adjustCParams_internal()
1246 if (overrides->windowLog) cParams->windowLog = overrides->windowLog; in ZSTD_overrideCParams()
1464 assert(cParams1.windowLog == cParams2.windowLog); in ZSTD_assertEqualCParams()
1815 unsigned const windowLog = params.cParams.windowLog; in ZSTD_resetCCtx_byAttachingCDict() local
1816 assert(windowLog != 0); in ZSTD_resetCCtx_byAttachingCDict()
1827 params.cParams.windowLog = windowLog; in ZSTD_resetCCtx_byAttachingCDict()
1874 { unsigned const windowLog = params.cParams.windowLog; in ZSTD_resetCCtx_byCopyingCDict() local
1875 assert(windowLog != 0); in ZSTD_resetCCtx_byCopyingCDict()
1878 params.cParams.windowLog = windowLog; in ZSTD_resetCCtx_byCopyingCDict()
[all …]
H A Dzstd_ldm.c25 params->windowLog = cParams->windowLog; in ZSTD_ldm_adjustParameters()
31 params->hashLog = MAX(ZSTD_HASHLOG_MIN, params->windowLog - LDM_HASH_RLOG); in ZSTD_ldm_adjustParameters()
35 params->hashRateLog = params->windowLog < params->hashLog in ZSTD_ldm_adjustParameters()
37 : params->windowLog - params->hashLog; in ZSTD_ldm_adjustParameters()
448 U32 const maxDist = 1U << params->windowLog; in ZSTD_ldm_generateSequences()
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()
613 const U32 maxDistance = 1U << cParams->windowLog; in ZSTD_HcFindBestMatch_generic()
924 U32 const windowLow = ZSTD_getLowestPrefixIndex(ms, curr, ms->cParams.windowLog); in ZSTD_compressBlock_lazy_generic()
1220 const U32 windowLog = ms->cParams.windowLog; in ZSTD_compressBlock_lazy_extDict_generic() local
1248 { const U32 windowLow = ZSTD_getLowestMatchIndex(ms, curr+1, windowLog); in ZSTD_compressBlock_lazy_extDict_generic()
1279 const U32 windowLow = ZSTD_getLowestMatchIndex(ms, curr, windowLog); in ZSTD_compressBlock_lazy_extDict_generic()
1310 const U32 windowLow = ZSTD_getLowestMatchIndex(ms, curr, windowLog); in ZSTD_compressBlock_lazy_extDict_generic()
1356 const U32 windowLow = ZSTD_getLowestMatchIndex(ms, repCurrent, windowLog); in ZSTD_compressBlock_lazy_extDict_generic()
H A Dzstd_fast.c64 const U32 prefixStartIndex = ZSTD_getLowestPrefixIndex(ms, endIndex, cParams->windowLog); in ZSTD_compressBlock_fast_generic()
76 U32 const windowLow = ZSTD_getLowestPrefixIndex(ms, curr, cParams->windowLog); in ZSTD_compressBlock_fast_generic()
240 const U32 maxDistance = 1U << cParams->windowLog; in ZSTD_compressBlock_fast_dictMatchState_generic()
390 const U32 lowLimit = ZSTD_getLowestMatchIndex(ms, endIndex, cParams->windowLog); in ZSTD_compressBlock_fast_extDict_generic()
H A Dzstd_compress_internal.h201 U32 windowLog; /* Window log for the LDM */ member
1048 MEM_STATIC U32 ZSTD_getLowestMatchIndex(const ZSTD_matchState_t* ms, U32 curr, unsigned windowLog) in ZSTD_getLowestMatchIndex() argument
1050 U32 const maxDistance = 1U << windowLog; in ZSTD_getLowestMatchIndex()
1065 MEM_STATIC U32 ZSTD_getLowestPrefixIndex(const ZSTD_matchState_t* ms, U32 curr, unsigned windowLog) in ZSTD_getLowestPrefixIndex() argument
1067 U32 const maxDistance = 1U << windowLog; in ZSTD_getLowestPrefixIndex()
H A Dzstd_double_fast.c67 const U32 prefixLowestIndex = ZSTD_getLowestPrefixIndex(ms, endIndex, cParams->windowLog); in ZSTD_compressBlock_doubleFast_generic()
105 assert(ms->window.dictLimit + (1U << cParams->windowLog) >= endIndex); in ZSTD_compressBlock_doubleFast_generic()
112 U32 const windowLow = ZSTD_getLowestPrefixIndex(ms, curr, cParams->windowLog); in ZSTD_compressBlock_doubleFast_generic()
376 const U32 lowLimit = ZSTD_getLowestMatchIndex(ms, endIndex, cParams->windowLog); in ZSTD_compressBlock_doubleFast_extDict_generic()
H A Dzstdmt_compress.c471 DEBUGLOG(4, "LDM window size = %u KB", (1U << params.cParams.windowLog) >> 10); in ZSTDMT_serialState_reset()
1038 …U32 const saved_wlog = mtctx->params.cParams.windowLog; /* Do not modify windowLog while compres… in ZSTDMT_updateCParams_whileCompressing()
1044 cParams.windowLog = saved_wlog; in ZSTDMT_updateCParams_whileCompressing()
1133 jobLog = MAX(20, params->cParams.windowLog + 2); in ZSTDMT_computeTargetJobLog()
1169 int ovLog = (overlapRLog >= 8) ? 0 : (params->cParams.windowLog - overlapRLog); in ZSTDMT_computeOverlapSize()
1176 ovLog = MIN(params->cParams.windowLog, ZSTDMT_computeTargetJobLog(params) - 2) in ZSTDMT_computeOverlapSize()
1256 …const windowSize = mtctx->params.ldmParams.enableLdm ? (1U << mtctx->params.cParams.windowLog) : 0; in ZSTDMT_initCStream_internal()
H A Dzstd_compress_superblock.c444 const int longOffsets = cctxParams->cParams.windowLog > STREAM_ACCUMULATOR_MIN; in ZSTD_compressSubBlock_sequences()
H A Dzstd_opt.c537 U32 const windowLow = ZSTD_getLowestMatchIndex(ms, curr, cParams->windowLog); in ZSTD_insertBtAndGetAllMatches()
/f-stack/freebsd/contrib/zstd/programs/
H A Dzstdcli.c541 …ngPtr, "windowLog=") || longCommandWArg(&stringPtr, "wlog=")) { params->windowLog = readU32FromCha… in parseCompressionParameters()
557 …DISPLAYLEVEL(4, "windowLog=%d, chainLog=%d, hashLog=%d, searchLog=%d \n", params->windowLog, param… in parseCompressionParameters()
915 if (compressionParams.windowLog == 0) in main()
916 compressionParams.windowLog = ldmWindowLog; in main()
1297 if (compressionParams.windowLog == 0) { in main()
1300 memLimit = (U32)1 << (compressionParams.windowLog & 31); in main()
1340 DISPLAY(" - windowLog : %u\n", cParams.windowLog); in main()
H A Dzstd.1.md138 enables long distance matching with `#` `windowLog`, if not `#` is not
140 This increases the window size (`windowLog`) and memory usage for both the
145 Note: If `windowLog` is set to larger than 27, `--long=windowLog` or
156 (fileLog being the windowLog required to cover the whole file). You
442 - `windowLog`=_wlog_, `wlog`=_wlog_:
451 Note: If `windowLog` is set to larger than 27, `--long=windowLog` or
481 The minimum _slog_ is 1 and the maximum is 'windowLog' - 1.
H A Dfileio.c911 comprParams->windowLog = MIN(ZSTD_WINDOWLOG_MAX, fileWindowLog); in FIO_adjustParamsForPatchFromMode()
957 if (prefs->adaptiveMode && !prefs->ldmFlag && !comprParams.windowLog) in FIO_createCResources()
958 comprParams.windowLog = ADAPT_WINDOWLOG_DEFAULT; in FIO_createCResources()
980 CHECK( ZSTD_CCtx_setParameter(ress.cctx, ZSTD_c_windowLog, (int)comprParams.windowLog) ); in FIO_createCResources()
2069 … unsigned const windowLog = FIO_highbit64(windowSize) + ((windowSize & (windowSize - 1)) != 0); in FIO_zstdErrorHelp() local
2073 if (windowLog <= ZSTD_WINDOWLOG_MAX) { in FIO_zstdErrorHelp()
2077 srcFileName, windowLog, windowMB); in FIO_zstdErrorHelp()
H A Dbenchzstd.c183 CHECK_Z(ZSTD_CCtx_setParameter(ctx, ZSTD_c_windowLog, (int)comprParams->windowLog)); in BMK_initCCtx()
553 benchResult.cMem = (1ULL << (comprParams->windowLog)) + ZSTD_sizeof_CCtx(cctx); in BMK_benchMemAdvancedNoAlloc()
/f-stack/freebsd/contrib/zstd/lib/legacy/
H A Dzstd_v06.h97 struct ZSTDv06_frameParams_s { unsigned long long frameContentSize; unsigned windowLog; }; member
H A Dzstd_v05.h88 U32 windowLog; /* the only useful information to retrieve */ member
H A Dzstd_v04.c260 …U32 windowLog; /* largest match distance : larger == more compression, more memory needed duri… member
2569 params->windowLog = (((const BYTE*)src)[4] & 15) + ZSTD_WINDOWLOG_ABSOLUTEMIN; in ZSTD_getFrameParams()
2583 if ((MEM_32bits()) && (zc->params.windowLog > 25)) return ERROR(frameParameter_unsupported); in ZSTD_decodeFrameHeader_Part2()
3480 { size_t const neededOutSize = (size_t)1 << zbc->params.windowLog; in ZBUFF_decompressContinue()
H A Dzstd_v06.c2997 fparamsPtr->windowLog = (frameDesc & 0xF) + ZSTDv06_WINDOWLOG_ABSOLUTEMIN; in ZSTDv06_getFrameParams()
3017 if ((MEM_32bits()) && (zc->fParams.windowLog > 25)) return ERROR(frameParameter_unsupported); in ZSTDv06_decodeFrameHeader()
4062 { size_t const blockSize = MIN(1 << zbd->fParams.windowLog, ZSTDv06_BLOCKSIZE_MAX); in ZBUFFv06_decompressContinue()
4070 …{ size_t const neededOutSize = ((size_t)1 << zbd->fParams.windowLog) + blockSize + WILDCOPY_OVER… in ZBUFFv06_decompressContinue()
H A Dzstd_v05.c2814 params->windowLog = (((const BYTE*)src)[4] & 15) + ZSTDv05_WINDOWLOG_ABSOLUTEMIN; in ZSTDv05_getFrameParams()
2829 if ((MEM_32bits()) && (zc->params.windowLog > 25)) return ERROR(frameParameter_unsupported); in ZSTDv05_decodeFrameHeader_Part2()
3945 size_t neededOutSize = (size_t)1 << zbc->params.windowLog; in ZBUFFv05_decompressContinue()
H A Dzstd_v07.c3188 U32 const windowLog = (wlByte >> 3) + ZSTDv07_WINDOWLOG_ABSOLUTEMIN; in ZSTDv07_getFrameParams() local
3189 if (windowLog > ZSTDv07_WINDOWLOG_MAX) in ZSTDv07_getFrameParams()
3191 windowSize = (1U << windowLog); in ZSTDv07_getFrameParams()
/f-stack/freebsd/contrib/openzfs/module/zstd/lib/
H A Dzstd.c14134 if (cPar.windowLog > srcLog) cPar.windowLog = srcLog; in ZSTD_adjustCParams_internal()
14136 if (cPar.hashLog > cPar.windowLog+1) cPar.hashLog = cPar.windowLog+1; in ZSTD_adjustCParams_internal()
14170 if (CCtxParams->cParams.windowLog) cParams.windowLog = CCtxParams->cParams.windowLog; in ZSTD_getCParamsFromCCtxParams()
14357 assert(cParams1.windowLog == cParams2.windowLog); in ZSTD_assertEqualCParams()
14721 unsigned const windowLog = params.cParams.windowLog; in ZSTD_resetCCtx_byAttachingCDict() local
14727 params.cParams.windowLog = windowLog; in ZSTD_resetCCtx_byAttachingCDict()
14772 { unsigned const windowLog = params.cParams.windowLog; in ZSTD_resetCCtx_byCopyingCDict() local
14776 params.cParams.windowLog = windowLog; in ZSTD_resetCCtx_byCopyingCDict()
16645 params.cParams.windowLog = MAX(params.cParams.windowLog, limitedSrcLog); in ZSTD_compressBegin_usingCDict_advanced()
19331 const U32 windowLog = ms->cParams.windowLog; in ZSTD_compressBlock_lazy_extDict_generic() local
[all …]
H A Dzstd.h1146 …unsigned windowLog; /**< largest match distance : larger == more compression, more memory ne… member
/f-stack/freebsd/contrib/zstd/lib/decompress/
H A Dzstd_decompress.c295 U32 const windowLog = (wlByte >> 3) + ZSTD_WINDOWLOG_ABSOLUTEMIN; in ZSTD_getFrameHeader_advanced() local
296 RETURN_ERROR_IF(windowLog > ZSTD_WINDOWLOG_MAX, frameParameter_windowTooLarge, ""); in ZSTD_getFrameHeader_advanced()
297 windowSize = (1ULL << windowLog); in ZSTD_getFrameHeader_advanced()
/f-stack/freebsd/contrib/zstd/lib/
H A Dzstd.h1164 …unsigned windowLog; /**< largest match distance : larger == more compression, more memory ne… member
/f-stack/freebsd/contrib/zstd/zlibWrapper/
H A Dzstd_zlibwrapper.c211 …(int)pledgedSrcSize, params.cParams.windowLog, params.cParams.chainLog, params.cParams.hashLog, pa… in ZWRAP_initializeCStream()
/f-stack/freebsd/contrib/zstd/lib/dictBuilder/
H A Dzdict.c619 size_t const blockSizeMax = MIN (ZSTD_BLOCKSIZE_MAX, 1 << params->cParams.windowLog); in ZDICT_countEStats()

12