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:26
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:ZSTD_getPrice

Proto:FORCE_INLINE U32 ZSTD_getPrice(seqStore_t *seqStorePtr, U32 litLength, const BYTE *literals, U32 offset, U32 matchLength, const int ultra)

Type:U32

Parameter:

TypeParameterName
seqStore_t *seqStorePtr
U32litLength
const BYTE *literals
U32offset
U32matchLength
const intultra
146  offCode = ====== common function ======
148  If staticPrices Then Return ZSTD_getLiteralPrice(seqStorePtr, litLength, literals) + ====== common function ====== + 16 + offCode
151  price = offCode + log2offCodeSum - ====== common function ======
152  If Not ultra && offCode >= 20 Then price += (offCode - 19) * 2
157  ML_deltaCode = 36
158  mlCode = If matchLength > 127 Then ====== common function ====== + ML_deltaCode Else ML_Code[matchLength]
159  price += ML_bits[mlCode] + log2matchLengthSum - ====== common function ======
162  Return price + ZSTD_getLiteralPrice(seqStorePtr, litLength, literals) + factor