Home
last modified time | relevance | path

Searched refs:cParams (Results 1 – 14 of 14) sorted by relevance

/linux-6.1.9/lib/zstd/compress/
Dzstd_compress.c199 static U32 ZSTD_CParams_shouldEnableLdm(const ZSTD_compressionParameters* const cParams) { in ZSTD_CParams_shouldEnableLdm() argument
200 return cParams->strategy >= ZSTD_btopt && cParams->windowLog >= 27; in ZSTD_CParams_shouldEnableLdm()
204 ZSTD_compressionParameters cParams) in ZSTD_makeCCtxParamsFromCParams() argument
209 cctxParams.cParams = cParams; in ZSTD_makeCCtxParamsFromCParams()
211 if (ZSTD_CParams_shouldEnableLdm(&cParams)) { in ZSTD_makeCCtxParamsFromCParams()
215 ZSTD_ldm_adjustParameters(&cctxParams.ldmParams, &cParams); in ZSTD_makeCCtxParamsFromCParams()
220 assert(!ZSTD_checkCParams(cParams)); in ZSTD_makeCCtxParamsFromCParams()
270 assert(!ZSTD_checkCParams(params->cParams)); in ZSTD_CCtxParams_init_internal()
272 cctxParams->cParams = params->cParams; in ZSTD_CCtxParams_init_internal()
283 FORWARD_IF_ERROR( ZSTD_checkCParams(params.cParams) , ""); in ZSTD_CCtxParams_init_advanced()
[all …]
Dzstd_fast.c19 const ZSTD_compressionParameters* const cParams = &ms->cParams; in ZSTD_fillHashTable() local
21 U32 const hBits = cParams->hashLog; in ZSTD_fillHashTable()
22 U32 const mls = cParams->minMatch; in ZSTD_fillHashTable()
52 const ZSTD_compressionParameters* const cParams = &ms->cParams; in ZSTD_compressBlock_fast_generic() local
54 U32 const hlog = cParams->hashLog; in ZSTD_compressBlock_fast_generic()
56 size_t const stepSize = cParams->targetLength + !(cParams->targetLength) + 1; in ZSTD_compressBlock_fast_generic()
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()
190 U32 const mls = ms->cParams.minMatch; in ZSTD_compressBlock_fast()
211 const ZSTD_compressionParameters* const cParams = &ms->cParams; in ZSTD_compressBlock_fast_dictMatchState_generic() local
[all …]
Dzstd_lazy.c24 const ZSTD_compressionParameters* const cParams = &ms->cParams; in ZSTD_updateDUBT() local
26 U32 const hashLog = cParams->hashLog; in ZSTD_updateDUBT()
29 U32 const btLog = cParams->chainLog - 1; in ZSTD_updateDUBT()
69 const ZSTD_compressionParameters* const cParams = &ms->cParams; in ZSTD_insertDUBT1() local
71 U32 const btLog = cParams->chainLog - 1; in ZSTD_insertDUBT1()
87 U32 const maxDistance = 1U << cParams->windowLog; in ZSTD_insertDUBT1()
163 const ZSTD_compressionParameters* const dmsCParams = &dms->cParams; in ZSTD_DUBT_findBetterDictMatch()
237 const ZSTD_compressionParameters* const cParams = &ms->cParams; in ZSTD_DUBT_findBestMatch() local
239 U32 const hashLog = cParams->hashLog; in ZSTD_DUBT_findBestMatch()
245 U32 const windowLow = ZSTD_getLowestMatchIndex(ms, curr, cParams->windowLog); in ZSTD_DUBT_findBestMatch()
[all …]
Dzstd_double_fast.c18 const ZSTD_compressionParameters* const cParams = &ms->cParams; in ZSTD_fillDoubleHashTable() local
20 U32 const hBitsL = cParams->hashLog; in ZSTD_fillDoubleHashTable()
21 U32 const mls = cParams->minMatch; in ZSTD_fillDoubleHashTable()
23 U32 const hBitsS = cParams->chainLog; in ZSTD_fillDoubleHashTable()
56 ZSTD_compressionParameters const* cParams = &ms->cParams; in ZSTD_compressBlock_doubleFast_generic() local
58 const U32 hBitsL = cParams->hashLog; in ZSTD_compressBlock_doubleFast_generic()
60 const U32 hBitsS = cParams->chainLog; in ZSTD_compressBlock_doubleFast_generic()
67 const U32 prefixLowestIndex = ZSTD_getLowestPrefixIndex(ms, endIndex, cParams->windowLog); in ZSTD_compressBlock_doubleFast_generic()
77 &dms->cParams : NULL; in ZSTD_compressBlock_doubleFast_generic()
105 assert(ms->window.dictLimit + (1U << cParams->windowLog) >= endIndex); in ZSTD_compressBlock_doubleFast_generic()
[all …]
Dzstd_opt.c386 const ZSTD_compressionParameters* const cParams = &ms->cParams; in ZSTD_insertBt1() local
388 U32 const hashLog = cParams->hashLog; in ZSTD_insertBt1()
391 U32 const btLog = cParams->chainLog - 1; in ZSTD_insertBt1()
409 U32 nbCompares = 1U << cParams->searchLog; in ZSTD_insertBt1()
517 ZSTD_updateTree_internal(ms, ip, iend, ms->cParams.minMatch, ZSTD_noDict); in ZSTD_updateTree()
531 const ZSTD_compressionParameters* const cParams = &ms->cParams; in ZSTD_insertBtAndGetAllMatches() local
532 U32 const sufficient_len = MIN(cParams->targetLength, ZSTD_OPT_NUM -1); in ZSTD_insertBtAndGetAllMatches()
535 U32 const hashLog = cParams->hashLog; in ZSTD_insertBtAndGetAllMatches()
541 U32 const btLog = cParams->chainLog - 1; in ZSTD_insertBtAndGetAllMatches()
549 U32 const windowLow = ZSTD_getLowestMatchIndex(ms, curr, cParams->windowLog); in ZSTD_insertBtAndGetAllMatches()
[all …]
Dzstd_ldm.c109 ZSTD_compressionParameters const* cParams) in ZSTD_ldm_adjustParameters() argument
111 params->windowLog = cParams->windowLog; in ZSTD_ldm_adjustParameters()
215 switch(ms->cParams.strategy) in ZSTD_ldm_fillFastTables()
627 const ZSTD_compressionParameters* const cParams = &ms->cParams; in ZSTD_ldm_blockCompress() local
628 unsigned const minMatch = cParams->minMatch; in ZSTD_ldm_blockCompress()
630 ZSTD_selectBlockCompressor(cParams->strategy, ZSTD_matchState_dictMode(ms)); in ZSTD_ldm_blockCompress()
639 if (cParams->strategy >= ZSTD_btopt) { in ZSTD_ldm_blockCompress()
Dzstd_ldm.h107 ZSTD_compressionParameters const* cParams);
Dzstd_compress_internal.h165 ZSTD_compressionParameters cParams; member
216 ZSTD_compressionParameters cParams; member
479 … return (cctxParams->cParams.strategy == ZSTD_fast) && (cctxParams->cParams.targetLength > 0); in ZSTD_disableLiteralsCompression()
Dzstd_compress_superblock.c178 ZSTD_strategy const strategy = cctxParams->cParams.strategy; in ZSTD_buildSuperBlockEntropy_sequences()
447 const int longOffsets = cctxParams->cParams.windowLog > STREAM_ACCUMULATOR_MIN; in ZSTD_compressSubBlock_sequences()
/linux-6.1.9/lib/zstd/
Dzstd_compress_module.c35 cctx, ZSTD_c_windowLog, parameters->cParams.windowLog)); in zstd_cctx_init()
37 cctx, ZSTD_c_hashLog, parameters->cParams.hashLog)); in zstd_cctx_init()
39 cctx, ZSTD_c_chainLog, parameters->cParams.chainLog)); in zstd_cctx_init()
41 cctx, ZSTD_c_searchLog, parameters->cParams.searchLog)); in zstd_cctx_init()
43 cctx, ZSTD_c_minMatch, parameters->cParams.minMatch)); in zstd_cctx_init()
45 cctx, ZSTD_c_targetLength, parameters->cParams.targetLength)); in zstd_cctx_init()
47 cctx, ZSTD_c_strategy, parameters->cParams.strategy)); in zstd_cctx_init()
/linux-6.1.9/include/linux/
Dzstd_lib.h1176 ZSTD_compressionParameters cParams; member
1422 ZSTDLIB_API size_t ZSTD_estimateCCtxSize_usingCParams(ZSTD_compressionParameters cParams);
1440 ZSTDLIB_API size_t ZSTD_estimateCStreamSize_usingCParams(ZSTD_compressionParameters cParams);
1451 …D_estimateCDictSize_advanced(size_t dictSize, ZSTD_compressionParameters cParams, ZSTD_dictLoadMet…
1486 ZSTD_compressionParameters cParams);
1515 ZSTD_compressionParameters cParams,
/linux-6.1.9/fs/btrfs/
Dzstd.c36 if (params.cParams.windowLog > ZSTD_BTRFS_MAX_WINDOWLOG) in zstd_get_btrfs_parameters()
37 params.cParams.windowLog = ZSTD_BTRFS_MAX_WINDOWLOG; in zstd_get_btrfs_parameters()
166 zstd_cstream_workspace_bound(&params.cParams), in zstd_calc_ws_mem_sizes()
/linux-6.1.9/crypto/
Dzstd.c36 const size_t wksp_size = zstd_cctx_workspace_bound(&params.cParams); in zstd_comp_init()
/linux-6.1.9/fs/f2fs/
Dcompress.c350 workspace_size = zstd_cstream_workspace_bound(&params.cParams); in zstd_init_compress_ctx()