• Home
  • Raw
  • Download

Lines Matching refs:deg

105 	unsigned int deg;    /* polynomial degree */  member
314 static inline int deg(unsigned int poly) in deg() function
397 i = deg(poly); in compute_syndromes()
412 memcpy(dst, src, GF_POLY_SZ(src->deg)); in gf_poly_copy()
429 pelp->deg = 0; in compute_error_locator_polynomial()
431 elp->deg = 0; in compute_error_locator_polynomial()
435 for (i = 0; (i < t) && (elp->deg <= t); i++) { in compute_error_locator_polynomial()
441 for (j = 0; j <= pelp->deg; j++) { in compute_error_locator_polynomial()
448 tmp = pelp->deg+k; in compute_error_locator_polynomial()
449 if (tmp > elp->deg) { in compute_error_locator_polynomial()
450 elp->deg = tmp; in compute_error_locator_polynomial()
459 for (j = 1; j <= elp->deg; j++) in compute_error_locator_polynomial()
464 return (elp->deg > t) ? -1 : (int)elp->deg; in compute_error_locator_polynomial()
622 i = deg(v); in find_poly_deg2_roots()
741 int i, d = a->deg, l = GF_N(bch)-a_log(bch, a->c[a->deg]); in gf_poly_logrep()
756 const unsigned int d = b->deg; in gf_poly_mod()
758 if (a->deg < d) in gf_poly_mod()
767 for (j = a->deg; j >= d; j--) { in gf_poly_mod()
779 a->deg = d-1; in gf_poly_mod()
780 while (!c[a->deg] && a->deg) in gf_poly_mod()
781 a->deg--; in gf_poly_mod()
790 if (a->deg >= b->deg) { in gf_poly_div()
791 q->deg = a->deg-b->deg; in gf_poly_div()
795 memcpy(q->c, &a->c[b->deg], (1+q->deg)*sizeof(unsigned int)); in gf_poly_div()
797 q->deg = 0; in gf_poly_div()
812 if (a->deg < b->deg) { in gf_poly_gcd()
818 while (b->deg > 0) { in gf_poly_gcd()
842 z->deg = 1; in compute_trace_bk_mod()
846 out->deg = 0; in compute_trace_bk_mod()
847 memset(out, 0, GF_POLY_SZ(f->deg)); in compute_trace_bk_mod()
854 for (j = z->deg; j >= 0; j--) { in compute_trace_bk_mod()
859 if (z->deg > out->deg) in compute_trace_bk_mod()
860 out->deg = z->deg; in compute_trace_bk_mod()
863 z->deg *= 2; in compute_trace_bk_mod()
868 while (!out->c[out->deg] && out->deg) in compute_trace_bk_mod()
869 out->deg--; in compute_trace_bk_mod()
894 if (tk->deg > 0) { in factor_polynomial()
898 if (gcd->deg < f->deg) { in factor_polynomial()
902 *h = &((struct gf_poly_deg1 *)f)[gcd->deg].poly; in factor_polynomial()
919 switch (poly->deg) { in find_poly_roots()
936 if (poly->deg && (k <= GF_M(bch))) { in find_poly_roots()
962 bch->cache[p->deg] = 0; in chien_search()
963 syn0 = gf_div(bch, p->c[0], p->c[p->deg]); in chien_search()
967 for (j = 1, syn = syn0; j <= p->deg; j++) { in chien_search()
974 if (count == p->deg) in chien_search()
978 return (count == p->deg) ? count : 0; in chien_search()
1092 const unsigned int k = 1 << deg(poly); in build_gf_tables()
1134 d = deg(data); in build_mod8_tables()
1230 g->deg = 0; in compute_generator_polynomial()
1236 g->c[g->deg+1] = 1; in compute_generator_polynomial()
1237 for (j = g->deg; j > 0; j--) in compute_generator_polynomial()
1241 g->deg++; in compute_generator_polynomial()
1245 n = g->deg+1; in compute_generator_polynomial()
1257 bch->ecc_bits = g->deg; in compute_generator_polynomial()