Home
last modified time | relevance | path

Searched refs:strategy (Results 1 – 12 of 12) sorted by relevance

/lib/zstd/compress/
Dzstd_compress_literals.c72 ZSTD_strategy strategy, int disableLiteralCompression, in ZSTD_compressLiterals() argument
79 size_t const minGain = ZSTD_minGain(srcSize, strategy); in ZSTD_compressLiterals()
103 int const preferRepeat = strategy < ZSTD_lazy ? srcSize <= 1024 : 0; in ZSTD_compressLiterals()
Dzstd_compress.c211 static int ZSTD_rowMatchFinderSupported(const ZSTD_strategy strategy) { in ZSTD_rowMatchFinderSupported() argument
212 return (strategy >= ZSTD_greedy && strategy <= ZSTD_lazy2); in ZSTD_rowMatchFinderSupported()
218 static int ZSTD_rowMatchFinderUsed(const ZSTD_strategy strategy, const ZSTD_paramSwitch_e mode) { in ZSTD_rowMatchFinderUsed() argument
220 return ZSTD_rowMatchFinderSupported(strategy) && (mode == ZSTD_ps_enable); in ZSTD_rowMatchFinderUsed()
233 if (!ZSTD_rowMatchFinderSupported(cParams->strategy)) return mode; in ZSTD_resolveRowMatchFinderMode()
246 …return (cParams->strategy >= ZSTD_btopt && cParams->windowLog >= 17) ? ZSTD_ps_enable : ZSTD_ps_di… in ZSTD_resolveBlockSplitterMode()
250 static int ZSTD_allocateChainTable(const ZSTD_strategy strategy, in ZSTD_allocateChainTable() argument
257 …return forDDSDict || ((strategy != ZSTD_fast) && !ZSTD_rowMatchFinderUsed(strategy, useRowMatchFin… in ZSTD_allocateChainTable()
267 …return (cParams->strategy >= ZSTD_btopt && cParams->windowLog >= 27) ? ZSTD_ps_enable : ZSTD_ps_di… in ZSTD_resolveEnableLdm()
737 CCtxParams->cParams.strategy = (ZSTD_strategy)value; in ZSTD_CCtxParams_setParameter()
[all …]
Dzstd_compress_literals.h24 ZSTD_strategy strategy, int disableLiteralCompression,
Dzstd_compress_sequences.h29 ZSTD_strategy const strategy);
Dzstd_compress_sequences.c163 ZSTD_strategy const strategy) in ZSTD_selectEncodingType() argument
179 if (strategy < ZSTD_lazy) { in ZSTD_selectEncodingType()
182 size_t const mult = 10 - strategy; in ZSTD_selectEncodingType()
Dzstd_ldm.c242 switch(ms->cParams.strategy) in ZSTD_ldm_fillFastTables()
668 … ZSTD_selectBlockCompressor(cParams->strategy, useRowMatchFinder, ZSTD_matchState_dictMode(ms)); in ZSTD_ldm_blockCompress()
677 if (cParams->strategy >= ZSTD_btopt) { in ZSTD_ldm_blockCompress()
Dzstd_compress_internal.h547 … return (cctxParams->cParams.strategy == ZSTD_fast) && (cctxParams->cParams.targetLength > 0); in ZSTD_literalsCompressionIsDisabled()
/lib/zlib_dfltcc/
Ddfltcc_util.h120 int strategy, in dfltcc_are_params_ok() argument
126 (strategy == Z_DEFAULT_STRATEGY); in dfltcc_are_params_ok()
Ddfltcc_deflate.c28 if (!dfltcc_are_params_ok(state->level, state->w_bits, state->strategy, in dfltcc_can_deflate()
/lib/zlib_deflate/
Ddeflate.c194 int strategy in zlib_deflateInit2() argument
221 strategy < 0 || strategy > Z_HUFFMAN_ONLY) { in zlib_deflateInit2()
275 s->strategy = strategy; in zlib_deflateInit2()
960 if (s->strategy != Z_HUFFMAN_ONLY) { in deflate_fast()
1058 if (s->strategy != Z_HUFFMAN_ONLY) { in deflate_slow()
1063 if (s->match_length <= 5 && (s->strategy == Z_FILTERED || in deflate_slow()
Ddefutil.h161 int strategy; /* favor or force Huffman coding*/ member
/lib/zstd/
Dzstd_compress_module.c47 cctx, ZSTD_c_strategy, parameters->cParams.strategy)); in zstd_cctx_init()