Author: jcorgan
Date: 2007-12-11 20:48:44 -0700 (Tue, 11 Dec 2007)
New Revision: 7116
Modified:
gnuradio/trunk/gnuradio-core/src/lib/filter/gri_iir.h
Log:
Reverted changeset r7089 on trunk.
Modified: gnuradio/trunk/gnuradio-core/src/lib/filter/gri_iir.h
===================================================================
--- gnuradio/trunk/gnuradio-core/src/lib/filter/gri_iir.h 2007-12-12
03:31:26 UTC (rev 7115)
+++ gnuradio/trunk/gnuradio-core/src/lib/filter/gri_iir.h 2007-12-12
03:48:44 UTC (rev 7116)
@@ -143,6 +143,12 @@
for (i = 1; i < m; i ++)
acc += (d_fbtaps[i] * d_prev_output[latest_m + i]);
+ // store the values twice to avoid having to handle wrap-around in the loop
+ d_prev_output[latest_m] = acc;
+ d_prev_output[latest_m+m] = acc;
+ d_prev_input[latest_n] = input;
+ d_prev_input[latest_n+n] = input;
+
latest_n--;
latest_m--;
if (latest_n < 0)
@@ -150,13 +156,6 @@
if (latest_m < 0)
latest_m += m;
- // store the values twice to avoid having to handle wrap-around in the loop
- d_prev_output[latest_m] = acc;
- d_prev_output[latest_m+m] = acc;
- d_prev_input[latest_n] = input;
- d_prev_input[latest_n+n] = input;
-
-
d_latest_m = latest_m;
d_latest_n = latest_n;
return (o_type) acc;
_______________________________________________
Commit-gnuradio mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/commit-gnuradio