Statistics
| Branch: | Tag: | Revision:

root / gnuradio-core / src / lib / filter / gr_fir_fff_altivec.h @ da451d5d

History | View | Annotate | Download (1.4 kB)

1 2c8ea58e eb
/* -*- c++ -*- */
2 2c8ea58e eb
/*
3 2c8ea58e eb
 * Copyright 2008 Free Software Foundation, Inc.
4 2c8ea58e eb
 * 
5 2c8ea58e eb
 * This file is part of GNU Radio
6 2c8ea58e eb
 * 
7 2c8ea58e eb
 * GNU Radio is free software; you can redistribute it and/or modify
8 2c8ea58e eb
 * it under the terms of the GNU General Public License as published by
9 2c8ea58e eb
 * the Free Software Foundation; either version 3, or (at your option)
10 2c8ea58e eb
 * any later version.
11 2c8ea58e eb
 * 
12 2c8ea58e eb
 * GNU Radio is distributed in the hope that it will be useful,
13 2c8ea58e eb
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 2c8ea58e eb
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 2c8ea58e eb
 * GNU General Public License for more details.
16 2c8ea58e eb
 * 
17 2c8ea58e eb
 * You should have received a copy of the GNU General Public License along
18 2c8ea58e eb
 * with this program; if not, write to the Free Software Foundation, Inc.,
19 2c8ea58e eb
 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20 2c8ea58e eb
 */
21 2c8ea58e eb
#ifndef INCLUDED_GR_FIR_FFF_ALTIVEC_H
22 2c8ea58e eb
#define INCLUDED_GR_FIR_FFF_ALTIVEC_H
23 2c8ea58e eb
24 2c8ea58e eb
#include <gr_fir_fff_generic.h>
25 2c8ea58e eb
26 2c8ea58e eb
/*!
27 2c8ea58e eb
 * \brief altivec version of gr_fir_fff
28 2c8ea58e eb
 */
29 2c8ea58e eb
class gr_fir_fff_altivec : public gr_fir_fff_generic
30 2c8ea58e eb
{
31 2c8ea58e eb
protected:
32 2c8ea58e eb
33 2c8ea58e eb
  size_t    d_naligned_taps;  // number of taps (multiple of 4)
34 2c8ea58e eb
  float           *d_aligned_taps;   // 16-byte aligned, and zero padded to multiple of 4
35 2c8ea58e eb
36 2c8ea58e eb
public:
37 2c8ea58e eb
  gr_fir_fff_altivec();
38 2c8ea58e eb
  gr_fir_fff_altivec(const std::vector<float> &taps);
39 2c8ea58e eb
  ~gr_fir_fff_altivec();
40 2c8ea58e eb
41 2c8ea58e eb
  virtual void set_taps (const std::vector<float> &taps);
42 2c8ea58e eb
  virtual float filter (const float input[]);
43 2c8ea58e eb
};
44 2c8ea58e eb
45 2c8ea58e eb
#endif /* INCLUDED_GR_FIR_FFF_ALTIVEC_H */