/linux-6.1.9/lib/zstd/compress/ |
D | zstd_compress.c | 199 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 …]
|
D | zstd_fast.c | 19 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 …]
|
D | zstd_lazy.c | 24 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 …]
|
D | zstd_double_fast.c | 18 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 …]
|
D | zstd_opt.c | 386 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 …]
|
D | zstd_ldm.c | 109 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()
|
D | zstd_ldm.h | 107 ZSTD_compressionParameters const* cParams);
|
D | zstd_compress_internal.h | 165 ZSTD_compressionParameters cParams; member 216 ZSTD_compressionParameters cParams; member 479 … return (cctxParams->cParams.strategy == ZSTD_fast) && (cctxParams->cParams.targetLength > 0); in ZSTD_disableLiteralsCompression()
|
D | zstd_compress_superblock.c | 178 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/ |
D | zstd_compress_module.c | 35 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/ |
D | zstd_lib.h | 1176 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/ |
D | zstd.c | 36 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(¶ms.cParams), in zstd_calc_ws_mem_sizes()
|
/linux-6.1.9/crypto/ |
D | zstd.c | 36 const size_t wksp_size = zstd_cctx_workspace_bound(¶ms.cParams); in zstd_comp_init()
|
/linux-6.1.9/fs/f2fs/ |
D | compress.c | 350 workspace_size = zstd_cstream_workspace_bound(¶ms.cParams); in zstd_init_compress_ctx()
|