函数逻辑报告 |
Source Code:lib\bch.c |
Create Date:2022-07-27 07:57:30 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:mpute generator polynomial for given (m,t) parameters.
函数原型:static uint32_t *compute_generator_polynomial(struct bch_control *bch)
返回类型:uint32_t
参数:
类型 | 参数 | 名称 |
---|---|---|
struct bch_control * | bch |
1178 | err等于0 |
1187 | 如果err则 |
1202 | polynomial degree 等于0 |
1203 | polynomial terms [0]等于1 |
1208 | polynomial terms [polynomial degree + 1]等于1 |
1209 | 以j大于0循环polynomial terms [j]等于Galois field basic operations: multiply, divide, inverse, etc. 按位异或polynomial terms [j - 1] |
1213 | polynomial degree 自加 |
1217 | n等于polynomial degree 加1 |
1218 | i等于0 |
1223 | 如果polynomial terms [n - 1 - j]则word或等于1u左移31减j位 |
1229 | ecc_bits等于polynomial degree |
1231 | finish : |
1235 | 返回:genpoly |
名称 | 描述 |
---|---|
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 |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |