Home
last modified time | relevance | path

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

/linux-6.1.9/lib/zstd/compress/
Dzstd_compress.c1130 ZSTD_adjustCParams_internal(ZSTD_compressionParameters cPar, in ZSTD_adjustCParams_internal() argument
1137 assert(ZSTD_checkCParams(cPar)==0); in ZSTD_adjustCParams_internal()
1173 if (cPar.windowLog > srcLog) cPar.windowLog = srcLog; in ZSTD_adjustCParams_internal()
1176 … U32 const dictAndWindowLog = ZSTD_dictAndWindowLog(cPar.windowLog, (U64)srcSize, (U64)dictSize); in ZSTD_adjustCParams_internal()
1177 U32 const cycleLog = ZSTD_cycleLog(cPar.chainLog, cPar.strategy); in ZSTD_adjustCParams_internal()
1178 if (cPar.hashLog > dictAndWindowLog+1) cPar.hashLog = dictAndWindowLog+1; in ZSTD_adjustCParams_internal()
1180 cPar.chainLog -= (cycleLog - dictAndWindowLog); in ZSTD_adjustCParams_internal()
1183 if (cPar.windowLog < ZSTD_WINDOWLOG_ABSOLUTEMIN) in ZSTD_adjustCParams_internal()
1184cPar.windowLog = ZSTD_WINDOWLOG_ABSOLUTEMIN; /* minimum wlog required for valid frame header */ in ZSTD_adjustCParams_internal()
1186 return cPar; in ZSTD_adjustCParams_internal()
[all …]
/linux-6.1.9/include/linux/
Dzstd_lib.h1590 ZSTDLIB_API ZSTD_compressionParameters ZSTD_adjustCParams(ZSTD_compressionParameters cPar, unsigned…