diff --git a/lib/superfox/Makefile b/lib/superfox/Makefile index a9bf9b593..a6064d381 100644 --- a/lib/superfox/Makefile +++ b/lib/superfox/Makefile @@ -15,7 +15,7 @@ CFLAGS= -O9 -Wall %.o: %.F90 ${FC} ${FFLAGS} -c $< -all: rs_sf.a rstest rs_125_49 rst8 +all: rs_sf.a rstest OBJS1 = rstest.o ran1.o rs_sf.a rstest: $(OBJS1) diff --git a/lib/superfox/librs.a b/lib/superfox/librs.a deleted file mode 100644 index 7acb1d5d0..000000000 Binary files a/lib/superfox/librs.a and /dev/null differ diff --git a/lib/superfox/rs_sf.c b/lib/superfox/rs_sf.c index 6b3154d11..7634f62e4 100644 --- a/lib/superfox/rs_sf.c +++ b/lib/superfox/rs_sf.c @@ -37,17 +37,7 @@ void rs_encode_sf_(int *dgen, int *sent) } } -void rs_decode_sf_(int *recd, int *era_pos, int *numera, int *decoded, - int *nerr) -/* -Decode received data recd[NN], producing decoded[KK]. Positiions of -erased symbols are specified in array era_pos[numera]. The number of -corrected errors is *nerr; if the data are uncorrectable, *nerr=-1 -is returned. -*/ +void rs_decode_sf_(int *recd, int *era_pos, int *numera, int *nerr) { *nerr=decode_rs_sf(rs_sf,recd,era_pos,*numera); - for(int i=0; i +void encode_rs_8(unsigned char *data, unsigned char *parity, int pad); + +int decode_rs_8(unsigned char *data, int *eras_pos, int no_eras, int pad); + void encode_rs_8_(unsigned char data[], unsigned char parity[], int *npad) { encode_rs_8(data,parity,*npad); //Compute the parity symbols