/external/zstd/tests/ |
D | longmatch.c | 41 unsigned windowLog; in main() local 49 params.cParams.windowLog = 18; in main() 56 windowLog = params.cParams.windowLog; in main() 63 const size_t size = 1 << windowLog; in main() 65 char *srcBuffer = (char*) malloc(1 << windowLog); in main() 66 char *dstBuffer = (char*) malloc(ZSTD_compressBound(1 << windowLog)); in main() 67 ZSTD_outBuffer out = { dstBuffer, ZSTD_compressBound(1 << windowLog), 0 }; in main() 69 const size_t randomData = (1 << windowLog) - 2*sizeof(match); in main()
|
D | zstreamtest.c | 228 … CHECK_RET_Z(ZSTD_CCtx_getParameter(zc, ZSTD_c_windowLog, (int*)&savedParams->cParams.windowLog)); in getCCtxParams() 248 CHECK_RET(1, params.cParams.windowLog != savedParams.cParams.windowLog, "windowLog"); in badParameters() 1354 DISPLAYLEVEL(5, "cParams.windowLog = %u : ", cParams.windowLog); in basicUnitTests() 1395 cParams.windowLog = kMaxWindowLog; in basicUnitTests() 2144 cParams.windowLog += (FUZ_rand(&lseed) & 3) - 1; in fuzzerTests_newAPI() 2145 cParams.windowLog = MIN(windowLogMax, cParams.windowLog); in fuzzerTests_newAPI() 2155 DISPLAYLEVEL(5, "t%u: windowLog : %u \n", testNb, cParams.windowLog); in fuzzerTests_newAPI() 2156 … CHECK_Z( setCCtxParameter(zc, cctxParams, ZSTD_c_windowLog, cParams.windowLog, opaqueAPI) ); in fuzzerTests_newAPI() 2157 … assert(cParams.windowLog >= ZSTD_WINDOWLOG_MIN); /* guaranteed by ZSTD_adjustCParams() */ in fuzzerTests_newAPI() 2158 windowLogMalus = (cParams.windowLog - ZSTD_WINDOWLOG_MIN) / 5; in fuzzerTests_newAPI()
|
D | fullbench.c | 498 ZSTD_CCtx_setParameter(g_zcc, ZSTD_c_windowLog, (int)cparams.windowLog); in benchMem() 508 ZSTD_CCtx_setParameter(g_cstream, ZSTD_c_windowLog, (int)cparams.windowLog); in benchMem() 851 …gument, "windowLog=") || longCommandWArg(&argument, "wlog=")) { cparams.windowLog = readU32FromCha… in main()
|
D | README.md | 141 w# - windowLog
|
/external/zstd/contrib/pzstd/ |
D | Options.h | 59 if (maxWindowLog != 0 && params.cParams.windowLog > maxWindowLog) { in determineParameters() 60 params.cParams.windowLog = maxWindowLog; in determineParameters()
|
D | Pzstd.cpp | 339 return size_t{1} << (params.cParams.windowLog + 2); in calculateStep()
|
/external/zstd/lib/compress/ |
D | zstd_compress.c | 210 return cParams->strategy >= ZSTD_btopt && cParams->windowLog >= 27; in ZSTD_CParams_shouldEnableLdm() 615 CCtxParams->cParams.windowLog = (U32)value; in ZSTD_CCtxParams_setParameter() 616 return CCtxParams->cParams.windowLog; in ZSTD_CCtxParams_setParameter() 816 *value = (int)CCtxParams->cParams.windowLog; in ZSTD_CCtxParams_getParameter() 1100 BOUNDCHECK(ZSTD_c_windowLog, (int)cParams.windowLog); in ZSTD_checkCParams() 1122 CLAMP(ZSTD_c_windowLog, cParams.windowLog); in ZSTD_clampCParams() 1148 static U32 ZSTD_dictAndWindowLog(U32 windowLog, U64 srcSize, U64 dictSize) in ZSTD_dictAndWindowLog() argument 1153 return windowLog; in ZSTD_dictAndWindowLog() 1155 assert(windowLog <= ZSTD_WINDOWLOG_MAX); in ZSTD_dictAndWindowLog() 1158 U64 const windowSize = 1ULL << windowLog; in ZSTD_dictAndWindowLog() [all …]
|
D | zstd_ldm.c | 25 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()
|
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() 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()
|
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, 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()
|
D | zstd_compress_internal.h | 201 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()
|
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, curr, cParams->windowLog); in ZSTD_compressBlock_doubleFast_generic() 376 const U32 lowLimit = ZSTD_getLowestMatchIndex(ms, endIndex, cParams->windowLog); in ZSTD_compressBlock_doubleFast_extDict_generic()
|
D | zstdmt_compress.c | 471 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()
|
/external/zstd/tests/fuzz/ |
D | zstd_helpers.c | 39 cParams.windowLog = FUZZ_dataProducer_uint32Range(producer, ZSTD_WINDOWLOG_MIN, 15); in FUZZ_randomCParams() 71 set(cctx, ZSTD_c_windowLog, cParams.windowLog); in FUZZ_setRandomParameters()
|
D | sequence_compression_api.c | 134 size_t windowLog) { in generateRandomSequences() argument 144 uint32_t windowSize = 1 << windowLog; in generateRandomSequences()
|
/external/zstd/programs/ |
D | zstdcli.c | 541 …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()
|
D | zstd.1.md | 138 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.
|
D | fileio.c | 911 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()
|
D | benchzstd.c | 183 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()
|
/external/zstd/lib/legacy/ |
D | zstd_v05.h | 88 U32 windowLog; /* the only useful information to retrieve */ member
|
D | zstd_v06.h | 97 struct ZSTDv06_frameParams_s { unsigned long long frameContentSize; unsigned windowLog; }; member
|
D | zstd_v04.c | 260 …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()
|
/external/zstd/tests/regression/ |
D | config.c | 253 zparams.cParams.windowLog = value; in config_get_zstd_params()
|
/external/zstd/contrib/linux-kernel/ |
D | zstd_compress_module.c | 25 ZSTD_STATIC_ASSERT(offsetof(ZSTD_compressionParameters, windowLog) == in zstd_check_structs()
|
/external/zstd/lib/decompress/ |
D | zstd_decompress.c | 295 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()
|