Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:FSE_compress_usingCTable_generic

Proto:static size_t FSE_compress_usingCTable_generic(void *dst, size_t dstSize, const void *src, size_t srcSize, const FSE_CTable *ct, const unsigned fast)

Type:size_t

Parameter:

TypeParameterName
void *dst
size_tdstSize
const void *src
size_tsrcSize
const FSE_CTable *ct
const unsignedfast
726  istart = src
727  iend = istart + srcSize
728  ip = iend
734  If srcSize <= 2 Then Return 0
737  initError = : 0 if success,
738  If Error Management Then Return 0
744  If srcSize & 1 Then
745  ! FSE_initCState2() :* Same as FSE_initCState(), but the first symbol to include (which will be the last to be read)* uses the smallest state value possible, saving the cost of this symbol
746  ! FSE_initCState2() :* Same as FSE_initCState(), but the first symbol to include (which will be the last to be read)* uses the smallest state value possible, saving the cost of this symbol
747  FSE_encodeSymbol( & bitC, & CState1, * --ip)
748  it ( & bitC)
749  Else
750  ! FSE_initCState2() :* Same as FSE_initCState(), but the first symbol to include (which will be the last to be read)* uses the smallest state value possible, saving the cost of this symbol
751  ! FSE_initCState2() :* Same as FSE_initCState(), but the first symbol to include (which will be the last to be read)* uses the smallest state value possible, saving the cost of this symbol
755  srcSize -= 2
756  If size of bitContainer * 8 > Constants * 4 + 7 && srcSize & 2 Then
757  FSE_encodeSymbol( & bitC, & CState2, * --ip)
758  FSE_encodeSymbol( & bitC, & CState1, * --ip)
759  it ( & bitC)
763  When ip > istart cycle
765  FSE_encodeSymbol( & bitC, & CState2, * --ip)
767  If size of bitContainer * 8 < Constants * 2 + 7 Then it ( & bitC)
770  FSE_encodeSymbol( & bitC, & CState1, * --ip)
772  If size of bitContainer * 8 > Constants * 4 + 7 Then
773  FSE_encodeSymbol( & bitC, & CState2, * --ip)
774  FSE_encodeSymbol( & bitC, & CState1, * --ip)
777  it ( & bitC)
780  FSE_flushCState( & bitC, & CState2)
781  FSE_flushCState( & bitC, & CState1)
782  Return BIT_closeCStream( & bitC)
Caller
NameDescribe
FSE_compress_usingCTable