From e71c33565e0f16a570fac18fe315addc1cf616b5 Mon Sep 17 00:00:00 2001 From: ha7ilm Date: Fri, 18 Dec 2015 07:51:10 +0000 Subject: [PATCH] Added fir_decimate_cc to test200. --- test200.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/test200.c b/test200.c index d2da851..0a89708 100644 --- a/test200.c +++ b/test200.c @@ -41,6 +41,8 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #define T_BUFSIZE (1024*1024/4) #define T_N (200) +#define T_TAPS (1023) +#define T_DECFACT (200) int main() { @@ -58,10 +60,21 @@ int main() qof(buf_c,i)=buf_u8[2*i+1]/128.0; } + + float* taps_f = (float*)malloc(sizeof(float)*T_TAPS); + firdes_lowpass_f(taps_f, T_TAPS, 1.0f/T_DECFACT, WINDOW_DEFAULT); + struct timespec start_time, end_time; fprintf(stderr,"Starting tests of processing %d samples...\n", T_BUFSIZE*T_N); + //fir_decimate_cc + clock_gettime(CLOCK_MONOTONIC_RAW, &start_time); + for(int i=0;i