Home
last modified time | relevance | path

Searched refs:genpoly (Results 1 – 10 of 10) sorted by relevance

/external/fec/
Dinit_rs.h70 rs->genpoly = (data_t *)malloc(sizeof(data_t)*(nroots+1));
71 if(rs->genpoly == NULL){
87 rs->genpoly[0] = 1;
89 rs->genpoly[i+1] = 1;
93 if (rs->genpoly[j] != 0)
94 rs->genpoly[j] = rs->genpoly[j-1] ^ rs->alpha_to[modnn(rs,rs->index_of[rs->genpoly[j]] + root)];
96 rs->genpoly[j] = rs->genpoly[j-1];
99 rs->genpoly[0] = rs->alpha_to[modnn(rs,rs->index_of[rs->genpoly[0]] + root)];
103 rs->genpoly[i] = rs->index_of[rs->genpoly[i]];
Drstest.c17 int genpoly; member
157 rs = init_rs_char(e->symsize,e->genpoly,e->fcs,e->prim,e->nroots,0); in exercise_char()
235 rs = init_rs_int(e->symsize,e->genpoly,e->fcs,e->prim,e->nroots,0); in exercise_int()
Dinit_rs_char.c16 free(rs->genpoly); in free_rs_char()
Dinit_rs_int.c16 free(rs->genpoly); in free_rs_int()
Dinit_rs.c20 free(rs->genpoly); in free_rs()
Drs-common.h12 data_t *genpoly; /* Generator polynomial */ member
Dint.h14 #define GENPOLY (rs->genpoly)
Dchar.h14 #define GENPOLY (rs->genpoly)
Dgen_ccsds.c35 printf("%3d,",rs->genpoly[i]); in main()
/external/u-boot/lib/
Dbch.c1209 uint32_t *genpoly; in compute_generator_polynomial() local
1213 genpoly = bch_alloc(DIV_ROUND_UP(m*t+1, 32)*sizeof(*genpoly), &err); in compute_generator_polynomial()
1216 kfree(genpoly); in compute_generator_polynomial()
1217 genpoly = NULL; in compute_generator_polynomial()
1254 genpoly[i++] = word; in compute_generator_polynomial()
1263 return genpoly; in compute_generator_polynomial()
1291 uint32_t *genpoly; in init_bch() local
1358 genpoly = compute_generator_polynomial(bch); in init_bch()
1359 if (genpoly == NULL) in init_bch()
1362 build_mod8_tables(bch, genpoly); in init_bch()
[all …]