Function report |
Source Code:lib\bch.c |
Create Date:2022-07-28 06:59:55 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Given a polynomial f and an integer k, compute Tr(a^kX) mod f* This is used in Berlekamp Trace algorithm for splitting polynomials
Proto:static void compute_trace_bk_mod(struct bch_control *bch, int k, const struct gf_poly *f, struct gf_poly *z, struct gf_poly *out)
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct bch_control * | bch | |
| int | k | |
| const struct gf_poly * | f | |
| struct gf_poly * | z | |
| struct gf_poly * | out |
| 813 | polynomial degree = 1 |
| 814 | polynomial terms [0] = 0 |
| 815 | polynomial terms [1] = private: [k] |
| 817 | polynomial degree = 0 |
| 826 | polynomial terms [j] ^= polynomial terms [j] |
| 827 | polynomial terms [2 * j] = gf_sqr(bch, polynomial terms [j]) |
| 828 | polynomial terms [2 * j + 1] = 0 |
| 830 | If polynomial degree > polynomial degree Then polynomial degree = polynomial degree |
| 839 | When Not polynomial terms [polynomial degree ] && polynomial degree cycle |
| 840 | polynomial degree -- |
| 842 | dbg("Tr(a^%d.X) mod f = %s\n", k, gf_poly_str(out)) |
| Name | Describe |
|---|---|
| factor_polynomial | actor a polynomial using Berlekamp Trace algorithm (BTA) |
| 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 |