Searched refs:genpoly (Results 1 – 10 of 10) sorted by relevance
/external/fec/ |
D | init_rs.h | 70 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]];
|
D | rstest.c | 17 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()
|
D | init_rs_char.c | 16 free(rs->genpoly); in free_rs_char()
|
D | init_rs_int.c | 16 free(rs->genpoly); in free_rs_int()
|
D | init_rs.c | 20 free(rs->genpoly); in free_rs()
|
D | rs-common.h | 12 data_t *genpoly; /* Generator polynomial */ member
|
D | int.h | 14 #define GENPOLY (rs->genpoly)
|
D | char.h | 14 #define GENPOLY (rs->genpoly)
|
D | gen_ccsds.c | 35 printf("%3d,",rs->genpoly[i]); in main()
|
/external/u-boot/lib/ |
D | bch.c | 1209 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 …]
|