struct rs_control — rs control structure
struct rs_control {
int mm;
int nn;
uint16_t * alpha_to;
uint16_t * index_of;
uint16_t * genpoly;
int nroots;
int fcr;
int prim;
int iprim;
int gfpoly;
int (* gffunc) (int);
int users;
struct list_head list;
}; int mmBits per symbol
int nnSymbols per block (= (1<<mm)-1)
uint16_t * alpha_tolog lookup table
uint16_t * index_ofAntilog lookup table
uint16_t * genpolyGenerator polynomial
int nrootsNumber of generator roots = number of parity symbols
int fcrFirst consecutive root, index form
int primPrimitive element, index form
int iprimprim-th root of 1, index form
int gfpolyThe primitive generator polynominal
int (*)(int) gffuncFunction to generate the field, if non-canonical representation
int usersUsers of this structure
struct list_head listList entry for the rs control list