函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:ZSTD_getPrice

函数原型:FORCE_INLINE U32 ZSTD_getPrice(seqStore_t *seqStorePtr, U32 litLength, const BYTE *literals, U32 offset, U32 matchLength, const int ultra)

返回类型:U32

参数:

类型参数名称
seqStore_t *seqStorePtr
U32litLength
const BYTE *literals
U32offset
U32matchLength
const intultra
146  offCode等于====== common function ======
148  如果staticPrices则返回:ZSTD_getLiteralPrice(seqStorePtr, litLength, literals)加====== common function ======加16加offCode
151  price等于offCodelog2offCodeSum====== common function ======
152  如果非ultraoffCode大于等于20则price加等于offCode减19的差乘2
157  ML_deltaCode等于36
158  mlCode等于如果matchLength大于127则====== common function ======ML_deltaCode否则ML_Code[matchLength]
159  price加等于ML_bits[mlCode]加log2matchLengthSum====== common function ======
162  返回:priceZSTD_getLiteralPrice(seqStorePtr, litLength, literals)加factor
调用者
名称描述
ZSTD_compressBlock_opt_generic
ZSTD_compressBlock_opt_extDict_generic