Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\zstd\zstd_opt.h Create Date:2022-07-28 07:04:25
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:ZSTD_getLiteralPrice

Proto:FORCE_INLINE U32 ZSTD_getLiteralPrice(seqStore_t *ssPtr, U32 litLength, const BYTE *literals)

Type:U32

Parameter:

TypeParameterName
seqStore_t *ssPtr
U32litLength
const BYTE *literals
105  If staticPrices Then Return ====== common function ====== + litLength * 6
108  If litLength == 0 Then Return log2litLengthSum - ====== common function ======
112  If cachedLiterals == literals Then
113  additional = litLength - cachedLitLength
114  literals2 = cachedLiterals + cachedLitLength
115  price = cachedPrice + additional * log2litSum
116  When u < additional cycle price -= ====== common function ======
118  cachedPrice = price
119  cachedLitLength = litLength
120  Else
121  price = litLength * log2litSum
122  When u < litLength cycle price -= ====== common function ======
125  If litLength >= 12 Then
127  cachedPrice = price
134  LL_deltaCode = 19
135  llCode = If litLength > 63 Then ====== common function ====== + LL_deltaCode Else LL_Code[litLength]
136  price += LL_bits[llCode] + log2litLengthSum - ====== common function ======
139  Return price