函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:ld a base for factoring degree 2 polynomials

函数原型:static int build_deg2_base(struct bch_control *bch)

返回类型:int

参数:

类型参数名称
struct bch_control *bch
1125  m等于GF_M(bch)
1127  ak等于0
1130 i小于m循环
1131 j小于m循环sum异或等于a_pow(bch, i * (1 << j))
1134  如果sum
1135  ak等于private: [i]
1136  退出
1140  remaining等于m
1141  memset(xi, 0, xi的长度)
1143 x小于等于GF_N(bch)且remaining循环
1144  y等于gf_sqr(bch, x)按位异或x
1145 i小于2循环
1146  r等于a_log(bch, y)
1147  如果yr小于m且非xi[r]则
1148  xi_tab[r]等于x
1149  xi[r]等于1
1150  remaining自减
1151  dbg("x%d = %x\n", r, x)
1152  退出
1154  y异或等于ak
1158  返回:如果remaining则负1否则0
调用者
名称描述
init_bch_bch - initialize a BCH encoder/decoder*@m: Galois field order, should be in the range 5-15*@t: maximum error correction capability, in bits*@prim_poly: user-provided primitive polynomial (or 0 to use default)* Returns:* a newly allocated BCH control