GNU Radio C++ API
gr_fir_fcc_simd Class Reference

common base class for SIMD versions of gr_fir_fccThis base class handles alignment issues common to SSE and 3DNOW subclasses. More...

#include <gr_fir_fcc_simd.h>

Inheritance diagram for gr_fir_fcc_simd:

List of all members.

Public Member Functions

 gr_fir_fcc_simd ()
 gr_fir_fcc_simd (const std::vector< gr_complex > &taps)
 ~gr_fir_fcc_simd ()
virtual void set_taps (const std::vector< gr_complex > &taps)
 install new_taps as the current taps.
virtual gr_complex filter (const float input[])
 compute a single output value.
- Public Member Functions inherited from gr_fir_fcc_generic
 gr_fir_fcc_generic ()
 gr_fir_fcc_generic (const std::vector< gr_complex > &taps)
virtual void filterN (gr_complex output[], const float input[], unsigned long n)
 compute an array of N output values.
virtual void filterNdec (gr_complex output[], const float input[], unsigned long n, unsigned decimate)
 compute an array of N output values, decimating the input
- Public Member Functions inherited from gr_fir_fcc
 gr_fir_fcc ()
 construct new FIR with given taps.
 gr_fir_fcc (const std::vector< gr_complex > &taps)
virtual ~gr_fir_fcc ()
unsigned ntaps () const
virtual const std::vector
< gr_complex
get_taps () const

Protected Types

typedef void(* fcomplex_dotprod_t )(const float *input, const float *taps, unsigned n_2_complex_blocks, float *result)

Protected Attributes

float * d_aligned_taps [4]
fcomplex_dotprod_t d_fcomplex_dotprod

Detailed Description

common base class for SIMD versions of gr_fir_fcc

This base class handles alignment issues common to SSE and 3DNOW subclasses.


Member Typedef Documentation

typedef void(* gr_fir_fcc_simd::fcomplex_dotprod_t)(const float *input, const float *taps, unsigned n_2_complex_blocks, float *result)
protected

Constructor & Destructor Documentation

gr_fir_fcc_simd::gr_fir_fcc_simd ( )
gr_fir_fcc_simd::gr_fir_fcc_simd ( const std::vector< gr_complex > &  taps)
gr_fir_fcc_simd::~gr_fir_fcc_simd ( )

Member Function Documentation

virtual gr_complex gr_fir_fcc_simd::filter ( const float  input[])
virtual

compute a single output value.

input must have ntaps() valid entries. input[0] .. input[ntaps() - 1] are referenced to compute the output value.

Returns:
the filtered input value.

Reimplemented from gr_fir_fcc_generic.

virtual void gr_fir_fcc_simd::set_taps ( const std::vector< gr_complex > &  taps)
virtual

install new_taps as the current taps.

Reimplemented from gr_fir_fcc.


Member Data Documentation

float* gr_fir_fcc_simd::d_aligned_taps[4]
protected

aligned_taps holds 4 copies of the coefficients preshifted by 0, 1, 2, or 3 float pairs to meet all possible input data alignments. This allows us to always fetch data and taps that are 128-bit aligned.

fcomplex_dotprod_t gr_fir_fcc_simd::d_fcomplex_dotprod
protected

The documentation for this class was generated from the following file: