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

Name:ZSTD_updatePrice

Proto:ZSTD_STATIC void ZSTD_updatePrice(seqStore_t *seqStorePtr, U32 litLength, const BYTE *literals, U32 offset, U32 matchLength)

Type:void

Parameter:

TypeParameterName
seqStore_t *seqStorePtr
U32litLength
const BYTE *literals
U32offset
U32matchLength
170  litSum += litLength * ZSTD_LITFREQ_ADD
171  When u < litLength cycle litFreq[literals[u]] += ZSTD_LITFREQ_ADD
176  LL_deltaCode = 19
177  llCode = If litLength > 63 Then ====== common function ====== + LL_deltaCode Else LL_Code[litLength]
178  litLengthFreq[llCode]++
179  litLengthSum++
184  offCode = ====== common function ======
185  offCodeSum++
186  offCodeFreq[offCode]++
191  ML_deltaCode = 36
192  mlCode = If matchLength > 127 Then ====== common function ====== + ML_deltaCode Else ML_Code[matchLength]
193  matchLengthFreq[mlCode]++
194  matchLengthSum++
197  -************************************** Price functions for optimal parser