Home
last modified time | relevance | path

Searched refs:MODNN (Results 1 – 8 of 8) sorted by relevance

/external/fec/
Ddecode_rs.h50 #if !defined(MODNN)
90 s[i] = data[j] ^ ALPHA_TO[MODNN(INDEX_OF[s[i]] + (FCR+i)*PRIM)];
114 lambda[1] = ALPHA_TO[MODNN(PRIM*(NN-1-eras_pos[0]))];
116 u = MODNN(PRIM*(NN-1-eras_pos[i]));
120 lambda[j] ^= ALPHA_TO[MODNN(u + tmp)];
133 for (i = 1,k=IPRIM-1; i <= NN; i++,k = MODNN(k+IPRIM)) {
137 reg[j] = MODNN(reg[j] + j);
174 discr_r ^= ALPHA_TO[MODNN(INDEX_OF[lambda[i]] + s[r-i-1])];
187 t[i+1] = lambda[i+1] ^ ALPHA_TO[MODNN(discr_r + b[i])];
198 b[i] = (lambda[i] == 0) ? A0 : MODNN(INDEX_OF[lambda[i]] - discr_r + NN);
[all …]
Ddecode_rs.c54 s[i] = data[j] ^ ALPHA_TO[MODNN(INDEX_OF[s[i]] + (FCR+i)*PRIM)];
78 lambda[1] = ALPHA_TO[MODNN(PRIM*(NN-1-eras_pos[0]))];
80 u = MODNN(PRIM*(NN-1-eras_pos[i]));
84 lambda[j] ^= ALPHA_TO[MODNN(u + tmp)];
97 for (i = 1,k=IPRIM-1; i <= NN; i++,k = MODNN(k+IPRIM)) {
101 reg[j] = MODNN(reg[j] + j);
138 discr_r ^= ALPHA_TO[MODNN(INDEX_OF[lambda[i]] + s[r-i-1])];
151 t[i+1] = lambda[i+1] ^ ALPHA_TO[MODNN(discr_r + b[i])];
162 b[i] = (lambda[i] == 0) ? A0 : MODNN(INDEX_OF[lambda[i]] - discr_r + NN);
182 for (i = 1,k=IPRIM-1; i <= NN; i++,k = MODNN(k+IPRIM)) {
[all …]
Dencode_rs.h46 feedback = MODNN(NN - GENPOLY[NROOTS] + feedback);
49 parity[j] ^= ALPHA_TO[MODNN(feedback + GENPOLY[NROOTS-j])];
54 parity[NROOTS-1] = ALPHA_TO[MODNN(feedback + GENPOLY[0])];
Dencode_rs.c40 feedback = MODNN(NN - GENPOLY[NROOTS] + feedback);
43 bb[j] ^= ALPHA_TO[MODNN(feedback + GENPOLY[NROOTS-j])];
48 bb[NROOTS-1] = ALPHA_TO[MODNN(feedback + GENPOLY[0])];
Dfixed.h17 #define MODNN(x) mod255(x) macro
Dint.h8 #define MODNN(x) modnn(rs,x) macro
Dchar.h8 #define MODNN(x) modnn(rs,x) macro
Dencode_rs_av.c29 table[i].c[16-j-1] = CCSDS_alpha_to[MODNN(CCSDS_poly[j+1] + CCSDS_index_of[i])]; in rs_init_av()