函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:ZSTD_getLiteralPrice

函数原型:FORCE_INLINE U32 ZSTD_getLiteralPrice(seqStore_t *ssPtr, U32 litLength, const BYTE *literals)

返回类型:U32

参数:

类型参数名称
seqStore_t *ssPtr
U32litLength
const BYTE *literals
105  如果staticPrices则返回:====== common function ======litLength乘6
108  如果litLength恒等于0则返回:log2litLengthSum====== common function ======
112  如果cachedLiterals恒等于literals
113  additional等于litLengthcachedLitLength
114  literals2等于cachedLiteralscachedLitLength
115  price等于cachedPriceadditionallog2litSum
116 u小于additional循环price减等于====== common function ======
118  cachedPrice等于price
119  cachedLitLength等于litLength
120  否则
121  price等于litLengthlog2litSum
122 u小于litLength循环price减等于====== common function ======
125  如果litLength大于等于12则
127  cachedPrice等于price
134  LL_deltaCode等于19
135  llCode等于如果litLength大于63则====== common function ======LL_deltaCode否则LL_Code[litLength]
136  price加等于LL_bits[llCode]加log2litLengthSum====== common function ======
139  返回:price
调用者
名称描述
ZSTD_getPrice
ZSTD_compressBlock_opt_generic
ZSTD_compressBlock_opt_extDict_generic