Function report |
Source Code:lib\bch.c |
Create Date:2022-07-28 06:59:44 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:compute_error_locator_polynomial
Proto:static int compute_error_locator_polynomial(struct bch_control *bch, const unsigned int *syn)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct bch_control * | bch | |
| const unsigned int * | syn |
| 395 | pp = -1 |
| 397 | memset(pelp, 0, given its degree, compute a polynomial size in bytes (2 * t)) |
| 398 | memset(elp, 0, given its degree, compute a polynomial size in bytes (2 * t)) |
| 400 | polynomial degree = 0 |
| 401 | polynomial terms [0] = 1 |
| 402 | polynomial degree = 0 |
| 403 | polynomial terms [0] = 1 |
| 406 | When i < t && polynomial degree <= t cycle |
| 407 | If d Then |
| 409 | gf_poly_copy(elp_copy, elp) |
| 412 | When j <= polynomial degree cycle |
| 413 | If polynomial terms [j] Then |
| 419 | tmp = polynomial degree + k |
| 420 | If tmp > polynomial degree Then |
| 434 | dbg("elp=%s\n", gf_poly_str(elp)) |
| 435 | Return If polynomial degree > t Then -1 Else polynomial degree |
| Name | Describe |
|---|---|
| decode_bch | decode_bch - decode received codeword and find bit error locations*@bch: BCH control structure*@data: received data, ignored if @calc_ecc is provided*@len: data length in bytes, must always be provided*@recv_ecc: received ecc, if NULL then assume it was |
| 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 |