Home
last modified time | relevance | path

Searched refs:cPar (Results 1 – 2 of 2) sorted by relevance

/linux/lib/zstd/compress/
H A Dzstd_compress.c1247 ZSTD_adjustCParams_internal(ZSTD_compressionParameters cPar, in ZSTD_adjustCParams_internal() argument
1254 assert(ZSTD_checkCParams(cPar)==0); in ZSTD_adjustCParams_internal()
1290 if (cPar.windowLog > srcLog) cPar.windowLog = srcLog; in ZSTD_adjustCParams_internal()
1293 … U32 const dictAndWindowLog = ZSTD_dictAndWindowLog(cPar.windowLog, (U64)srcSize, (U64)dictSize); in ZSTD_adjustCParams_internal()
1294 U32 const cycleLog = ZSTD_cycleLog(cPar.chainLog, cPar.strategy); in ZSTD_adjustCParams_internal()
1295 if (cPar.hashLog > dictAndWindowLog+1) cPar.hashLog = dictAndWindowLog+1; in ZSTD_adjustCParams_internal()
1297 cPar.chainLog -= (cycleLog - dictAndWindowLog); in ZSTD_adjustCParams_internal()
1300 if (cPar.windowLog < ZSTD_WINDOWLOG_ABSOLUTEMIN) in ZSTD_adjustCParams_internal()
1301cPar.windowLog = ZSTD_WINDOWLOG_ABSOLUTEMIN; /* minimum wlog required for valid frame header */ in ZSTD_adjustCParams_internal()
1303 return cPar; in ZSTD_adjustCParams_internal()
[all …]
/linux/include/linux/
H A Dzstd_lib.h1650 ZSTDLIB_STATIC_API ZSTD_compressionParameters ZSTD_adjustCParams(ZSTD_compressionParameters cPar, u…