Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:1,2,4,8 would be better for bitmap combinations, but slows down performance a bit ... :(

Proto:ZSTD_STATIC size_t BIT_initDStream(BIT_DStream_t *bitD, const void *srcBuffer, size_t srcSize)

Type:size_t

Parameter:

TypeParameterName
BIT_DStream_t *bitD
const void *srcBuffer
size_tsrcSize
241  If srcSize < 1 Then
242  memset(bitD, 0, size of bitD )
243  Return -***************************************** Error codes handling(srcSize_wrong)
246  If srcSize >= size of bitContainer Then
247  start = srcBuffer
248  ptr = srcBuffer + srcSize - size of bitContainer
251  BYTE const lastByte = )
256  Else
257  start = srcBuffer
258  ptr = start
259  bitContainer = *start
261  Case srcSize == 7
261  bitContainer += (size_t)()) << ( size of bitContainer * 8 - 16)
263  Case srcSize == 6
263  bitContainer += (size_t)()) << ( size of bitContainer * 8 - 24)
265  Case srcSize == 5
265  bitContainer += (size_t)()) << ( size of bitContainer * 8 - 32)
267  Case srcSize == 4
267  bitContainer += (size_t)()) << 24
269  Case srcSize == 3
269  bitContainer += (size_t)()) << 16
271  Case srcSize == 2
271  bitContainer += (size_t)()) << 8
272  Default
275  BYTE const lastByte = )
280  bitsConsumed += ( size of bitContainer - srcSize) * 8
283  Return srcSize
Caller
NameDescribe
FSE_decompress_usingDTable_generic
HUF_decompress1X2_usingDTable_internal
HUF_decompress4X2_usingDTable_internal
HUF_decompress1X4_usingDTable_internal
HUF_decompress4X4_usingDTable_internal
ZSTD_decompressSequences
ZSTD_decompressSequencesLong