Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:ZSTD_insertAndFindFirstIndex

Proto:U32 ZSTD_insertAndFindFirstIndex(ZSTD_CCtx *zc, const BYTE *ip, U32 mls)

Type:U32

Parameter:

TypeParameterName
ZSTD_CCtx *zc
const BYTE *ip
U32mls
1798  hashTable = hashTable
1799  hashLog = hashLog
1800  chainTable = chainTable
1801  chainMask = (1 << chainLog) - 1
1802  base = base
1803  target = ip - base
1804  idx = nextToUpdate
1806  When idx < target cycle
1807  h = ZSTD_hashPtr(base + idx, hashLog, mls)
1808  Hash Chain(idx, chainMask) = hashTable[h]
1809  hashTable[h] = idx
1810  idx++
1813  nextToUpdate = target
1814  Return hashTable[ZSTD_hashPtr(ip, hashLog, mls)]
Caller
NameDescribe
ZSTD_HcFindBestMatch_generic
ZSTD_loadDictionaryContent : 0, or an error code