Home
last modified time | relevance | path

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

12

/freebsd/sys/contrib/openzfs/module/zstd/lib/compress/
H A Dzstd_compress.c1050 if (cPar.windowLog > srcLog) cPar.windowLog = srcLog; in ZSTD_adjustCParams_internal()
1052 if (cPar.hashLog > cPar.windowLog+1) cPar.hashLog = cPar.windowLog+1; in ZSTD_adjustCParams_internal()
1086 if (CCtxParams->cParams.windowLog) cParams.windowLog = CCtxParams->cParams.windowLog; in ZSTD_getCParamsFromCCtxParams()
1273 assert(cParams1.windowLog == cParams2.windowLog); in ZSTD_assertEqualCParams()
1637 unsigned const windowLog = params.cParams.windowLog; in ZSTD_resetCCtx_byAttachingCDict() local
1638 assert(windowLog != 0); in ZSTD_resetCCtx_byAttachingCDict()
1643 params.cParams.windowLog = windowLog; in ZSTD_resetCCtx_byAttachingCDict()
1688 { unsigned const windowLog = params.cParams.windowLog; in ZSTD_resetCCtx_byCopyingCDict() local
1689 assert(windowLog != 0); in ZSTD_resetCCtx_byCopyingCDict()
1692 params.cParams.windowLog = windowLog; in ZSTD_resetCCtx_byCopyingCDict()
[all …]
H A Dzstd_ldm.c25 params->windowLog = cParams->windowLog; in ZSTD_ldm_adjustParameters()
38 params->hashLog = MAX(ZSTD_HASHLOG_MIN, params->windowLog - LDM_HASH_RLOG); in ZSTD_ldm_adjustParameters()
42 params->hashRateLog = params->windowLog < params->hashLog in ZSTD_ldm_adjustParameters()
44 : params->windowLog - params->hashLog; in ZSTD_ldm_adjustParameters()
433 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, current, cParams->windowLog); in ZSTD_DUBT_findBestMatch()
497 const U32 maxDistance = 1U << cParams->windowLog; in ZSTD_HcFindBestMatch_generic()
671 U32 const windowLow = ZSTD_getLowestPrefixIndex(ms, current, ms->cParams.windowLog); in ZSTD_compressBlock_lazy_generic()
946 const U32 windowLog = ms->cParams.windowLog; in ZSTD_compressBlock_lazy_extDict_generic() local
974 { const U32 windowLow = ZSTD_getLowestMatchIndex(ms, current+1, windowLog); in ZSTD_compressBlock_lazy_extDict_generic()
1006 const U32 windowLow = ZSTD_getLowestMatchIndex(ms, current, windowLog); in ZSTD_compressBlock_lazy_extDict_generic()
1038 const U32 windowLow = ZSTD_getLowestMatchIndex(ms, current, windowLog); in ZSTD_compressBlock_lazy_extDict_generic()
1085 const U32 windowLow = ZSTD_getLowestMatchIndex(ms, repCurrent, windowLog); in ZSTD_compressBlock_lazy_extDict_generic()
H A Dzstd_compress_internal.h181 U32 windowLog; /* Window log for the LDM */ member
976 …M_STATIC U32 ZSTD_getLowestMatchIndex(const ZSTD_matchState_t* ms, U32 current, unsigned windowLog) in ZSTD_getLowestMatchIndex() argument
978 U32 const maxDistance = 1U << windowLog; in ZSTD_getLowestMatchIndex()
989 …_STATIC U32 ZSTD_getLowestPrefixIndex(const ZSTD_matchState_t* ms, U32 current, unsigned windowLog) in ZSTD_getLowestPrefixIndex() argument
991 U32 const maxDistance = 1U << windowLog; in ZSTD_getLowestPrefixIndex()
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, current, 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_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, current, cParams->windowLog); in ZSTD_compressBlock_doubleFast_generic()
376 const U32 lowLimit = ZSTD_getLowestMatchIndex(ms, endIndex, cParams->windowLog); in ZSTD_compressBlock_doubleFast_extDict_generic()
/freebsd/sys/contrib/zstd/lib/compress/
H A Dzstd_compress.c1287 return windowLog; in ZSTD_dictAndWindowLog()
1359 if (cPar.windowLog > srcLog) cPar.windowLog = srcLog; in ZSTD_adjustCParams_internal()
1392 if (overrides->windowLog) cParams->windowLog = overrides->windowLog; in ZSTD_overrideCParams()
1658 assert(cParams1.windowLog == cParams2.windowLog); in ZSTD_assertEqualCParams()
2051 unsigned const windowLog = params.cParams.windowLog; in ZSTD_resetCCtx_byAttachingCDict() local
2052 assert(windowLog != 0); in ZSTD_resetCCtx_byAttachingCDict()
2063 params.cParams.windowLog = windowLog; in ZSTD_resetCCtx_byAttachingCDict()
2113 { unsigned const windowLog = params.cParams.windowLog; in ZSTD_resetCCtx_byCopyingCDict() local
2114 assert(windowLog != 0); in ZSTD_resetCCtx_byCopyingCDict()
2117 params.cParams.windowLog = windowLog; in ZSTD_resetCCtx_byCopyingCDict()
[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_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.h274 U32 windowLog; /* Window log for the LDM */ member
1298 MEM_STATIC U32 ZSTD_getLowestMatchIndex(const ZSTD_matchState_t* ms, U32 curr, unsigned windowLog) in ZSTD_getLowestMatchIndex() argument
1300 U32 const maxDistance = 1U << windowLog; in ZSTD_getLowestMatchIndex()
1315 MEM_STATIC U32 ZSTD_getLowestPrefixIndex(const ZSTD_matchState_t* ms, U32 curr, unsigned windowLog) in ZSTD_getLowestPrefixIndex() argument
1317 U32 const maxDistance = 1U << windowLog; in ZSTD_getLowestPrefixIndex()
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()
1147 const U32 maxDistance = 1U << cParams->windowLog; in ZSTD_RowFindBestMatch()
1514 U32 const windowLow = ZSTD_getLowestPrefixIndex(ms, curr, ms->cParams.windowLog); in ZSTD_compressBlock_lazy_generic()
1883 const U32 windowLog = ms->cParams.windowLog; in ZSTD_compressBlock_lazy_extDict_generic() local
1913 { const U32 windowLow = ZSTD_getLowestMatchIndex(ms, curr+1, windowLog); in ZSTD_compressBlock_lazy_extDict_generic()
1945 const U32 windowLow = ZSTD_getLowestMatchIndex(ms, curr, windowLog); in ZSTD_compressBlock_lazy_extDict_generic()
1977 const U32 windowLow = ZSTD_getLowestMatchIndex(ms, curr, windowLog); in ZSTD_compressBlock_lazy_extDict_generic()
2024 const U32 windowLow = ZSTD_getLowestMatchIndex(ms, repCurrent, windowLog); in ZSTD_compressBlock_lazy_extDict_generic()
H A Dzstdmt_compress.c479 DEBUGLOG(4, "LDM window size = %u KB", (1U << params.cParams.windowLog) >> 10); in ZSTDMT_serialState_reset()
1066 …U32 const saved_wlog = mtctx->params.cParams.windowLog; /* Do not modify windowLog while compres… in ZSTDMT_updateCParams_whileCompressing()
1072 cParams.windowLog = saved_wlog; in ZSTDMT_updateCParams_whileCompressing()
1161 jobLog = MAX(20, params->cParams.windowLog + 2); in ZSTDMT_computeTargetJobLog()
1197 int ovLog = (overlapRLog >= 8) ? 0 : (params->cParams.windowLog - overlapRLog); in ZSTDMT_computeOverlapSize()
1204 ovLog = MIN(params->cParams.windowLog, ZSTDMT_computeTargetJobLog(params) - 2) in ZSTDMT_computeOverlapSize()
1286 … mtctx->params.ldmParams.enableLdm == ZSTD_ps_enable ? (1U << mtctx->params.cParams.windowLog) : 0; in ZSTDMT_initCStream_internal()
H A Dzstd_compress_superblock.c167 const int longOffsets = cctxParams->cParams.windowLog > STREAM_ACCUMULATOR_MIN; in ZSTD_compressSubBlock_sequences()
/freebsd/sys/contrib/zstd/programs/
H A Dzstdcli.c590 …ngPtr, "windowLog=") || longCommandWArg(&stringPtr, "wlog=")) { params->windowLog = readU32FromCha… in parseCompressionParameters()
606 …DISPLAYLEVEL(4, "windowLog=%d, chainLog=%d, hashLog=%d, searchLog=%d \n", params->windowLog, param… in parseCompressionParameters()
663 DISPLAY(" - windowLog : %u\n", cParams.windowLog); in printDefaultCParams()
678 … actualCParams.windowLog = cParams->windowLog == 0 ? actualCParams.windowLog : cParams->windowLog; in printActualCParams()
686 … actualCParams.windowLog, actualCParams.chainLog, actualCParams.hashLog, actualCParams.searchLog, in printActualCParams()
1023 if (compressionParams.windowLog == 0) in main()
1024 compressionParams.windowLog = ldmWindowLog; in main()
1415 if (compressionParams.windowLog == 0) { in main()
1418 memLimit = (U32)1 << (compressionParams.windowLog & 31); in main()
H A Dfileio.c967 comprParams->windowLog = MAX(ZSTD_WINDOWLOG_MIN, MIN(ZSTD_WINDOWLOG_MAX, fileWindowLog)); in FIO_adjustParamsForPatchFromMode()
1013 if (prefs->adaptiveMode && !prefs->ldmFlag && !comprParams.windowLog) in FIO_createCResources()
1014 comprParams.windowLog = ADAPT_WINDOWLOG_DEFAULT; in FIO_createCResources()
1037 CHECK( ZSTD_CCtx_setParameter(ress.cctx, ZSTD_c_windowLog, (int)comprParams.windowLog) ); in FIO_createCResources()
1374 int windowLog; in FIO_compressZstdFrame() local
1376 CHECK(ZSTD_CCtx_getParameter(ress.cctx, ZSTD_c_windowLog, &windowLog)); in FIO_compressZstdFrame()
1377 if (windowLog == 0) { in FIO_compressZstdFrame()
1379 windowLog = cParams.windowLog; in FIO_compressZstdFrame()
1381 windowSize = UTIL_makeHumanReadableSize(MAX(1ULL, MIN(1ULL << windowLog, pledgedSrcSize))); in FIO_compressZstdFrame()
2205 if (windowLog <= ZSTD_WINDOWLOG_MAX) { in FIO_zstdErrorHelp()
[all …]
H A Dzstd.1.md142 enables long distance matching with `#` `windowLog`, if not `#` is not
144 This increases the window size (`windowLog`) and memory usage for both the
149 Note: If `windowLog` is set to larger than 27, `--long=windowLog` or
160 (fileLog being the windowLog required to cover the whole file). You
469 - `windowLog`=_wlog_, `wlog`=_wlog_:
478 Note: If `windowLog` is set to larger than 27, `--long=windowLog` or
508 The minimum _slog_ is 1 and the maximum is 'windowLog' - 1.
H A Dbenchzstd.c184 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()
/freebsd/sys/contrib/zstd/lib/legacy/
H A Dzstd_v05.h88 U32 windowLog; /* the only useful information to retrieve */ member
H A Dzstd_v06.h97 struct ZSTDv06_frameParams_s { unsigned long long frameContentSize; unsigned windowLog; }; member
H A Dzstd_v04.c257 …U32 windowLog; /* largest match distance : larger == more compression, more memory needed duri… member
2565 params->windowLog = (((const BYTE*)src)[4] & 15) + ZSTD_WINDOWLOG_ABSOLUTEMIN; in ZSTD_getFrameParams()
2579 if ((MEM_32bits()) && (zc->params.windowLog > 25)) return ERROR(frameParameter_unsupported); in ZSTD_decodeFrameHeader_Part2()
3476 { size_t const neededOutSize = (size_t)1 << zbc->params.windowLog; in ZBUFF_decompressContinue()
/freebsd/sys/contrib/zstd/lib/deprecated/
H A Dzbuff_compress.c81 FORWARD_IF_ERROR(ZSTD_CCtx_setParameter(zbc, ZSTD_c_windowLog, params.cParams.windowLog), ""); in ZBUFF_compressInit_advanced()
/freebsd/sys/contrib/openzfs/module/zstd/lib/decompress/
H A Dzstd_decompress.c287 U32 const windowLog = (wlByte >> 3) + ZSTD_WINDOWLOG_ABSOLUTEMIN; in ZSTD_getFrameHeader_advanced() local
288 RETURN_ERROR_IF(windowLog > ZSTD_WINDOWLOG_MAX, frameParameter_windowTooLarge, ""); in ZSTD_getFrameHeader_advanced()
289 windowSize = (1ULL << windowLog); in ZSTD_getFrameHeader_advanced()
/freebsd/sys/contrib/zstd/lib/decompress/
H A Dzstd_decompress.c485 U32 const windowLog = (wlByte >> 3) + ZSTD_WINDOWLOG_ABSOLUTEMIN; in ZSTD_getFrameHeader_advanced() local
486 RETURN_ERROR_IF(windowLog > ZSTD_WINDOWLOG_MAX, frameParameter_windowTooLarge, ""); in ZSTD_getFrameHeader_advanced()
487 windowSize = (1ULL << windowLog); in ZSTD_getFrameHeader_advanced()
/freebsd/sys/contrib/openzfs/module/zstd/lib/
H A Dzstd.h1121 …unsigned windowLog; /**< largest match distance : larger == more compression, more memory ne… member

12