Lines Matching refs:cParams
90 size_t ZSTD_CCtxWorkspaceBound(ZSTD_compressionParameters cParams) in ZSTD_CCtxWorkspaceBound() argument
92 size_t const blockSize = MIN(ZSTD_BLOCKSIZE_ABSOLUTEMAX, (size_t)1 << cParams.windowLog); in ZSTD_CCtxWorkspaceBound()
93 U32 const divider = (cParams.searchLength == 3) ? 3 : 4; in ZSTD_CCtxWorkspaceBound()
96 size_t const chainSize = (cParams.strategy == ZSTD_fast) ? 0 : (1 << cParams.chainLog); in ZSTD_CCtxWorkspaceBound()
97 size_t const hSize = ((size_t)1) << cParams.hashLog; in ZSTD_CCtxWorkspaceBound()
98 U32 const hashLog3 = (cParams.searchLength > 3) ? 0 : MIN(ZSTD_HASHLOG3_MAX, cParams.windowLog); in ZSTD_CCtxWorkspaceBound()
104 (((cParams.strategy == ZSTD_btopt) || (cParams.strategy == ZSTD_btopt2)) ? optSpace : 0); in ZSTD_CCtxWorkspaceBound()
148 size_t ZSTD_checkCParams(ZSTD_compressionParameters cParams) in ZSTD_checkCParams() argument
155 CLAMPCHECK(cParams.windowLog, ZSTD_WINDOWLOG_MIN, ZSTD_WINDOWLOG_MAX); in ZSTD_checkCParams()
156 CLAMPCHECK(cParams.chainLog, ZSTD_CHAINLOG_MIN, ZSTD_CHAINLOG_MAX); in ZSTD_checkCParams()
157 CLAMPCHECK(cParams.hashLog, ZSTD_HASHLOG_MIN, ZSTD_HASHLOG_MAX); in ZSTD_checkCParams()
158 CLAMPCHECK(cParams.searchLog, ZSTD_SEARCHLOG_MIN, ZSTD_SEARCHLOG_MAX); in ZSTD_checkCParams()
159 CLAMPCHECK(cParams.searchLength, ZSTD_SEARCHLENGTH_MIN, ZSTD_SEARCHLENGTH_MAX); in ZSTD_checkCParams()
160 CLAMPCHECK(cParams.targetLength, ZSTD_TARGETLENGTH_MIN, ZSTD_TARGETLENGTH_MAX); in ZSTD_checkCParams()
161 if ((U32)(cParams.strategy) > (U32)ZSTD_btopt2) in ZSTD_checkCParams()
211 …return (param1.cParams.hashLog == param2.cParams.hashLog) & (param1.cParams.chainLog == param2.cPa… in ZSTD_equivalentParams()
212 …(param1.cParams.strategy == param2.cParams.strategy) & ((param1.cParams.searchLength == 3) == (par… in ZSTD_equivalentParams()
252 size_t const blockSize = MIN(ZSTD_BLOCKSIZE_ABSOLUTEMAX, (size_t)1 << params.cParams.windowLog); in ZSTD_resetCCtx_advanced()
253 U32 const divider = (params.cParams.searchLength == 3) ? 3 : 4; in ZSTD_resetCCtx_advanced()
256 …size_t const chainSize = (params.cParams.strategy == ZSTD_fast) ? 0 : (1 << params.cParams.chainLo… in ZSTD_resetCCtx_advanced()
257 size_t const hSize = ((size_t)1) << params.cParams.hashLog; in ZSTD_resetCCtx_advanced()
258 …U32 const hashLog3 = (params.cParams.searchLength > 3) ? 0 : MIN(ZSTD_HASHLOG3_MAX, params.cParams… in ZSTD_resetCCtx_advanced()
268 …(((params.cParams.strategy == ZSTD_btopt) || (params.cParams.strategy == ZSTD_btopt2)) ? optSpace … in ZSTD_resetCCtx_advanced()
306 if ((params.cParams.strategy == ZSTD_btopt) || (params.cParams.strategy == ZSTD_btopt2)) { in ZSTD_resetCCtx_advanced()
362 …size_t const chainSize = (srcCCtx->params.cParams.strategy == ZSTD_fast) ? 0 : (1 << srcCCtx->para… in ZSTD_copyCCtx()
363 size_t const hSize = ((size_t)1) << srcCCtx->params.cParams.hashLog; in ZSTD_copyCCtx()
413 U32 const hSize = 1 << zc->params.cParams.hashLog; in ZSTD_reduceIndex()
418 …U32 const chainSize = (zc->params.cParams.strategy == ZSTD_fast) ? 0 : (1 << zc->params.cParams.ch… in ZSTD_reduceIndex()
503 int const preferRepeat = zc->params.cParams.strategy < ZSTD_lazy ? srcSize <= 1024 : 0; in ZSTD_compressLiterals()
588 const int longOffsets = zc->params.cParams.windowLog > STREAM_ACCUMULATOR_MIN; in ZSTD_compressSequences_internal()
995 U32 const hBits = zc->params.cParams.hashLog; in ZSTD_fillHashTable()
1011 U32 const hBits = cctx->params.cParams.hashLog; in ZSTD_compressBlock_fast_generic()
1106 const U32 mls = ctx->params.cParams.searchLength; in ZSTD_compressBlock_fast()
1119 const U32 hBits = ctx->params.cParams.hashLog; in ZSTD_compressBlock_fast_extDict_generic()
1222 U32 const mls = ctx->params.cParams.searchLength; in ZSTD_compressBlock_fast_extDict()
1238 U32 const hBitsL = cctx->params.cParams.hashLog; in ZSTD_fillDoubleHashTable()
1240 U32 const hBitsS = cctx->params.cParams.chainLog; in ZSTD_fillDoubleHashTable()
1257 const U32 hBitsL = cctx->params.cParams.hashLog; in ZSTD_compressBlock_doubleFast_generic()
1259 const U32 hBitsS = cctx->params.cParams.chainLog; in ZSTD_compressBlock_doubleFast_generic()
1385 const U32 mls = ctx->params.cParams.searchLength; in ZSTD_compressBlock_doubleFast()
1398 U32 const hBitsL = ctx->params.cParams.hashLog; in ZSTD_compressBlock_doubleFast_extDict_generic()
1400 U32 const hBitsS = ctx->params.cParams.chainLog; in ZSTD_compressBlock_doubleFast_extDict_generic()
1545 U32 const mls = ctx->params.cParams.searchLength; in ZSTD_compressBlock_doubleFast_extDict()
1564 U32 const hashLog = zc->params.cParams.hashLog; in ZSTD_insertBt1()
1567 U32 const btLog = zc->params.cParams.chainLog - 1; in ZSTD_insertBt1()
1647 U32 const hashLog = zc->params.cParams.hashLog; in ZSTD_insertBtAndFindBestMatch()
1650 U32 const btLog = zc->params.cParams.chainLog - 1; in ZSTD_insertBtAndFindBestMatch()
1799 const U32 hashLog = zc->params.cParams.hashLog; in ZSTD_insertAndFindFirstIndex()
1801 const U32 chainMask = (1 << zc->params.cParams.chainLog) - 1; in ZSTD_insertAndFindFirstIndex()
1824 const U32 chainSize = (1 << zc->params.cParams.chainLog); in ZSTD_HcFindBestMatch_generic()
1907 U32 const maxSearches = 1 << ctx->params.cParams.searchLog; in ZSTD_compressBlock_lazy_generic()
1908 U32 const mls = ctx->params.cParams.searchLength; in ZSTD_compressBlock_lazy_generic()
2074 const U32 maxSearches = 1 << ctx->params.cParams.searchLog; in ZSTD_compressBlock_lazy_extDict_generic()
2075 const U32 mls = ctx->params.cParams.searchLength; in ZSTD_compressBlock_lazy_extDict_generic()
2335 …ZSTD_blockCompressor const blockCompressor = ZSTD_selectBlockCompressor(zc->params.cParams.strateg… in ZSTD_compressBlock_internal()
2362 U32 const maxDist = 1 << cctx->params.cParams.windowLog; in ZSTD_compress_generic()
2378 …U32 const cycleMask = (1 << ZSTD_cycleLog(cctx->params.cParams.hashLog, cctx->params.cParams.strat… in ZSTD_compress_generic()
2380 U32 const newCurr = (curr & cycleMask) + (1 << cctx->params.cParams.windowLog); in ZSTD_compress_generic()
2436 U32 const windowSize = 1U << params.cParams.windowLog; in ZSTD_writeFrameHeader()
2438 BYTE const windowLogByte = (BYTE)((params.cParams.windowLog - ZSTD_WINDOWLOG_ABSOLUTEMIN) << 3); in ZSTD_writeFrameHeader()
2544 …x(ZSTD_CCtx *cctx) { return MIN(ZSTD_BLOCKSIZE_ABSOLUTEMAX, 1 << cctx->params.cParams.windowLog); } in ZSTD_getBlockSizeMax()
2574 switch (zc->params.cParams.strategy) { in ZSTD_loadDictionaryContent()
2575 case ZSTD_fast: ZSTD_fillHashTable(zc, iend, zc->params.cParams.searchLength); break; in ZSTD_loadDictionaryContent()
2577 case ZSTD_dfast: ZSTD_fillDoubleHashTable(zc, iend, zc->params.cParams.searchLength); break; in ZSTD_loadDictionaryContent()
2583 ZSTD_insertAndFindFirstIndex(zc, iend - HASH_READ_SIZE, zc->params.cParams.searchLength); in ZSTD_loadDictionaryContent()
2590 …dateTree(zc, iend - HASH_READ_SIZE, iend, 1 << zc->params.cParams.searchLog, zc->params.cParams.se… in ZSTD_loadDictionaryContent()
2750 CHECK_F(ZSTD_checkCParams(params.cParams)); in ZSTD_compressBegin_advanced()
2845 …ZSTD_CDictWorkspaceBound(ZSTD_compressionParameters cParams) { return ZSTD_CCtxWorkspaceBound(cPar… in ZSTD_CDictWorkspaceBound() argument
2973 size_t ZSTD_CStreamWorkspaceBound(ZSTD_compressionParameters cParams) in ZSTD_CStreamWorkspaceBound() argument
2975 size_t const inBuffSize = (size_t)1 << cParams.windowLog; in ZSTD_CStreamWorkspaceBound()
2979 …return ZSTD_CCtxWorkspaceBound(cParams) + ZSTD_ALIGN(sizeof(ZSTD_CStream)) + ZSTD_ALIGN(inBuffSize… in ZSTD_CStreamWorkspaceBound()
3059 size_t const neededInBuffSize = (size_t)1 << params.cParams.windowLog; in ZSTD_initCStream_advanced()
3439 ZSTD_compressionParameters const cParams = ZSTD_getCParams(compressionLevel, srcSize, dictSize); in ZSTD_getParams() local
3441 params.cParams = cParams; in ZSTD_getParams()