函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:FSE_compress_usingCTable_generic

函数原型: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)

返回类型:size_t

参数:

类型参数名称
void *dst
size_tdstSize
const void *src
size_tsrcSize
const FSE_CTable *ct
const unsignedfast
726  istart等于src
727  iend等于istartsrcSize
728  ip等于iend
734  如果srcSize小于等于2则返回:0
737  initError等于 : 0 if success,
738  如果Error Management 则返回:0
744  如果srcSize按位与1则
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  否则
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  如果bitContainer的长度乘8大于Constants乘4加7且srcSize按位与2则
757  FSE_encodeSymbol( & bitC, & CState2, * --ip)
758  FSE_encodeSymbol( & bitC, & CState1, * --ip)
759  it ( & bitC)
763 ip大于istart循环
765  FSE_encodeSymbol( & bitC, & CState2, * --ip)
767  如果bitContainer的长度乘8小于Constants乘2加7则it ( & bitC)
770  FSE_encodeSymbol( & bitC, & CState1, * --ip)
772  如果bitContainer的长度乘8大于Constants乘4加7则
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  返回:BIT_closeCStream( & bitC)
调用者
名称描述
FSE_compress_usingCTable