Vector Optimized Library of Kernels  2.0
Architecture-tuned implementations of math kernels
volk_32fc_s32fc_rotatorpuppet_32fc.h
Go to the documentation of this file.
1 /* -*- c++ -*- */
2 /*
3  * Copyright 2012, 2013, 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 
24 #ifndef INCLUDED_volk_32fc_s32fc_rotatorpuppet_32fc_a_H
25 #define INCLUDED_volk_32fc_s32fc_rotatorpuppet_32fc_a_H
26 
27 
28 #include <volk/volk_complex.h>
29 #include <stdio.h>
31 
32 
33 #ifdef LV_HAVE_GENERIC
34 
35 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){
36  lv_32fc_t phase[1] = {lv_cmake(.3, 0.95393)};
37  volk_32fc_s32fc_x2_rotator_32fc_generic(outVector, inVector, phase_inc, phase, num_points);
38 
39 }
40 
41 #endif /* LV_HAVE_GENERIC */
42 
43 
44 #ifdef LV_HAVE_NEON
45 #include <arm_neon.h>
47 
48 static inline void volk_32fc_s32fc_rotatorpuppet_32fc_neon(lv_32fc_t* outVector, const lv_32fc_t* inVector, const lv_32fc_t phase_inc, unsigned int num_points){
49  lv_32fc_t phase[1] = {lv_cmake(.3, 0.95393)};
50  volk_32fc_s32fc_x2_rotator_32fc_neon(outVector, inVector, phase_inc, phase, num_points);
51 
52 }
53 
54 #endif /* LV_HAVE_NEON */
55 
56 
57 #ifdef LV_HAVE_SSE4_1
58 #include <smmintrin.h>
59 
60 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){
61  lv_32fc_t phase[1] = {lv_cmake(.3, .95393)};
62  volk_32fc_s32fc_x2_rotator_32fc_a_sse4_1(outVector, inVector, phase_inc, phase, num_points);
63 
64 }
65 
66 #endif /* LV_HAVE_SSE4_1 */
67 
68 
69 #ifdef LV_HAVE_SSE4_1
70 #include <smmintrin.h>
71 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){
72  lv_32fc_t phase[1] = {lv_cmake(.3, .95393)};
73  volk_32fc_s32fc_x2_rotator_32fc_u_sse4_1(outVector, inVector, phase_inc, phase, num_points);
74 
75 }
76 
77 #endif /* LV_HAVE_SSE4_1 */
78 
79 
80 #ifdef LV_HAVE_AVX
81 #include <immintrin.h>
82 
83 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){
84  lv_32fc_t phase[1] = {lv_cmake(.3, .95393)};
85  volk_32fc_s32fc_x2_rotator_32fc_a_avx(outVector, inVector, phase_inc, phase, num_points);
86 }
87 
88 #endif /* LV_HAVE_AVX */
89 
90 
91 #ifdef LV_HAVE_AVX
92 #include <immintrin.h>
93 
94 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){
95  lv_32fc_t phase[1] = {lv_cmake(.3, .95393)};
96  volk_32fc_s32fc_x2_rotator_32fc_u_avx(outVector, inVector, phase_inc, phase, num_points);
97 }
98 
99 #endif /* LV_HAVE_AVX */
100 
101 #if LV_HAVE_AVX && LV_HAVE_FMA
102 #include <immintrin.h>
103 
104 static inline void volk_32fc_s32fc_rotatorpuppet_32fc_a_avx_fma(lv_32fc_t* outVector, const lv_32fc_t* inVector, const lv_32fc_t phase_inc, unsigned int num_points){
105  lv_32fc_t phase[1] = {lv_cmake(.3, .95393)};
106  volk_32fc_s32fc_x2_rotator_32fc_a_avx_fma(outVector, inVector, phase_inc, phase, num_points);
107 }
108 
109 #endif /* LV_HAVE_AVX && LV_HAVE_FMA*/
110 
111 
112 #if LV_HAVE_AVX && LV_HAVE_FMA
113 #include <immintrin.h>
114 
115 static inline void volk_32fc_s32fc_rotatorpuppet_32fc_u_avx_fma(lv_32fc_t* outVector, const lv_32fc_t* inVector, const lv_32fc_t phase_inc, unsigned int num_points){
116  lv_32fc_t phase[1] = {lv_cmake(.3, .95393)};
117  volk_32fc_s32fc_x2_rotator_32fc_u_avx_fma(outVector, inVector, phase_inc, phase, num_points);
118 }
119 
120 #endif /* LV_HAVE_AVX && LV_HAVE_FMA*/
121 
122 #endif /* INCLUDED_volk_32fc_s32fc_rotatorpuppet_32fc_a_H */
static 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)
Definition: volk_32fc_s32fc_rotatorpuppet_32fc.h:94
static void volk_32fc_s32fc_rotatorpuppet_32fc_neon(lv_32fc_t *outVector, const lv_32fc_t *inVector, const lv_32fc_t phase_inc, unsigned int num_points)
Definition: volk_32fc_s32fc_rotatorpuppet_32fc.h:48
static void volk_32fc_s32fc_x2_rotator_32fc_generic(lv_32fc_t *outVector, const lv_32fc_t *inVector, const lv_32fc_t phase_inc, lv_32fc_t *phase, unsigned int num_points)
Definition: volk_32fc_s32fc_x2_rotator_32fc.h:93
static void volk_32fc_s32fc_x2_rotator_32fc_a_avx(lv_32fc_t *outVector, const lv_32fc_t *inVector, const lv_32fc_t phase_inc, lv_32fc_t *phase, unsigned int num_points)
Definition: volk_32fc_s32fc_x2_rotator_32fc.h:422
static 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)
Definition: volk_32fc_s32fc_rotatorpuppet_32fc.h:83
#define lv_cmake(r, i)
Definition: volk_complex.h:64
float complex lv_32fc_t
Definition: volk_complex.h:61
static void volk_32fc_s32fc_x2_rotator_32fc_u_avx(lv_32fc_t *outVector, const lv_32fc_t *inVector, const lv_32fc_t phase_inc, lv_32fc_t *phase, unsigned int num_points)
Definition: volk_32fc_s32fc_x2_rotator_32fc.h:528
static 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)
Definition: volk_32fc_s32fc_rotatorpuppet_32fc.h:35
static void volk_32fc_s32fc_x2_rotator_32fc_neon(lv_32fc_t *outVector, const lv_32fc_t *inVector, const lv_32fc_t phase_inc, lv_32fc_t *phase, unsigned int num_points)
Definition: volk_32fc_s32fc_x2_rotator_32fc.h:122