函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\zstd\compress.c Create Date:2022-07-27 08:00:28
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:ZSTD_adjustCParams() :optimize `cPar` for a given input (`srcSize` and `dictSize`).mostly downsizing to reduce memory consumption and initialization.Both `srcSize` and `dictSize` are optional (use 0 if unknown),

函数原型:ZSTD_compressionParameters ZSTD_adjustCParams(ZSTD_compressionParameters cPar, unsigned long long srcSize, size_t dictSize)

返回类型:ZSTD_compressionParameters

参数:

类型参数名称
ZSTD_compressionParameterscPar
unsigned long longsrcSize
size_tdictSize
182  如果srcSizedictSize恒等于0则返回:cPar
187  minSrcSize等于如果srcSize恒等于0则500否则0
188  rSize等于srcSizedictSizeminSrcSize
189  如果rSize小于1左移ZSTD_WINDOWLOG_MAX位则
191  如果windowLog大于srcLogwindowLog等于srcLog
195  如果hashLog大于windowLoghashLog等于windowLog
198  cycleLog等于ZSTD_cycleLog() :* condition for correct operation : hashLog > 1
199  如果cycleLog大于windowLogchainLog减等于cycleLogwindowLog
203  如果windowLog小于ZSTD_WINDOWLOG_ABSOLUTEMINwindowLog等于ZSTD_WINDOWLOG_ABSOLUTEMIN
206  返回:cPar
调用者
名称描述
ZSTD_getCParams ZSTD_compressionParameters structure for a selected compression level, `srcSize` and `dictSize`.