summaryrefslogtreecommitdiff
path: root/gnuradio-core/src/lib/reed-solomon
diff options
context:
space:
mode:
authorTom Rondeau <trondeau@vt.edu>2012-06-24 16:06:38 -0400
committerTom Rondeau <trondeau@vt.edu>2012-06-24 16:06:38 -0400
commitd97764ce6040aff8023b43323b4bc048a907a1fd (patch)
treedda4ba74128454fd271ffe7dcbe673f2ae0b4c08 /gnuradio-core/src/lib/reed-solomon
parentb142f64573b8b7b15a94fc9c64e2f26264a5b144 (diff)
parentbf8700a226091c5ce0130a3819a4c12b9d9981a6 (diff)
Merge branch 'master' into my_qtsink
Conflicts: gr-qtgui/include/qtgui_sink_c.h gr-qtgui/include/qtgui_sink_f.h gr-qtgui/include/qtgui_util.h gr-qtgui/lib/ConstellationDisplayPlot.cc gr-qtgui/lib/FrequencyDisplayPlot.cc gr-qtgui/lib/SpectrumGUIClass.cc gr-qtgui/lib/TimeDomainDisplayPlot.cc gr-qtgui/lib/WaterfallDisplayPlot.cc gr-qtgui/lib/qtgui_sink_c.cc gr-qtgui/lib/qtgui_sink_f.cc gr-qtgui/lib/spectrumdisplayform.cc
Diffstat (limited to 'gnuradio-core/src/lib/reed-solomon')
-rw-r--r--gnuradio-core/src/lib/reed-solomon/char.h2
-rw-r--r--gnuradio-core/src/lib/reed-solomon/decode_rs.c8
-rw-r--r--gnuradio-core/src/lib/reed-solomon/exercise.c2
-rw-r--r--gnuradio-core/src/lib/reed-solomon/int.h2
4 files changed, 7 insertions, 7 deletions
diff --git a/gnuradio-core/src/lib/reed-solomon/char.h b/gnuradio-core/src/lib/reed-solomon/char.h
index 762e9e2959..7b2030a0b0 100644
--- a/gnuradio-core/src/lib/reed-solomon/char.h
+++ b/gnuradio-core/src/lib/reed-solomon/char.h
@@ -32,7 +32,7 @@ static inline unsigned int modnn(struct rs *rs, unsigned int x){
#define MM (rs->mm)
#define NN (rs->nn)
-#define ALPHA_TO (rs->alpha_to)
+#define ALPHA_TO (rs->alpha_to)
#define INDEX_OF (rs->index_of)
#define GENPOLY (rs->genpoly)
#define NROOTS (rs->nroots)
diff --git a/gnuradio-core/src/lib/reed-solomon/decode_rs.c b/gnuradio-core/src/lib/reed-solomon/decode_rs.c
index 4b7d27cec4..f9438cf266 100644
--- a/gnuradio-core/src/lib/reed-solomon/decode_rs.c
+++ b/gnuradio-core/src/lib/reed-solomon/decode_rs.c
@@ -92,7 +92,7 @@ DTYPE *data, int *eras_pos, int no_eras){
#if DEBUG >= 1
/* Test code that verifies the erasure locator polynomial just constructed
Needed only for decoder debugging. */
-
+
/* find roots of the erasure location polynomial */
for(i=1;i<=no_eras;i++)
reg[i] = INDEX_OF[lambda[i]];
@@ -127,7 +127,7 @@ DTYPE *data, int *eras_pos, int no_eras){
}
for(i=0;(unsigned int)i<NROOTS+1;i++)
b[i] = INDEX_OF[lambda[i]];
-
+
/*
* Begin Berlekamp-Massey algorithm to determine error+erasure
* locator polynomial
@@ -230,7 +230,7 @@ DTYPE *data, int *eras_pos, int no_eras){
omega[i] = INDEX_OF[tmp];
}
omega[NROOTS] = A0;
-
+
/*
* Compute error values in poly-form. num1 = omega(inv(X(l))), num2 =
* inv(X(l))**(FCR-1) and den = lambda_pr(inv(X(l))) all in poly-form
@@ -243,7 +243,7 @@ DTYPE *data, int *eras_pos, int no_eras){
}
num2 = ALPHA_TO[MODNN(root[j] * (FCR - 1) + NN)];
den = 0;
-
+
/* lambda[i+1] for i even is the formal derivative lambda_pr of lambda[i] */
for (i = (int)min((unsigned int)deg_lambda,NROOTS-1) & ~1; i >= 0; i -=2) {
if(lambda[i+1] != A0)
diff --git a/gnuradio-core/src/lib/reed-solomon/exercise.c b/gnuradio-core/src/lib/reed-solomon/exercise.c
index be3d3bd13c..de33a6bff3 100644
--- a/gnuradio-core/src/lib/reed-solomon/exercise.c
+++ b/gnuradio-core/src/lib/reed-solomon/exercise.c
@@ -71,7 +71,7 @@ int trials){
/* Load block with random data and encode */
for(i=0;i<NN-NROOTS;i++)
block[i] = random() & NN;
-
+
#if defined(CCSDS) || defined(FIXED)
ENCODE_RS(&block[0],&block[NN-NROOTS]);
#else
diff --git a/gnuradio-core/src/lib/reed-solomon/int.h b/gnuradio-core/src/lib/reed-solomon/int.h
index 79979f8277..403d68757b 100644
--- a/gnuradio-core/src/lib/reed-solomon/int.h
+++ b/gnuradio-core/src/lib/reed-solomon/int.h
@@ -31,7 +31,7 @@ static inline int modnn(struct rs *rs,int x){
#define MM (rs->mm)
#define NN (rs->nn)
-#define ALPHA_TO (rs->alpha_to)
+#define ALPHA_TO (rs->alpha_to)
#define INDEX_OF (rs->index_of)
#define GENPOLY (rs->genpoly)
#define NROOTS (rs->nroots)