函数逻辑报告 |
Source Code:lib\bch.c |
Create Date:2022-07-27 07:57:32 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:_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
函数原型:struct bch_control *init_bch(int m, int t, unsigned int prim_poly)
返回类型:struct bch_control
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| int | m | |
| int | t | |
| unsigned int | prim_poly |
| 1261 | err等于0 |
| 1264 | struct bch_control * bch = NULL |
| 1266 | min_m等于5 |
| 1269 | static const unsigned int prim_poly_tab[] = {0x25, 0x43, 0x83, 0x11d, 0x211, 0x409, 0x805, 0x1053, 0x201b, 0x402b, 0x8003, } |
| 1290 | 如果t大于64 bit correction 则转到:fail |
| 1303 | 如果prim_poly恒等于0则prim_poly等于prim_poly_tab[m - min_m] |
| 1313 | words等于DIV_ROUND_UP(m * t, 32) |
| 1314 | ecc_bytes等于DIV_ROUND_UP(m * t, 8) |
| 1325 | 以i小于ARRAY_SIZE - get the number of elements in array @arr*@arr: array to be sized(poly_2t)循环poly_2t[i]等于bch_alloc(given its degree, compute a polynomial size in bytes (2 * t), & err) |
| 1347 | 返回:bch |
| 1349 | fail : |
| 1350 | 释放BCH控制结构 |
| 1351 | 返回:NULL |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |