GNU Radio 3.6.5 C++ API
|
common base class for SIMD versions of gr_fir_ccfThis base class handles alignment issues common to SSE and 3DNOW subclasses. More...
#include <gr_fir_ccf_simd.h>
Public Member Functions | |
gr_fir_ccf_simd () | |
gr_fir_ccf_simd (const std::vector< float > &taps) | |
~gr_fir_ccf_simd () | |
virtual void | set_taps (const std::vector< float > &taps) |
install new_taps as the current taps. | |
virtual gr_complex | filter (const gr_complex input[]) |
compute a single output value. | |
Protected Types | |
typedef void(* | fcomplex_dotprod_t )(const float *taps, const float *input, unsigned n_2_complex_blocks, float *result) |
Protected Attributes | |
float * | d_aligned_taps [4] |
fcomplex_dotprod_t | d_fcomplex_dotprod |
common base class for SIMD versions of gr_fir_ccf
This base class handles alignment issues common to SSE and 3DNOW subclasses.
typedef void(* gr_fir_ccf_simd::fcomplex_dotprod_t)(const float *taps, const float *input, unsigned n_2_complex_blocks, float *result) [protected] |
gr_fir_ccf_simd::gr_fir_ccf_simd | ( | ) |
gr_fir_ccf_simd::gr_fir_ccf_simd | ( | const std::vector< float > & | taps | ) |
gr_fir_ccf_simd::~gr_fir_ccf_simd | ( | ) |
virtual gr_complex gr_fir_ccf_simd::filter | ( | const gr_complex | 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.
Reimplemented from gr_fir_ccf_generic.
virtual void gr_fir_ccf_simd::set_taps | ( | const std::vector< float > & | taps | ) | [virtual] |
install new_taps
as the current taps.
Reimplemented from gr_fir_ccf.
float* gr_fir_ccf_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.