/freebsd/sys/contrib/openzfs/module/zstd/lib/compress/ |
H A D | zstd_compress.c | 554 CCtxParams->cParams.windowLog = (U32)value; in ZSTD_CCtxParams_setParameter() 555 return CCtxParams->cParams.windowLog; in ZSTD_CCtxParams_setParameter() 731 *value = (int)CCtxParams->cParams.windowLog; in ZSTD_CCtxParams_getParameter() 985 BOUNDCHECK(ZSTD_c_windowLog, (int)cParams.windowLog); in ZSTD_checkCParams() 1007 CLAMP(ZSTD_c_windowLog, cParams.windowLog); in ZSTD_clampCParams() 1050 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() 1054 if (cycleLog > cPar.windowLog) in ZSTD_adjustCParams_internal() 1055 cPar.chainLog -= (cycleLog - cPar.windowLog); in ZSTD_adjustCParams_internal() 1058 if (cPar.windowLog < ZSTD_WINDOWLOG_ABSOLUTEMIN) in ZSTD_adjustCParams_internal() [all …]
|
H A D | zstd_ldm.c | 25 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 D | zstd_lazy.c | 87 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 D | zstd_compress_internal.h | 181 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 D | zstd_fast.c | 64 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 D | zstd_double_fast.c | 67 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 D | zstd_compress.c | 245 if (cParams->windowLog > 14) mode = ZSTD_ps_enable; in ZSTD_resolveRowMatchFinderMode() 247 if (cParams->windowLog > 17) mode = ZSTD_ps_enable; in ZSTD_resolveRowMatchFinderMode() 256 …return (cParams->strategy >= ZSTD_btopt && cParams->windowLog >= 17) ? ZSTD_ps_enable : ZSTD_ps_di… in ZSTD_resolveBlockSplitterMode() 277 …return (cParams->strategy >= ZSTD_btopt && cParams->windowLog >= 27) ? ZSTD_ps_enable : ZSTD_ps_di… in ZSTD_resolveEnableLdm() 725 CCtxParams->cParams.windowLog = (U32)value; in ZSTD_CCtxParams_setParameter() 726 return CCtxParams->cParams.windowLog; in ZSTD_CCtxParams_setParameter() 941 *value = (int)CCtxParams->cParams.windowLog; in ZSTD_CCtxParams_getParameter() 1234 BOUNDCHECK(ZSTD_c_windowLog, (int)cParams.windowLog); in ZSTD_checkCParams() 1256 CLAMP(ZSTD_c_windowLog, cParams.windowLog); in ZSTD_clampCParams() 1282 static U32 ZSTD_dictAndWindowLog(U32 windowLog, U64 srcSize, U64 dictSize) in ZSTD_dictAndWindowLog() argument [all …]
|
H A D | zstd_ldm.c | 138 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 D | zstd_double_fast.c | 65 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 D | zstd_fast.c | 106 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 D | zstd_compress_internal.h | 274 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 D | zstd_lazy.c | 87 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 D | zstdmt_compress.c | 479 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 D | zstd_compress_superblock.c | 167 const int longOffsets = cctxParams->cParams.windowLog > STREAM_ACCUMULATOR_MIN; in ZSTD_compressSubBlock_sequences()
|
/freebsd/sys/contrib/zstd/programs/ |
H A D | zstdcli.c | 590 …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 D | fileio.c | 967 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() 2201 … unsigned const windowLog = FIO_highbit64(windowSize) + ((windowSize & (windowSize - 1)) != 0); in FIO_zstdErrorHelp() local [all …]
|
H A D | zstd.1.md | 142 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 D | benchzstd.c | 184 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 D | zstd_v05.h | 88 U32 windowLog; /* the only useful information to retrieve */ member
|
H A D | zstd_v06.h | 97 struct ZSTDv06_frameParams_s { unsigned long long frameContentSize; unsigned windowLog; }; member
|
H A D | zstd_v04.c | 257 …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 D | zbuff_compress.c | 81 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 D | zstd_decompress.c | 287 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 D | zstd_decompress.c | 485 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 D | zstd.h | 1121 …unsigned windowLog; /**< largest match distance : larger == more compression, more memory ne… member
|