diff options
author | Josh Blum <josh@joshknows.com> | 2011-08-17 12:30:09 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2011-08-17 12:30:09 -0700 |
commit | fb2f45cdddc41d5aba177204aa419cea3a0aea49 (patch) | |
tree | e2d3195b9782e047518fe1ea9f848346b480cfd4 /gnuradio-core/src/lib/reed-solomon/exercise.c | |
parent | e6ed4fa7bb0d253adbf0cf2ae4da7c301b3c971f (diff) | |
parent | 626018eb037808cdc32b5eb1907ae9d5f80d3e55 (diff) |
Merge branch 'next' into digital
Diffstat (limited to 'gnuradio-core/src/lib/reed-solomon/exercise.c')
-rw-r--r-- | gnuradio-core/src/lib/reed-solomon/exercise.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/gnuradio-core/src/lib/reed-solomon/exercise.c b/gnuradio-core/src/lib/reed-solomon/exercise.c index 1e04f618d7..987fe1aeba 100644 --- a/gnuradio-core/src/lib/reed-solomon/exercise.c +++ b/gnuradio-core/src/lib/reed-solomon/exercise.c @@ -13,7 +13,6 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> -#include <strings.h> #ifdef FIXED #include "fixed.h" @@ -47,11 +46,19 @@ int trials){ #if !defined(CCSDS) && !defined(FIXED) struct rs *rs = (struct rs *)p; #endif +#if MAX_ARRAY + DTYPE block[MAX_ARRAY],tblock[MAX_ARRAY]; + int i; + int errors; + int errlocs[MAX_ARRAY]; + int derrlocs[MAX_ARRAY]; +#else DTYPE block[NN],tblock[NN]; int i; int errors; int errlocs[NN]; int derrlocs[NROOTS]; +#endif int derrors; int errval,errloc; int erasures; |