Function report |
Source Code:lib\bch.c |
Create Date:2022-07-28 06:59:51 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:mpute roots of a degree 4 polynomial over GF(2^m)
Proto:static int find_poly_deg4_roots(struct bch_control *bch, struct gf_poly *poly, unsigned int *roots)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct bch_control * | bch | |
struct gf_poly * | poly | |
unsigned int * | roots |
648 | n = 0 |
649 | e = 0 |
651 | If polynomial terms [0] == 0 Then Return 0 |
655 | e4 = polynomial terms [4] |
656 | d = gf_div(bch, polynomial terms [0], e4) |
657 | c = gf_div(bch, polynomial terms [1], e4) |
658 | b = gf_div(bch, polynomial terms [2], e4) |
659 | a = gf_div(bch, polynomial terms [3], e4) |
662 | If a Then |
688 | Else |
701 | n = 4 |
703 | Return n |
Name | Describe |
---|---|
find_poly_roots | d roots of a polynomial, using BTZ algorithm; see the beginning of this* file for details |
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 |