diff options
author | Tom Rondeau <trondeau@vt.edu> | 2012-06-10 19:35:55 -0400 |
---|---|---|
committer | Tom Rondeau <trondeau@vt.edu> | 2012-06-10 22:35:59 -0400 |
commit | 227448e247ba720b87b99e1b9382cd3737241ab3 (patch) | |
tree | c466e391fb6391b9020457486f852f6f86c6fd20 /gr-filter/include | |
parent | 14532d8da0f40f2b58595bd7e217004bdbfc90e3 (diff) |
filter: working aligned taps loads for regular and decimating filter.
Has working QA code but needs significant performance improvements.
Diffstat (limited to 'gr-filter/include')
-rw-r--r-- | gr-filter/include/filter/fir_filter.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/gr-filter/include/filter/fir_filter.h b/gr-filter/include/filter/fir_filter.h index fba4641bf3..1eb70f92a4 100644 --- a/gr-filter/include/filter/fir_filter.h +++ b/gr-filter/include/filter/fir_filter.h @@ -41,8 +41,8 @@ namespace gr { void set_taps(const std::vector<float> &taps); std::vector<float> taps() const; unsigned int ntaps() const; - - float filter(const float input[]); + + inline float filter(const float input[]); void filterN(float output[], const float input[], unsigned long n); @@ -53,8 +53,10 @@ namespace gr { private: unsigned int d_ntaps; - float *d_taps; - float *d_aligned_taps[4]; + float *d_taps; + float **d_aligned_taps; + int d_offset; + float *d_output; }; /**************************************************************/ @@ -100,7 +102,7 @@ namespace gr { gr_complex filter(const gr_complex input[]); void filterN(gr_complex output[], const gr_complex input[], - unsigned long n); + unsigned long n) void filterNdec(gr_complex output[], const gr_complex input[], unsigned long n, |