函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Decode one bit. In some versions, this function has been splitted in three* functions so that the compiler is supposed to be able to more easily avoid* an extra branch. In this particular version of the LZMA decoder, this

函数原型:static __always_inline int rc_bit(struct rc_dec *rc, uint16_t *prob)

返回类型:int

参数:

类型参数名称
struct rc_dec *rc
uint16_t *prob
502  Read the next input byte if needed.
503  bound等于range右移RC_BIT_MODEL_TOTAL_BITS位的值乘prob
504  如果code小于bound
505  range等于bound
506  prob加等于RC_BIT_MODEL_TOTALprob右移RC_MOVE_BITS
507  bit等于0
508  否则
509  range减等于bound
510  code减等于bound
511  prob减等于prob右移RC_MOVE_BITS
512  bit等于1
515  返回:bit
调用者
名称描述
rc_bittreeDecode a bittree starting from the most significant bit.
rc_bittree_reverseDecode a bittree starting from the least significant bit.
lzma_literalDecode a literal (one 8-bit byte)
lzma_lenDecode the length of the match into s->lzma.len.
lzma_rep_matchDecode a repeated match. The distance is one of the four most recently* seen matches. The distance will be stored in s->lzma.rep0.
lzma_mainLZMA decoder core