Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:ZSTD_count

Proto:static size_t ZSTD_count(const BYTE *pIn, const BYTE *pMatch, const BYTE *const pInLimit)

Type:size_t

Parameter:

TypeParameterName
const BYTE *pIn
const BYTE *pMatch
const BYTE *constpInLimit
909  pStart = pIn
910  pInLoopLimit = pInLimit - sizeof(size_t) - 1
912  When pIn < pInLoopLimit cycle
913  diff = ZSTD_readST(pMatch) ^ ZSTD_readST(pIn)
914  If Not diff Then
915  pIn += sizeof(size_t)
916  pMatch += sizeof(size_t)
917  Continue
919  pIn += -************************************** Match length counter
920  Return pIn - pStart
922  If ZSTD_64bits() Then If pIn < pInLimit - 3 && ZSTD_read32(pMatch) == ZSTD_read32(pIn) Then
924  pIn += 4
925  pMatch += 4
927  If pIn < pInLimit - 1 && ZSTD_read16(pMatch) == ZSTD_read16(pIn) Then
928  pIn += 2
929  pMatch += 2
931  If pIn < pInLimit && pMatch == pIn Then pIn++
933  Return pIn - pStart
Caller
NameDescribe
ZSTD_count_2segmentsZSTD_count_2segments() :* can count match length with `ip` & `match` in 2 different segments.* convention : on reaching mEnd, match count continue starting from iStart
ZSTD_compressBlock_fast_generic
ZSTD_compressBlock_doubleFast_generic
ZSTD_insertBt1 : nb of positions added
ZSTD_insertBtAndFindBestMatch
ZSTD_HcFindBestMatch_generic
ZSTD_compressBlock_lazy_generic