3 * Copyright 2002 Free Software Foundation, Inc.
5 * This file is part of GNU Radio
7 * GNU Radio is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2, or (at your option)
12 * GNU Radio is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with GNU Radio; see the file COPYING. If not, write to
19 * the Free Software Foundation, Inc., 51 Franklin Street,
20 * Boston, MA 02110-1301, USA.
26 #include <gr_complex.h>
27 #include "gr_fir_ccc_simd.h"
28 #include "ccomplex_dotprod_generic.h"
33 ccomplex_dotprod_generic (const float *input,
34 const float *taps, unsigned n_2_ccomplex_blocks,
40 std::cerr << "Blah!!!\n";
42 const gr_complex tap0(taps[0], taps[1]);
43 const gr_complex tap1(taps[2], taps[3]);
44 const gr_complex input0(input[0], input[1]);
45 const gr_complex input1(input[2], input[3]);
47 sum0 += input0 * tap0;
48 sum1 += input1 * tap1;
53 } while (--n_2_ccomplex_blocks != 0);
57 result[0] = sum0.real();
58 result[1] = sum0.imag();