Lines Matching defs:gf_poly
104 struct gf_poly {
110 #define GF_POLY_SZ(_d) (sizeof(struct gf_poly)+((_d)+1)*sizeof(unsigned int))
114 struct gf_poly poly;
404 static void gf_poly_copy(struct gf_poly *dst, struct gf_poly *src)
415 struct gf_poly *elp = bch->elp;
416 struct gf_poly *pelp = bch->poly_2t[0];
417 struct gf_poly *elp_copy = bch->poly_2t[1];
578 static int find_poly_deg1_roots(struct bch_control *bch, struct gf_poly *poly,
593 static int find_poly_deg2_roots(struct bch_control *bch, struct gf_poly *poly,
635 static int find_poly_deg3_roots(struct bch_control *bch, struct gf_poly *poly,
668 static int find_poly_deg4_roots(struct bch_control *bch, struct gf_poly *poly,
733 const struct gf_poly *a, int *rep)
745 static void gf_poly_mod(struct bch_control *bch, struct gf_poly *a,
746 const struct gf_poly *b, int *rep)
781 static void gf_poly_div(struct bch_control *bch, struct gf_poly *a,
782 const struct gf_poly *b, struct gf_poly *q)
799 static struct gf_poly *gf_poly_gcd(struct bch_control *bch, struct gf_poly *a,
800 struct gf_poly *b)
802 struct gf_poly *tmp;
829 const struct gf_poly *f, struct gf_poly *z,
830 struct gf_poly *out)
871 static void factor_polynomial(struct bch_control *bch, int k, struct gf_poly *f,
872 struct gf_poly **g, struct gf_poly **h)
874 struct gf_poly *f2 = bch->poly_2t[0];
875 struct gf_poly *q = bch->poly_2t[1];
876 struct gf_poly *tk = bch->poly_2t[2];
877 struct gf_poly *z = bch->poly_2t[3];
878 struct gf_poly *gcd;
908 struct gf_poly *poly, unsigned int *roots)
911 struct gf_poly *f1, *f2;
948 struct gf_poly *p, unsigned int *roots)
1205 struct gf_poly *g;