Lines Matching refs:strategy
200 return cParams->strategy >= ZSTD_btopt && cParams->windowLog >= 27; in ZSTD_CParams_shouldEnableLdm()
644 CCtxParams->cParams.strategy = (ZSTD_strategy)value; in ZSTD_CCtxParams_setParameter()
645 return (size_t)CCtxParams->cParams.strategy; in ZSTD_CCtxParams_setParameter()
800 *value = (unsigned)CCtxParams->cParams.strategy; in ZSTD_CCtxParams_getParameter()
1054 BOUNDCHECK(ZSTD_c_strategy, cParams.strategy); in ZSTD_checkCParams()
1076 CLAMP_TYPE(ZSTD_c_strategy,cParams.strategy, ZSTD_strategy); in ZSTD_clampCParams()
1177 U32 const cycleLog = ZSTD_cycleLog(cPar.chainLog, cPar.strategy); in ZSTD_adjustCParams_internal()
1212 if (overrides->strategy) cParams->strategy = overrides->strategy; in ZSTD_overrideCParams()
1234 … size_t const chainSize = (cParams->strategy == ZSTD_fast) ? 0 : ((size_t)1 << cParams->chainLog); in ZSTD_sizeof_matchState()
1250 size_t const optSpace = (forCCtx && (cParams->strategy >= ZSTD_btopt)) in ZSTD_sizeof_matchState()
1428 assert(cParams1.strategy == cParams2.strategy); in ZSTD_assertEqualCParams()
1491 … size_t const chainSize = (cParams->strategy == ZSTD_fast) ? 0 : ((size_t)1 << cParams->chainLog); in ZSTD_reset_matchState()
1525 if ((forWho == ZSTD_resetTarget_CCtx) && (cParams->strategy >= ZSTD_btopt)) { in ZSTD_reset_matchState()
1753 size_t cutoff = attachDictSizeCutoffs[cdict->matchState.cParams.strategy]; in ZSTD_shouldAttachDict()
1788 assert(cctx->appliedParams.cParams.strategy == adjusted_cdict_cParams.strategy); in ZSTD_resetCCtx_byAttachingCDict()
1840 assert(cctx->appliedParams.cParams.strategy == cdict_cParams->strategy); in ZSTD_resetCCtx_byCopyingCDict()
1848 …{ size_t const chainSize = (cdict_cParams->strategy == ZSTD_fast) ? 0 : ((size_t)1 << cdict_cPar… in ZSTD_resetCCtx_byCopyingCDict()
1932 assert(dstCCtx->appliedParams.cParams.strategy == srcCCtx->appliedParams.cParams.strategy); in ZSTD_copyCCtx_internal()
1941 …{ size_t const chainSize = (srcCCtx->appliedParams.cParams.strategy == ZSTD_fast) ? 0 : ((size_t… in ZSTD_copyCCtx_internal()
2043 if (params->cParams.strategy != ZSTD_fast) { in ZSTD_reduceIndex()
2045 if (params->cParams.strategy == ZSTD_btlazy2) in ZSTD_reduceIndex()
2108 ZSTD_strategy const strategy = cctxParams->cParams.strategy; in ZSTD_entropyCompressSequences_internal() local
2137 cctxParams->cParams.strategy, in ZSTD_entropyCompressSequences_internal()
2184 ZSTD_defaultAllowed, strategy); in ZSTD_entropyCompressSequences_internal()
2213 defaultPolicy, strategy); in ZSTD_entropyCompressSequences_internal()
2239 ZSTD_defaultAllowed, strategy); in ZSTD_entropyCompressSequences_internal()
2312 { size_t const maxCSize = srcSize - ZSTD_minGain(srcSize, cctxParams->cParams.strategy); in ZSTD_entropyCompressSequences()
2399 if (zc->appliedParams.cParams.strategy >= ZSTD_btopt) { in ZSTD_buildSeqStore()
2458 …r const blockCompressor = ZSTD_selectBlockCompressor(zc->appliedParams.cParams.strategy, dictMode); in ZSTD_buildSeqStore()
2719 … size_t const maxCSize = srcSize - ZSTD_minGain(srcSize, zc->appliedParams.cParams.strategy); in ZSTD_compressBlock_targetCBlockSize_body()
2764 U32 const cycleLog = ZSTD_cycleLog(params->cParams.chainLog, params->cParams.strategy); in ZSTD_overflowCorrectIfNeeded()
3082 switch(params->cParams.strategy) in ZSTD_loadDictionaryContent()
4979 switch (cParams.strategy) { in ZSTD_dedicatedDictSearch_getCParams()
5000 return (cParams->strategy >= ZSTD_greedy) in ZSTD_dedicatedDictSearch_isSupported()
5001 && (cParams->strategy <= ZSTD_lazy2) in ZSTD_dedicatedDictSearch_isSupported()
5013 switch (cParams->strategy) { in ZSTD_dedicatedDictSearch_revertCParams()