函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:HUF_decompress4X4_usingDTable_internal

函数原型:static size_t HUF_decompress4X4_usingDTable_internal(void *dst, size_t dstSize, const void *cSrc, size_t cSrcSize, const HUF_DTable *DTable)

返回类型:size_t

参数:

类型参数名称
void *dst
size_tdstSize
const void *cSrc
size_tcSrcSize
const HUF_DTable *DTable
709  如果cSrcSize小于10则返回:-***************************************** Error codes handling(corruption_detected)
713  istart等于cSrc
714  ostart等于dst
715  oend等于ostartdstSize
716  dtPtr等于DTable加1
717  dt等于dtPtr
724  length1等于=== Little endian r/w ===
725  length2等于=== Little endian r/w ===
726  length3等于=== Little endian r/w ===
727  length4等于cSrcSizelength1length2length3加6
728  istart1等于istart加6
729  istart2等于istart1length1
730  istart3等于istart2length2
731  istart4等于istart3length3
732  segmentSize等于dstSize加3的和除4
733  opStart2等于ostartsegmentSize
734  opStart3等于opStart2segmentSize
735  opStart4等于opStart3segmentSize
736  op1等于ostart
737  op2等于opStart2
738  op3等于opStart3
739  op4等于opStart4
741  dtd等于HUF_getDTableDesc(DTable)
742  dtLog等于tableLog
744  如果length4大于cSrcSize则返回:-***************************************** Error codes handling(corruption_detected)
747  errorCode等于1,2,4,8 would be better for bitmap combinations, but slows down performance a bit ... :(
748  如果HUF_isError(errorCode)则返回:errorCode
752  errorCode等于1,2,4,8 would be better for bitmap combinations, but slows down performance a bit ... :(
753  如果HUF_isError(errorCode)则返回:errorCode
757  errorCode等于1,2,4,8 would be better for bitmap combinations, but slows down performance a bit ... :(
758  如果HUF_isError(errorCode)则返回:errorCode
762  errorCode等于1,2,4,8 would be better for bitmap combinations, but slows down performance a bit ... :(
763  如果HUF_isError(errorCode)则返回:errorCode
768  endSignal等于BIT_reloadDStream( & bitD1)按位或BIT_reloadDStream( & bitD2)按位或BIT_reloadDStream( & bitD3)按位或BIT_reloadDStream( & bitD4)
769 endSignal恒等于BIT_DStream_unfinished按位与op4小于oendbitContainer的长度减1循环
782  HUF_DECODE_SYMBOLX4_0(op1, & bitD1)
783  HUF_DECODE_SYMBOLX4_0(op2, & bitD2)
784  HUF_DECODE_SYMBOLX4_0(op3, & bitD3)
785  HUF_DECODE_SYMBOLX4_0(op4, & bitD4)
787  endSignal等于BIT_reloadDStream( & bitD1)按位或BIT_reloadDStream( & bitD2)按位或BIT_reloadDStream( & bitD3)按位或BIT_reloadDStream( & bitD4)
791  如果op1大于opStart2则返回:-***************************************** Error codes handling(corruption_detected)
793  如果op2大于opStart3则返回:-***************************************** Error codes handling(corruption_detected)
795  如果op3大于opStart4则返回:-***************************************** Error codes handling(corruption_detected)
800  HUF_decodeStreamX4(op1, & bitD1, opStart2, dt, dtLog)
801  HUF_decodeStreamX4(op2, & bitD2, opStart3, dt, dtLog)
802  HUF_decodeStreamX4(op3, & bitD3, opStart4, dt, dtLog)
803  HUF_decodeStreamX4(op4, & bitD4, oend, dt, dtLog)
807  endCheck等于 Tells if DStream has exactly reached its end (all bits consumed).按位与 Tells if DStream has exactly reached its end (all bits consumed).按位与 Tells if DStream has exactly reached its end (all bits consumed).按位与 Tells if DStream has exactly reached its end (all bits consumed).
808  如果非endCheck则返回:-***************************************** Error codes handling(corruption_detected)
813  返回:dstSize
调用者
名称描述
HUF_decompress4X4_usingDTable
HUF_decompress4X4_DCtx_wksp
HUF_decompress4X_usingDTable