函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:generate Galois field lookup tables

函数原型:static int build_gf_tables(struct bch_control *bch, unsigned int poly)

返回类型:int

参数:

类型参数名称
struct bch_control *bch
unsigned intpoly
1063  x等于1
1064  k等于1左移deg(poly)位
1067  如果k不等于1u左移GF_M(bch)位则返回:负1
1070 i小于GF_N(bch)循环
1071  private: [i]等于x
1072  a_log_tab[x]等于i
1073  如果ix恒等于1则返回:负1
1076  x左移等于1位
1077  如果x按位与kx异或等于poly
1080  private: [GF_N(bch)]等于1
1081  a_log_tab[0]等于0
1083  返回: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