diff options
author | jcorgan <jcorgan@221aa14e-8319-0410-a670-987f0aec2ac5> | 2007-12-12 03:48:44 +0000 |
---|---|---|
committer | jcorgan <jcorgan@221aa14e-8319-0410-a670-987f0aec2ac5> | 2007-12-12 03:48:44 +0000 |
commit | 374447978631cc38b18495f9a17d2fe1c85e1046 (patch) | |
tree | c3b3edbb1684fd510b8fcc112d125df0651474b5 | |
parent | 85628b2391bc665dd7171f50e6cf8639c33c3fcf (diff) |
Reverted changeset r7089 on trunk.
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@7116 221aa14e-8319-0410-a670-987f0aec2ac5
-rw-r--r-- | gnuradio-core/src/lib/filter/gri_iir.h | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/gnuradio-core/src/lib/filter/gri_iir.h b/gnuradio-core/src/lib/filter/gri_iir.h index 61d3be44de..5bc67df538 100644 --- a/gnuradio-core/src/lib/filter/gri_iir.h +++ b/gnuradio-core/src/lib/filter/gri_iir.h @@ -143,19 +143,18 @@ gri_iir<i_type, o_type, tap_type>::filter (const i_type input) for (i = 1; i < m; i ++) acc += (d_fbtaps[i] * d_prev_output[latest_m + i]); - latest_n--; - latest_m--; - if (latest_n < 0) - latest_n += n; - 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; + latest_n--; + latest_m--; + if (latest_n < 0) + latest_n += n; + if (latest_m < 0) + latest_m += m; d_latest_m = latest_m; d_latest_n = latest_n; |