summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Rondeau2010-10-17 15:25:44 -0400
committerTom Rondeau2010-10-17 15:58:07 -0400
commit740d8974427d25f1bd4e4e045fc6f0a101cea9eb (patch)
treea97fc22fed493a124f0b3ac845865570f173f824
parentb9cbe9c9ca65b620cab9bf1b8e652637a885d3c2 (diff)
downloadgnuradio-740d8974427d25f1bd4e4e045fc6f0a101cea9eb.tar.gz
gnuradio-740d8974427d25f1bd4e4e045fc6f0a101cea9eb.tar.bz2
gnuradio-740d8974427d25f1bd4e4e045fc6f0a101cea9eb.zip
Removing ccf version of filter that is now autogenerated.
-rw-r--r--gnuradio-core/src/lib/filter/gri_fir_filter_with_buffer_ccf.cc88
1 files changed, 0 insertions, 88 deletions
diff --git a/gnuradio-core/src/lib/filter/gri_fir_filter_with_buffer_ccf.cc b/gnuradio-core/src/lib/filter/gri_fir_filter_with_buffer_ccf.cc
deleted file mode 100644
index b2db8ce0a..000000000
--- a/gnuradio-core/src/lib/filter/gri_fir_filter_with_buffer_ccf.cc
+++ /dev/null
@@ -1,88 +0,0 @@
-/* -*- c++ -*- */
-/*
- * Copyright 2010 Free Software Foundation, Inc.
- *
- * This file is part of GNU Radio
- *
- * GNU Radio is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 3, or (at your option)
- * any later version.
- *
- * GNU Radio is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with GNU Radio; see the file COPYING. If not, write to
- * the Free Software Foundation, Inc., 51 Franklin Street,
- * Boston, MA 02110-1301, USA.
- */
-
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
-#include <gri_fir_filter_with_buffer_ccf.h>
-
-gri_fir_filter_with_buffer_ccf::gri_fir_filter_with_buffer_ccf(const std::vector<float> &taps)
-{
- d_buffer = NULL;
- set_taps(taps);
-}
-
-gri_fir_filter_with_buffer_ccf::~gri_fir_filter_with_buffer_ccf()
-{
- if(d_buffer != NULL)
- free(d_buffer);
-}
-
-void
-gri_fir_filter_with_buffer_ccf::set_taps (const std::vector<float> &taps)
-{
- d_taps = gr_reverse(taps);
-
- if(d_buffer != NULL) {
- free(d_buffer);
- d_buffer = NULL;
- }
-
- // FIXME: memalign this to 16-byte boundaries for SIMD later
- size_t t = sizeof(gr_complex) * 2 * d_taps.size();
- d_buffer = (gr_complex*)malloc(t);
- memset(d_buffer, 0x00, t);
- d_idx = 0;
-}
-
-gr_complex
-gri_fir_filter_with_buffer_ccf::filter (gr_complex input)
-{
- unsigned int i;
-
- d_buffer[d_idx] = input;
- d_buffer[d_idx+ntaps()] = input;
-
- // using the later for the case when ntaps=0;
- // profiling shows this doesn't make a difference
- //d_idx = (d_idx + 1) % ntaps();
- d_idx++;
- if(d_idx >= ntaps())
- d_idx = 0;
-
- gr_complex out = 0;
- for(i = 0; i < ntaps(); i++) {
- out += d_buffer[d_idx + i] * d_taps[i];
- }
- return (gr_complex)out;
-}
-
-void
-gri_fir_filter_with_buffer_ccf::filterN (gr_complex output[],
- const gr_complex input[],
- unsigned long n)
-{
- for(unsigned long i = 0; i < n; i++) {
- output[i] = filter(input[i]);
- }
-}