函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:ZSTD_compressBlock_fast_extDict_generic

函数原型:static void ZSTD_compressBlock_fast_extDict_generic(ZSTD_CCtx *ctx, const void *src, size_t srcSize, const U32 mls)

返回类型:void

参数:

类型参数名称
ZSTD_CCtx *ctx
const void *src
size_tsrcSize
const U32mls
1118  hashTable等于hashTable
1119  hBits等于hashLog
1120  seqStorePtr等于seqStore的地址
1121  base等于base
1122  dictBase等于dictBase
1123  istart等于src
1124  ip等于istart
1125  anchor等于istart
1126  lowestIndex等于lowLimit
1127  dictStart等于dictBaselowestIndex
1128  dictLimit等于dictLimit
1129  lowPrefixPtr等于basedictLimit
1130  dictEnd等于dictBasedictLimit
1131  iend等于istartsrcSize
1132  ilimit等于iend减8
1133  offset_1等于rep[0], offset_2等于rep[1]
1136 ip小于ilimit循环
1137  h等于ZSTD_hashPtr(ip, hBits, mls)
1138  matchIndex等于hashTable[h]
1139  matchBase等于如果matchIndex小于dictLimitdictBase否则base
1140  match等于matchBasematchIndex
1141  curr等于ipbase
1142  repIndex等于curr加1减offset_1
1143  repBase等于如果repIndex小于dictLimitdictBase否则base
1144  repMatch等于repBaserepIndex
1146  hashTable[h]等于curr
1148  如果dictLimit减1减repIndex大于等于3按位与repIndex大于lowestIndexZSTD_read32(repMatch)恒等于ZSTD_read32(ip + 1)则
1150  repMatchEnd等于如果repIndex小于dictLimitdictEnd否则iend
1152  ip自加
1154  否则
1155  如果matchIndex小于lowestIndexZSTD_read32(match)不等于ZSTD_read32(ip)则
1177  ip加等于mLength
1178  anchor等于ip
1180  如果ip小于等于ilimit
1182  hashTable[ZSTD_hashPtr(base + curr + 2, hBits, mls)]等于curr加2
1183  hashTable[ZSTD_hashPtr(ip - 2, hBits, mls)]等于ip减2减base
1185 ip小于等于ilimit循环
1209  repToConfirm[0]等于offset_1
1210  repToConfirm[1]等于offset_2
1214  lastLLSize等于iendanchor
1215  内存复制(lit, anchor, lastLLSize)
1216  lit加等于lastLLSize
调用者
名称描述
ZSTD_compressBlock_fast_extDict