Function report |
Source Code:lib\bch.c |
Create Date:2022-07-28 07:00:03 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:mpute generator polynomial for given (m,t) parameters.
Proto:static uint32_t *compute_generator_polynomial(struct bch_control *bch)
Type:uint32_t
Parameter:
Type | Parameter | Name |
---|---|---|
struct bch_control * | bch |
1178 | err = 0 |
1187 | If err Then |
1202 | polynomial degree = 0 |
1203 | polynomial terms [0] = 1 |
1208 | polynomial terms [polynomial degree + 1] = 1 |
1209 | When j > 0 cycle 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 | If polynomial terms [n - 1 - j] Then word |= 1u << 31 - j |
1229 | ecc_bits = polynomial degree |
1231 | finish : |
1235 | Return genpoly |
Name | Describe |
---|---|
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 |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |