61 #define NN ((1 << MM) - 1)
66 typedef unsigned int dtype;
102 #define min(a,b) (((a) < (b)) ? (a) : (b))
int eras_dec_rs(dtype data[], int eras_pos[], int no_eras)
Reed-Solomon erasures-and-errors decoding The received block goes into data[], and a list of zero-ori...
int encode_rs(dtype data[], dtype bb[])
Reed-Solomon encoding data[] is the input block, parity symbols are placed in bb[] bb[] may lie past ...
unsigned char dtype
Definition: rs.h:64
void init_rs(int)
Initialization function.
Definition: rs.c:198
void gen_poly(void)
Definition: rs.c:289
void generate_gf(void)
These two functions must be called in this order (e.g., by init_rs()) before any encoding/decoding.
Definition: rs.c:242