From ca5bc0e86bb2a6f43ad077feeef90612f69577b5 Mon Sep 17 00:00:00 2001 From: Joe Taylor Date: Wed, 7 Feb 2024 14:24:05 -0500 Subject: [PATCH] WIP on sfoxtest. --- lib/superfox/hard_symbols.f90 | 2 +- lib/superfox/rs_sf.c | 16 +++--------- lib/superfox/sfoxtest.f90 | 48 ++++++++++++++++------------------- 3 files changed, 26 insertions(+), 40 deletions(-) diff --git a/lib/superfox/hard_symbols.f90 b/lib/superfox/hard_symbols.f90 index 1ba7d7ca9..ad800866f 100644 --- a/lib/superfox/hard_symbols.f90 +++ b/lib/superfox/hard_symbols.f90 @@ -28,7 +28,7 @@ subroutine hard_symbols(crcvd,f,t,jdat) jdat(n)=ipk(1)+256-64 endif enddo - jdat(NN-1:nn)=0 +! jdat(NN-1:nn)=0 return end subroutine hard_symbols diff --git a/lib/superfox/rs_sf.c b/lib/superfox/rs_sf.c index 7634f62e4..3a8fd81bf 100644 --- a/lib/superfox/rs_sf.c +++ b/lib/superfox/rs_sf.c @@ -21,20 +21,10 @@ void rs_init_sf_(int *mm, int *nq, int *nn0, int *kk0, int *nfz) first=0; } -void rs_encode_sf_(int *dgen, int *sent) -// Encode the information symbols dgen[KK], producing channel symbols sent[NN]. +void rs_encode_sf_(int *msg, int *parsym) +// Encode information symbols msg[KK], producing parity symbols parsym[nroots]. { - int b[256]; //These are the parity symbols - encode_rs_sf(rs_sf,dgen,b); //Compute the parity symbols - -// Copy parity symbols into sent[] array, followed by information symbols - for (int i=0; i< nn; i++) { - if(i