GNU Radio Manual and C++ API Reference  3.7.6.1
The Free & Open Software Radio Ecosystem
volk_32fc_s32fc_rotatorpuppet_32fc.h
Go to the documentation of this file.
1 /* -*- c++ -*- */
2 /*
3  * Copyright 2014 Free Software Foundation, Inc.
4  *
5  * This file is part of GNU Radio
6  *
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 3, or (at your option)
10  * any later version.
11  *
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.
16  *
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.
21  */
22 
23 #ifndef INCLUDED_volk_32fc_s32fc_rotatorpuppet_32fc_a_H
24 #define INCLUDED_volk_32fc_s32fc_rotatorpuppet_32fc_a_H
25 
26 
27 #include <volk/volk_complex.h>
28 #include <stdio.h>
30 
31 
32 #ifdef LV_HAVE_GENERIC
33 
34 /*!
35  \brief rotate input vector at fixed rate per sample from initial phase offset
36  \param outVector The vector where the results will be stored
37  \param inVector Vector to be rotated
38  \param phase_inc rotational velocity
39  \param phase initial phase offset
40  \param num_points The number of values in inVector to be rotated and stored into cVector
41 */
42 static inline void volk_32fc_s32fc_rotatorpuppet_32fc_generic(lv_32fc_t* outVector, const lv_32fc_t* inVector, const lv_32fc_t phase_inc, unsigned int num_points){
43  lv_32fc_t phase[1] = {lv_cmake(.3, 0.95393)};
44  volk_32fc_s32fc_x2_rotator_32fc_generic(outVector, inVector, phase_inc, phase, num_points);
45 
46 }
47 
48 #endif /* LV_HAVE_GENERIC */
49 
50 
51 #ifdef LV_HAVE_SSE4_1
52 #include <smmintrin.h>
53 
54 static inline void volk_32fc_s32fc_rotatorpuppet_32fc_a_sse4_1(lv_32fc_t* outVector, const lv_32fc_t* inVector, const lv_32fc_t phase_inc, unsigned int num_points){
55  lv_32fc_t phase[1] = {lv_cmake(.3, .95393)};
56  volk_32fc_s32fc_x2_rotator_32fc_a_sse4_1(outVector, inVector, phase_inc, phase, num_points);
57 
58 }
59 
60 #endif /* LV_HAVE_SSE4_1 */
61 
62 
63 #ifdef LV_HAVE_SSE4_1
64 #include <smmintrin.h>
65 static inline void volk_32fc_s32fc_rotatorpuppet_32fc_u_sse4_1(lv_32fc_t* outVector, const lv_32fc_t* inVector, const lv_32fc_t phase_inc, unsigned int num_points){
66  lv_32fc_t phase[1] = {lv_cmake(.3, .95393)};
67  volk_32fc_s32fc_x2_rotator_32fc_u_sse4_1(outVector, inVector, phase_inc, phase, num_points);
68 
69 }
70 
71 #endif /* LV_HAVE_SSE4_1 */
72 
73 
74 #ifdef LV_HAVE_AVX
75 #include <immintrin.h>
76 
77 /*!
78  \brief rotate input vector at fixed rate per sample from initial phase offset
79  \param outVector The vector where the results will be stored
80  \param inVector Vector to be rotated
81  \param phase_inc rotational velocity
82  \param phase initial phase offset
83  \param num_points The number of values in inVector to be rotated and stored into cVector
84 */
85 static inline void volk_32fc_s32fc_rotatorpuppet_32fc_a_avx(lv_32fc_t* outVector, const lv_32fc_t* inVector, const lv_32fc_t phase_inc, unsigned int num_points){
86  lv_32fc_t phase[1] = {lv_cmake(.3, .95393)};
87  volk_32fc_s32fc_x2_rotator_32fc_a_avx(outVector, inVector, phase_inc, phase, num_points);
88 }
89 
90 #endif /* LV_HAVE_AVX */
91 
92 
93 #ifdef LV_HAVE_AVX
94 #include <immintrin.h>
95 
96 static inline void volk_32fc_s32fc_rotatorpuppet_32fc_u_avx(lv_32fc_t* outVector, const lv_32fc_t* inVector, const lv_32fc_t phase_inc, unsigned int num_points){
97  lv_32fc_t phase[1] = {lv_cmake(.3, .95393)};
98  volk_32fc_s32fc_x2_rotator_32fc_u_avx(outVector, inVector, phase_inc, phase, num_points);
99 }
100 
101 #endif /* LV_HAVE_AVX */
102 
103 #endif /* INCLUDED_volk_32fc_s32fc_rotatorpuppet_32fc_a_H */
#define lv_cmake(r, i)
Definition: volk_complex.h:59
float complex lv_32fc_t
Definition: volk_complex.h:56