📄 gr_fir_fsf_simd.h
字号:
/* -*- c++ -*- *//* * Copyright 2002 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 2, 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., 59 Temple Place - Suite 330, * Boston, MA 02111-1307, USA. */#ifndef _GR_FIR_FSF_SIMD_H_#define _GR_FIR_FSF_SIMD_H_#include <gr_fir_fsf_generic.h>/*! * \brief common base class for SIMD versions of gr_fir_fsf * * This base class handles alignment issues common to SSE and 3DNOW * subclasses. */class gr_fir_fsf_simd : public gr_fir_fsf_generic{protected: typedef float (*float_dotprod_t)(const float *input, const float *taps, unsigned n_4_float_blocks); /*! * \p aligned_taps holds 4 copies of the coefficients preshifted * by 0, 1, 2, or 3 floats to meet all possible input data alignments. * This allows us to always fetch data and taps that are 128-bit aligned. */ float *d_aligned_taps[4]; float_dotprod_t d_float_dotprod; // fast dot product primitivepublic: // CREATORS gr_fir_fsf_simd (); gr_fir_fsf_simd (const std::vector<float> &taps); ~gr_fir_fsf_simd (); // MANIPULATORS virtual void set_taps (const std::vector<float> &taps); virtual short filter (const float input[]);};#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -