函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:LZ4HC_InsertAndFindBestMatch

函数原型:static inline __attribute__((__always_inline__)) int LZ4HC_InsertAndFindBestMatch(LZ4HC_CCtx_internal *hc4, const BYTE *ip, const BYTE *const iLimit, const BYTE **matchpos, const int maxNbAttempts)

返回类型:int

参数:

类型参数名称
LZ4HC_CCtx_internal *hc4 Index table will be updated
const BYTE *ip
const BYTE *constiLimit
const BYTE **matchpos
const intmaxNbAttempts
106  chainTable等于chainTable
107  HashTable等于hashTable
108  base等于All index relative to this position
109  dictBase等于alternate base for extDict
110  dictLimit等于low that point, need extDict
111  lowLimit等于如果low that point, no more dict 加64乘KB大于ipbaselow that point, no more dict 否则ipbase减64乘KB减1
115  nbAttempts等于maxNbAttempts
116  ml等于0
119  Update chains up to ip (excluded)
120  matchIndex等于HashTable[LZ4HC_hashPtr(ip)]
122 matchIndex大于等于lowLimitnbAttempts循环
124  nbAttempts自减
125  如果matchIndex大于等于dictLimit
126  match等于basematchIndex
128  如果*matchml的和恒等于*ipml的和且LZ4_read32(match)恒等于LZ4_read32(ip)则
138  否则
139  match等于dictBasematchIndex
141  如果LZ4_read32(match)恒等于LZ4_read32(ip)则
162  matchIndex减等于aster (matchIndex)
165  返回:ml
调用者
名称描述
LZ4HC_compress_generic