Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:ZSTD_CCtxWorkspaceBound

Proto:size_t ZSTD_CCtxWorkspaceBound(ZSTD_compressionParameters cParams)

Type:size_t

Parameter:

TypeParameterName
ZSTD_compressionParameterscParams
92  blockSize = -************************************** shared macros(Define for static allocation , (size_t)1 << windowLog)
93  divider = If searchLength == 3 Then 3 Else 4
94  maxNbSeq = blockSize / divider
95  tokenSpace = blockSize + 11 * maxNbSeq
96  chainSize = If strategy == ZSTD_fast Then 0 Else 1 << chainLog
97  hSize = 1 << hashLog
98  hashLog3 = If searchLength > 3 Then 0 Else -************************************** shared macros(ZSTD_HASHLOG3_MAX, windowLog)
99  h3Size = 1 << hashLog3
100  tableSpace = ( chainSize + hSize + h3Size) * sizeof(U32)
101  optSpace = ( MaxML + 1 + MaxLL + 1 + MaxOff + 1 + (1 << Litbits)) * sizeof(U32) + (-************************************** Common constants + 1) * (sizeof(ZSTD_match_t) + sizeof(ZSTD_optimal_t))
103  workspaceSize = tableSpace + 256 * sizeof(U32) + tokenSpace + If strategy == ZSTD_btopt || strategy == ZSTD_btopt2 Then optSpace Else 0
106  Return ZSTD_ALIGN(sizeof(ZSTD_stack)) + ZSTD_ALIGN(sizeof(ZSTD_CCtx)) + ZSTD_ALIGN(workspaceSize)
Caller
NameDescribe
ZSTD_CDictWorkspaceBound
ZSTD_CStreamWorkspaceBound