Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:HUF_compress4X_usingCTable

Proto:size_t HUF_compress4X_usingCTable(void *dst, size_t dstSize, const void *src, size_t srcSize, const HUF_CElt *CTable)

Type:size_t

Parameter:

TypeParameterName
void *dst
size_tdstSize
const void *src
size_tsrcSize
const HUF_CElt *CTable
583  segmentSize = (srcSize + 3) / 4
584  ip = src
585  iend = ip + srcSize
586  ostart = dst
587  oend = ostart + dstSize
588  op = ostart
590  If dstSize < 6 + 1 + 1 + 1 + 8 Then Return 0
592  If srcSize < 12 Then Return 0
594  op += 6
597  CHECK_V_F(cSize, HUF_compress1X_usingCTable(op, oend - op, ip, segmentSize, CTable))
598  If cSize == 0 Then Return 0
600  ZSTD_writeLE16(ostart, (U16)cSize)
601  op += cSize
604  ip += segmentSize
606  CHECK_V_F(cSize, HUF_compress1X_usingCTable(op, oend - op, ip, segmentSize, CTable))
607  If cSize == 0 Then Return 0
609  ZSTD_writeLE16(ostart + 2, (U16)cSize)
610  op += cSize
613  ip += segmentSize
615  CHECK_V_F(cSize, HUF_compress1X_usingCTable(op, oend - op, ip, segmentSize, CTable))
616  If cSize == 0 Then Return 0
618  ZSTD_writeLE16(ostart + 4, (U16)cSize)
619  op += cSize
622  ip += segmentSize
624  CHECK_V_F(cSize, HUF_compress1X_usingCTable(op, oend - op, ip, iend - ip, CTable))
625  If cSize == 0 Then Return 0
627  op += cSize
630  Return op - ostart
Caller
NameDescribe
HUF_compressCTable_internal