Lines Matching refs:strategy
221 static int ZSTD_rowMatchFinderSupported(const ZSTD_strategy strategy) { in ZSTD_rowMatchFinderSupported() argument
222 return (strategy >= ZSTD_greedy && strategy <= ZSTD_lazy2); in ZSTD_rowMatchFinderSupported()
228 static int ZSTD_rowMatchFinderUsed(const ZSTD_strategy strategy, const ZSTD_paramSwitch_e mode) { in ZSTD_rowMatchFinderUsed() argument
230 return ZSTD_rowMatchFinderSupported(strategy) && (mode == ZSTD_ps_enable); in ZSTD_rowMatchFinderUsed()
243 if (!ZSTD_rowMatchFinderSupported(cParams->strategy)) return mode; in ZSTD_resolveRowMatchFinderMode()
256 …return (cParams->strategy >= ZSTD_btopt && cParams->windowLog >= 17) ? ZSTD_ps_enable : ZSTD_ps_di… in ZSTD_resolveBlockSplitterMode()
260 static int ZSTD_allocateChainTable(const ZSTD_strategy strategy, in ZSTD_allocateChainTable() argument
267 …return forDDSDict || ((strategy != ZSTD_fast) && !ZSTD_rowMatchFinderUsed(strategy, useRowMatchFin… in ZSTD_allocateChainTable()
277 …return (cParams->strategy >= ZSTD_btopt && cParams->windowLog >= 27) ? ZSTD_ps_enable : ZSTD_ps_di… in ZSTD_resolveEnableLdm()
760 CCtxParams->cParams.strategy = (ZSTD_strategy)value; in ZSTD_CCtxParams_setParameter()
761 return (size_t)CCtxParams->cParams.strategy; in ZSTD_CCtxParams_setParameter()
959 *value = (unsigned)CCtxParams->cParams.strategy; in ZSTD_CCtxParams_getParameter()
1240 BOUNDCHECK(ZSTD_c_strategy, cParams.strategy); in ZSTD_checkCParams()
1262 CLAMP_TYPE(ZSTD_c_strategy,cParams.strategy, ZSTD_strategy); in ZSTD_clampCParams()
1363 U32 const cycleLog = ZSTD_cycleLog(cPar.chainLog, cPar.strategy); in ZSTD_adjustCParams_internal()
1398 if (overrides->strategy) cParams->strategy = overrides->strategy; in ZSTD_overrideCParams()
1423 …size_t const chainSize = ZSTD_allocateChainTable(cParams->strategy, useRowMatchFinder, enableDedic… in ZSTD_sizeof_matchState()
1441 size_t const lazyAdditionalSpace = ZSTD_rowMatchFinderUsed(cParams->strategy, useRowMatchFinder) in ZSTD_sizeof_matchState()
1444 size_t const optSpace = (forCCtx && (cParams->strategy >= ZSTD_btopt)) in ZSTD_sizeof_matchState()
1521 if (ZSTD_rowMatchFinderSupported(cParams.strategy)) { in ZSTD_estimateCCtxSize_usingCParams()
1583 if (ZSTD_rowMatchFinderSupported(cParams.strategy)) { in ZSTD_estimateCStreamSize_usingCParams()
1664 assert(cParams1.strategy == cParams2.strategy); in ZSTD_assertEqualCParams()
1730 size_t const chainSize = ZSTD_allocateChainTable(cParams->strategy, useRowMatchFinder, in ZSTD_reset_matchState()
1768 if ((forWho == ZSTD_resetTarget_CCtx) && (cParams->strategy >= ZSTD_btopt)) { in ZSTD_reset_matchState()
1778 if (ZSTD_rowMatchFinderUsed(cParams->strategy, useRowMatchFinder)) { in ZSTD_reset_matchState()
2029 size_t cutoff = attachDictSizeCutoffs[cdict->matchState.cParams.strategy]; in ZSTD_shouldAttachDict()
2068 assert(cctx->appliedParams.cParams.strategy == adjusted_cdict_cParams.strategy); in ZSTD_resetCCtx_byAttachingCDict()
2122 assert(cctx->appliedParams.cParams.strategy == cdict_cParams->strategy); in ZSTD_resetCCtx_byCopyingCDict()
2131 …{ size_t const chainSize = ZSTD_allocateChainTable(cdict_cParams->strategy, cdict->useRowMatchFi… in ZSTD_resetCCtx_byCopyingCDict()
2140 …if (ZSTD_allocateChainTable(cctx->appliedParams.cParams.strategy, cctx->appliedParams.useRowMatchF… in ZSTD_resetCCtx_byCopyingCDict()
2146 if (ZSTD_rowMatchFinderUsed(cdict_cParams->strategy, cdict->useRowMatchFinder)) { in ZSTD_resetCCtx_byCopyingCDict()
2233 assert(dstCCtx->appliedParams.cParams.strategy == srcCCtx->appliedParams.cParams.strategy); in ZSTD_copyCCtx_internal()
2242 { size_t const chainSize = ZSTD_allocateChainTable(srcCCtx->appliedParams.cParams.strategy, in ZSTD_copyCCtx_internal()
2367 …if (ZSTD_allocateChainTable(params->cParams.strategy, params->useRowMatchFinder, (U32)ms->dedicate… in ZSTD_reduceIndex()
2369 if (params->cParams.strategy == ZSTD_btlazy2) in ZSTD_reduceIndex()
2454 ZSTD_strategy strategy, unsigned* countWorkspace, in ZSTD_buildSequencesStatistics() argument
2481 ZSTD_defaultAllowed, strategy); in ZSTD_buildSequencesStatistics()
2514 defaultPolicy, strategy); in ZSTD_buildSequencesStatistics()
2544 ZSTD_defaultAllowed, strategy); in ZSTD_buildSequencesStatistics()
2583 ZSTD_strategy const strategy = cctxParams->cParams.strategy; in ZSTD_entropyCompressSeqStore_internal() local
2614 cctxParams->cParams.strategy, in ZSTD_entropyCompressSeqStore_internal()
2652 strategy, count, in ZSTD_entropyCompressSeqStore_internal()
2714 { size_t const maxCSize = srcSize - ZSTD_minGain(srcSize, cctxParams->cParams.strategy); in ZSTD_entropyCompressSeqStore()
2822 if (zc->appliedParams.cParams.strategy >= ZSTD_btopt) { in ZSTD_buildSeqStore()
2883 …ckCompressor const blockCompressor = ZSTD_selectBlockCompressor(zc->appliedParams.cParams.strategy, in ZSTD_buildSeqStore()
3180 ZSTD_strategy const strategy = cctxParams->cParams.strategy; in ZSTD_buildBlockEntropyStats_sequences() local
3193 strategy, countWorkspace, in ZSTD_buildBlockEntropyStats_sequences()
3864 … size_t const maxCSize = srcSize - ZSTD_minGain(srcSize, zc->appliedParams.cParams.strategy); in ZSTD_compressBlock_targetCBlockSize_body()
3907 U32 const cycleLog = ZSTD_cycleLog(params->cParams.chainLog, params->cParams.strategy); in ZSTD_overflowCorrectIfNeeded()
4249 switch(params->cParams.strategy) in ZSTD_loadDictionaryContent()
6193 switch (cParams.strategy) { in ZSTD_dedicatedDictSearch_getCParams()
6214 return (cParams->strategy >= ZSTD_greedy) in ZSTD_dedicatedDictSearch_isSupported()
6215 && (cParams->strategy <= ZSTD_lazy2) in ZSTD_dedicatedDictSearch_isSupported()
6227 switch (cParams->strategy) { in ZSTD_dedicatedDictSearch_revertCParams()
6286 …"ZSTD_getCParams_internal selected tableID: %u row: %u strat: %u", tableID, row, (U32)cp.strategy); in ZSTD_getCParams_internal()