Line | Branch | Exec | Source |
---|---|---|---|
1 | |||
2 | |||
3 | /* this file was generated by volk template utils, do not edit! */ | ||
4 | |||
5 | /* -*- c++ -*- */ | ||
6 | /* | ||
7 | * Copyright 2011-2012 Free Software Foundation, Inc. | ||
8 | * | ||
9 | * This file is part of VOLK | ||
10 | * | ||
11 | * SPDX-License-Identifier: LGPL-3.0-or-later | ||
12 | */ | ||
13 | |||
14 | #include <volk/volk_common.h> | ||
15 | #include "volk_machines.h" | ||
16 | #include <volk/volk_typedefs.h> | ||
17 | #include <volk/volk_cpu.h> | ||
18 | #include "volk_rank_archs.h" | ||
19 | #include <volk/volk.h> | ||
20 | #include <stdio.h> | ||
21 | #include <string.h> | ||
22 | #include <assert.h> | ||
23 | |||
24 | static size_t __alignment = 0; | ||
25 | static intptr_t __alignment_mask = 0; | ||
26 | |||
27 | 140698 | struct volk_machine *get_machine(void) | |
28 | { | ||
29 | extern struct volk_machine *volk_machines[]; | ||
30 | extern unsigned int n_volk_machines; | ||
31 | static struct volk_machine *machine = NULL; | ||
32 | |||
33 |
2/2✓ Branch 0 taken 140416 times.
✓ Branch 1 taken 282 times.
|
140698 | if(machine != NULL) |
34 | 140416 | return machine; | |
35 | else { | ||
36 | 282 | unsigned int max_score = 0; | |
37 | unsigned int i; | ||
38 | 282 | struct volk_machine *max_machine = NULL; | |
39 |
2/2✓ Branch 0 taken 3102 times.
✓ Branch 1 taken 282 times.
|
3384 | for(i=0; i<n_volk_machines; i++) { |
40 |
2/2✓ Branch 1 taken 2256 times.
✓ Branch 2 taken 846 times.
|
3102 | if(!(volk_machines[i]->caps & (~volk_get_lvarch()))) { |
41 |
1/2✓ Branch 0 taken 2256 times.
✗ Branch 1 not taken.
|
2256 | if(volk_machines[i]->caps > max_score) { |
42 | 2256 | max_score = volk_machines[i]->caps; | |
43 | 2256 | max_machine = volk_machines[i]; | |
44 | } | ||
45 | } | ||
46 | } | ||
47 | 282 | machine = max_machine; | |
48 | //printf("Using Volk machine: %s\n", machine->name); | ||
49 | 282 | __alignment = machine->alignment; | |
50 | 282 | __alignment_mask = (intptr_t)(__alignment-1); | |
51 | 282 | return machine; | |
52 | } | ||
53 | } | ||
54 | |||
55 | ✗ | void volk_list_machines(void) | |
56 | { | ||
57 | extern struct volk_machine *volk_machines[]; | ||
58 | extern unsigned int n_volk_machines; | ||
59 | |||
60 | unsigned int i; | ||
61 | ✗ | for(i=0; i<n_volk_machines; i++) { | |
62 | ✗ | if(!(volk_machines[i]->caps & (~volk_get_lvarch()))) { | |
63 | ✗ | printf("%s;", volk_machines[i]->name); | |
64 | } | ||
65 | } | ||
66 | ✗ | printf("\n"); | |
67 | ✗ | } | |
68 | |||
69 | ✗ | const char* volk_get_machine(void) | |
70 | { | ||
71 | extern struct volk_machine *volk_machines[]; | ||
72 | extern unsigned int n_volk_machines; | ||
73 | static struct volk_machine *machine = NULL; | ||
74 | |||
75 | ✗ | if(machine != NULL) | |
76 | ✗ | return machine->name; | |
77 | else { | ||
78 | ✗ | unsigned int max_score = 0; | |
79 | unsigned int i; | ||
80 | ✗ | struct volk_machine *max_machine = NULL; | |
81 | ✗ | for(i=0; i<n_volk_machines; i++) { | |
82 | ✗ | if(!(volk_machines[i]->caps & (~volk_get_lvarch()))) { | |
83 | ✗ | if(volk_machines[i]->caps > max_score) { | |
84 | ✗ | max_score = volk_machines[i]->caps; | |
85 | ✗ | max_machine = volk_machines[i]; | |
86 | } | ||
87 | } | ||
88 | } | ||
89 | ✗ | machine = max_machine; | |
90 | ✗ | return machine->name; | |
91 | } | ||
92 | } | ||
93 | |||
94 | 3536 | size_t volk_get_alignment(void) | |
95 | { | ||
96 | 3536 | get_machine(); //ensures alignment is set | |
97 | 3536 | return __alignment; | |
98 | } | ||
99 | |||
100 | 10 | bool volk_is_aligned(const void *ptr) | |
101 | { | ||
102 | 10 | return ((intptr_t)(ptr) & __alignment_mask) == 0; | |
103 | } | ||
104 | |||
105 | #define LV_HAVE_GENERIC | ||
106 | #define LV_HAVE_DISPATCHER | ||
107 | |||
108 | |||
109 | |||
110 | ✗ | static inline void __volk_16i_32fc_dot_prod_32fc_d(lv_32fc_t* result, const short* input, const lv_32fc_t* taps, unsigned int num_points) | |
111 | { | ||
112 | |||
113 | ✗ | if (volk_is_aligned( | |
114 | ✗ | VOLK_OR_PTR(result, | |
115 | VOLK_OR_PTR(input, | ||
116 | VOLK_OR_PTR(taps, | ||
117 | 0))) | ||
118 | )){ | ||
119 | ✗ | volk_16i_32fc_dot_prod_32fc_a(result, input, taps, num_points); | |
120 | } | ||
121 | else{ | ||
122 | ✗ | volk_16i_32fc_dot_prod_32fc_u(result, input, taps, num_points); | |
123 | } | ||
124 | ✗ | } | |
125 | |||
126 | ✗ | static inline void __init_volk_16i_32fc_dot_prod_32fc(void) | |
127 | { | ||
128 | ✗ | const char *name = get_machine()->volk_16i_32fc_dot_prod_32fc_name; | |
129 | ✗ | const char **impl_names = get_machine()->volk_16i_32fc_dot_prod_32fc_impl_names; | |
130 | ✗ | const int *impl_deps = get_machine()->volk_16i_32fc_dot_prod_32fc_impl_deps; | |
131 | ✗ | const bool *alignment = get_machine()->volk_16i_32fc_dot_prod_32fc_impl_alignment; | |
132 | ✗ | const size_t n_impls = get_machine()->volk_16i_32fc_dot_prod_32fc_n_impls; | |
133 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
134 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
135 | ✗ | volk_16i_32fc_dot_prod_32fc_a = get_machine()->volk_16i_32fc_dot_prod_32fc_impls[index_a]; | |
136 | ✗ | volk_16i_32fc_dot_prod_32fc_u = get_machine()->volk_16i_32fc_dot_prod_32fc_impls[index_u]; | |
137 | |||
138 | ✗ | assert(volk_16i_32fc_dot_prod_32fc_a); | |
139 | ✗ | assert(volk_16i_32fc_dot_prod_32fc_u); | |
140 | |||
141 | ✗ | volk_16i_32fc_dot_prod_32fc = &__volk_16i_32fc_dot_prod_32fc_d; | |
142 | ✗ | } | |
143 | |||
144 | ✗ | static inline void __volk_16i_32fc_dot_prod_32fc_a(lv_32fc_t* result, const short* input, const lv_32fc_t* taps, unsigned int num_points) | |
145 | { | ||
146 | ✗ | __init_volk_16i_32fc_dot_prod_32fc(); | |
147 | ✗ | volk_16i_32fc_dot_prod_32fc_a(result, input, taps, num_points); | |
148 | ✗ | } | |
149 | |||
150 | ✗ | static inline void __volk_16i_32fc_dot_prod_32fc_u(lv_32fc_t* result, const short* input, const lv_32fc_t* taps, unsigned int num_points) | |
151 | { | ||
152 | ✗ | __init_volk_16i_32fc_dot_prod_32fc(); | |
153 | ✗ | volk_16i_32fc_dot_prod_32fc_u(result, input, taps, num_points); | |
154 | ✗ | } | |
155 | |||
156 | ✗ | static inline void __volk_16i_32fc_dot_prod_32fc(lv_32fc_t* result, const short* input, const lv_32fc_t* taps, unsigned int num_points) | |
157 | { | ||
158 | ✗ | __init_volk_16i_32fc_dot_prod_32fc(); | |
159 | ✗ | volk_16i_32fc_dot_prod_32fc(result, input, taps, num_points); | |
160 | ✗ | } | |
161 | |||
162 | p_16i_32fc_dot_prod_32fc volk_16i_32fc_dot_prod_32fc_a = &__volk_16i_32fc_dot_prod_32fc_a; | ||
163 | p_16i_32fc_dot_prod_32fc volk_16i_32fc_dot_prod_32fc_u = &__volk_16i_32fc_dot_prod_32fc_u; | ||
164 | p_16i_32fc_dot_prod_32fc volk_16i_32fc_dot_prod_32fc = &__volk_16i_32fc_dot_prod_32fc; | ||
165 | |||
166 | 14 | void volk_16i_32fc_dot_prod_32fc_manual(lv_32fc_t* result, const short* input, const lv_32fc_t* taps, unsigned int num_points, const char* impl_name) | |
167 | { | ||
168 | 14 | const int index = volk_get_index( | |
169 | 14 | get_machine()->volk_16i_32fc_dot_prod_32fc_impl_names, | |
170 | 14 | get_machine()->volk_16i_32fc_dot_prod_32fc_n_impls, | |
171 | impl_name | ||
172 | ); | ||
173 | 14 | get_machine()->volk_16i_32fc_dot_prod_32fc_impls[index]( | |
174 | result, input, taps, num_points | ||
175 | ); | ||
176 | 14 | } | |
177 | |||
178 | 282 | volk_func_desc_t volk_16i_32fc_dot_prod_32fc_get_func_desc(void) { | |
179 | 282 | const char **impl_names = get_machine()->volk_16i_32fc_dot_prod_32fc_impl_names; | |
180 | 282 | const int *impl_deps = get_machine()->volk_16i_32fc_dot_prod_32fc_impl_deps; | |
181 | 282 | const bool *alignment = get_machine()->volk_16i_32fc_dot_prod_32fc_impl_alignment; | |
182 | 282 | const size_t n_impls = get_machine()->volk_16i_32fc_dot_prod_32fc_n_impls; | |
183 | 282 | volk_func_desc_t desc = { | |
184 | impl_names, | ||
185 | impl_deps, | ||
186 | alignment, | ||
187 | n_impls | ||
188 | }; | ||
189 | 282 | return desc; | |
190 | } | ||
191 | |||
192 | |||
193 | |||
194 | ✗ | static inline void __volk_16i_branch_4_state_8_d(short* target, short* src0, char** permuters, short* cntl2, short* cntl3, short* scalars) | |
195 | { | ||
196 | |||
197 | ✗ | if (volk_is_aligned( | |
198 | ✗ | VOLK_OR_PTR(target, | |
199 | VOLK_OR_PTR(src0, | ||
200 | VOLK_OR_PTR(permuters, | ||
201 | VOLK_OR_PTR(cntl2, | ||
202 | VOLK_OR_PTR(cntl3, | ||
203 | VOLK_OR_PTR(scalars, | ||
204 | 0)))))) | ||
205 | )){ | ||
206 | ✗ | volk_16i_branch_4_state_8_a(target, src0, permuters, cntl2, cntl3, scalars); | |
207 | } | ||
208 | else{ | ||
209 | ✗ | volk_16i_branch_4_state_8_u(target, src0, permuters, cntl2, cntl3, scalars); | |
210 | } | ||
211 | ✗ | } | |
212 | |||
213 | ✗ | static inline void __init_volk_16i_branch_4_state_8(void) | |
214 | { | ||
215 | ✗ | const char *name = get_machine()->volk_16i_branch_4_state_8_name; | |
216 | ✗ | const char **impl_names = get_machine()->volk_16i_branch_4_state_8_impl_names; | |
217 | ✗ | const int *impl_deps = get_machine()->volk_16i_branch_4_state_8_impl_deps; | |
218 | ✗ | const bool *alignment = get_machine()->volk_16i_branch_4_state_8_impl_alignment; | |
219 | ✗ | const size_t n_impls = get_machine()->volk_16i_branch_4_state_8_n_impls; | |
220 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
221 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
222 | ✗ | volk_16i_branch_4_state_8_a = get_machine()->volk_16i_branch_4_state_8_impls[index_a]; | |
223 | ✗ | volk_16i_branch_4_state_8_u = get_machine()->volk_16i_branch_4_state_8_impls[index_u]; | |
224 | |||
225 | ✗ | assert(volk_16i_branch_4_state_8_a); | |
226 | ✗ | assert(volk_16i_branch_4_state_8_u); | |
227 | |||
228 | ✗ | volk_16i_branch_4_state_8 = &__volk_16i_branch_4_state_8_d; | |
229 | ✗ | } | |
230 | |||
231 | ✗ | static inline void __volk_16i_branch_4_state_8_a(short* target, short* src0, char** permuters, short* cntl2, short* cntl3, short* scalars) | |
232 | { | ||
233 | ✗ | __init_volk_16i_branch_4_state_8(); | |
234 | ✗ | volk_16i_branch_4_state_8_a(target, src0, permuters, cntl2, cntl3, scalars); | |
235 | ✗ | } | |
236 | |||
237 | ✗ | static inline void __volk_16i_branch_4_state_8_u(short* target, short* src0, char** permuters, short* cntl2, short* cntl3, short* scalars) | |
238 | { | ||
239 | ✗ | __init_volk_16i_branch_4_state_8(); | |
240 | ✗ | volk_16i_branch_4_state_8_u(target, src0, permuters, cntl2, cntl3, scalars); | |
241 | ✗ | } | |
242 | |||
243 | ✗ | static inline void __volk_16i_branch_4_state_8(short* target, short* src0, char** permuters, short* cntl2, short* cntl3, short* scalars) | |
244 | { | ||
245 | ✗ | __init_volk_16i_branch_4_state_8(); | |
246 | ✗ | volk_16i_branch_4_state_8(target, src0, permuters, cntl2, cntl3, scalars); | |
247 | ✗ | } | |
248 | |||
249 | p_16i_branch_4_state_8 volk_16i_branch_4_state_8_a = &__volk_16i_branch_4_state_8_a; | ||
250 | p_16i_branch_4_state_8 volk_16i_branch_4_state_8_u = &__volk_16i_branch_4_state_8_u; | ||
251 | p_16i_branch_4_state_8 volk_16i_branch_4_state_8 = &__volk_16i_branch_4_state_8; | ||
252 | |||
253 | ✗ | void volk_16i_branch_4_state_8_manual(short* target, short* src0, char** permuters, short* cntl2, short* cntl3, short* scalars, const char* impl_name) | |
254 | { | ||
255 | ✗ | const int index = volk_get_index( | |
256 | ✗ | get_machine()->volk_16i_branch_4_state_8_impl_names, | |
257 | ✗ | get_machine()->volk_16i_branch_4_state_8_n_impls, | |
258 | impl_name | ||
259 | ); | ||
260 | ✗ | get_machine()->volk_16i_branch_4_state_8_impls[index]( | |
261 | target, src0, permuters, cntl2, cntl3, scalars | ||
262 | ); | ||
263 | ✗ | } | |
264 | |||
265 | ✗ | volk_func_desc_t volk_16i_branch_4_state_8_get_func_desc(void) { | |
266 | ✗ | const char **impl_names = get_machine()->volk_16i_branch_4_state_8_impl_names; | |
267 | ✗ | const int *impl_deps = get_machine()->volk_16i_branch_4_state_8_impl_deps; | |
268 | ✗ | const bool *alignment = get_machine()->volk_16i_branch_4_state_8_impl_alignment; | |
269 | ✗ | const size_t n_impls = get_machine()->volk_16i_branch_4_state_8_n_impls; | |
270 | ✗ | volk_func_desc_t desc = { | |
271 | impl_names, | ||
272 | impl_deps, | ||
273 | alignment, | ||
274 | n_impls | ||
275 | }; | ||
276 | ✗ | return desc; | |
277 | } | ||
278 | |||
279 | |||
280 | |||
281 | ✗ | static inline void __volk_16i_convert_8i_d(int8_t* outputVector, const int16_t* inputVector, unsigned int num_points) | |
282 | { | ||
283 | |||
284 | ✗ | if (volk_is_aligned( | |
285 | ✗ | VOLK_OR_PTR(outputVector, | |
286 | VOLK_OR_PTR(inputVector, | ||
287 | 0)) | ||
288 | )){ | ||
289 | ✗ | volk_16i_convert_8i_a(outputVector, inputVector, num_points); | |
290 | } | ||
291 | else{ | ||
292 | ✗ | volk_16i_convert_8i_u(outputVector, inputVector, num_points); | |
293 | } | ||
294 | ✗ | } | |
295 | |||
296 | ✗ | static inline void __init_volk_16i_convert_8i(void) | |
297 | { | ||
298 | ✗ | const char *name = get_machine()->volk_16i_convert_8i_name; | |
299 | ✗ | const char **impl_names = get_machine()->volk_16i_convert_8i_impl_names; | |
300 | ✗ | const int *impl_deps = get_machine()->volk_16i_convert_8i_impl_deps; | |
301 | ✗ | const bool *alignment = get_machine()->volk_16i_convert_8i_impl_alignment; | |
302 | ✗ | const size_t n_impls = get_machine()->volk_16i_convert_8i_n_impls; | |
303 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
304 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
305 | ✗ | volk_16i_convert_8i_a = get_machine()->volk_16i_convert_8i_impls[index_a]; | |
306 | ✗ | volk_16i_convert_8i_u = get_machine()->volk_16i_convert_8i_impls[index_u]; | |
307 | |||
308 | ✗ | assert(volk_16i_convert_8i_a); | |
309 | ✗ | assert(volk_16i_convert_8i_u); | |
310 | |||
311 | ✗ | volk_16i_convert_8i = &__volk_16i_convert_8i_d; | |
312 | ✗ | } | |
313 | |||
314 | ✗ | static inline void __volk_16i_convert_8i_a(int8_t* outputVector, const int16_t* inputVector, unsigned int num_points) | |
315 | { | ||
316 | ✗ | __init_volk_16i_convert_8i(); | |
317 | ✗ | volk_16i_convert_8i_a(outputVector, inputVector, num_points); | |
318 | ✗ | } | |
319 | |||
320 | ✗ | static inline void __volk_16i_convert_8i_u(int8_t* outputVector, const int16_t* inputVector, unsigned int num_points) | |
321 | { | ||
322 | ✗ | __init_volk_16i_convert_8i(); | |
323 | ✗ | volk_16i_convert_8i_u(outputVector, inputVector, num_points); | |
324 | ✗ | } | |
325 | |||
326 | ✗ | static inline void __volk_16i_convert_8i(int8_t* outputVector, const int16_t* inputVector, unsigned int num_points) | |
327 | { | ||
328 | ✗ | __init_volk_16i_convert_8i(); | |
329 | ✗ | volk_16i_convert_8i(outputVector, inputVector, num_points); | |
330 | ✗ | } | |
331 | |||
332 | p_16i_convert_8i volk_16i_convert_8i_a = &__volk_16i_convert_8i_a; | ||
333 | p_16i_convert_8i volk_16i_convert_8i_u = &__volk_16i_convert_8i_u; | ||
334 | p_16i_convert_8i volk_16i_convert_8i = &__volk_16i_convert_8i; | ||
335 | |||
336 | 12 | void volk_16i_convert_8i_manual(int8_t* outputVector, const int16_t* inputVector, unsigned int num_points, const char* impl_name) | |
337 | { | ||
338 | 12 | const int index = volk_get_index( | |
339 | 12 | get_machine()->volk_16i_convert_8i_impl_names, | |
340 | 12 | get_machine()->volk_16i_convert_8i_n_impls, | |
341 | impl_name | ||
342 | ); | ||
343 | 12 | get_machine()->volk_16i_convert_8i_impls[index]( | |
344 | outputVector, inputVector, num_points | ||
345 | ); | ||
346 | 12 | } | |
347 | |||
348 | 282 | volk_func_desc_t volk_16i_convert_8i_get_func_desc(void) { | |
349 | 282 | const char **impl_names = get_machine()->volk_16i_convert_8i_impl_names; | |
350 | 282 | const int *impl_deps = get_machine()->volk_16i_convert_8i_impl_deps; | |
351 | 282 | const bool *alignment = get_machine()->volk_16i_convert_8i_impl_alignment; | |
352 | 282 | const size_t n_impls = get_machine()->volk_16i_convert_8i_n_impls; | |
353 | 282 | volk_func_desc_t desc = { | |
354 | impl_names, | ||
355 | impl_deps, | ||
356 | alignment, | ||
357 | n_impls | ||
358 | }; | ||
359 | 282 | return desc; | |
360 | } | ||
361 | |||
362 | |||
363 | |||
364 | ✗ | static inline void __volk_16i_max_star_16i_d(short* target, short* src0, unsigned int num_points) | |
365 | { | ||
366 | |||
367 | ✗ | if (volk_is_aligned( | |
368 | ✗ | VOLK_OR_PTR(target, | |
369 | VOLK_OR_PTR(src0, | ||
370 | 0)) | ||
371 | )){ | ||
372 | ✗ | volk_16i_max_star_16i_a(target, src0, num_points); | |
373 | } | ||
374 | else{ | ||
375 | ✗ | volk_16i_max_star_16i_u(target, src0, num_points); | |
376 | } | ||
377 | ✗ | } | |
378 | |||
379 | ✗ | static inline void __init_volk_16i_max_star_16i(void) | |
380 | { | ||
381 | ✗ | const char *name = get_machine()->volk_16i_max_star_16i_name; | |
382 | ✗ | const char **impl_names = get_machine()->volk_16i_max_star_16i_impl_names; | |
383 | ✗ | const int *impl_deps = get_machine()->volk_16i_max_star_16i_impl_deps; | |
384 | ✗ | const bool *alignment = get_machine()->volk_16i_max_star_16i_impl_alignment; | |
385 | ✗ | const size_t n_impls = get_machine()->volk_16i_max_star_16i_n_impls; | |
386 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
387 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
388 | ✗ | volk_16i_max_star_16i_a = get_machine()->volk_16i_max_star_16i_impls[index_a]; | |
389 | ✗ | volk_16i_max_star_16i_u = get_machine()->volk_16i_max_star_16i_impls[index_u]; | |
390 | |||
391 | ✗ | assert(volk_16i_max_star_16i_a); | |
392 | ✗ | assert(volk_16i_max_star_16i_u); | |
393 | |||
394 | ✗ | volk_16i_max_star_16i = &__volk_16i_max_star_16i_d; | |
395 | ✗ | } | |
396 | |||
397 | ✗ | static inline void __volk_16i_max_star_16i_a(short* target, short* src0, unsigned int num_points) | |
398 | { | ||
399 | ✗ | __init_volk_16i_max_star_16i(); | |
400 | ✗ | volk_16i_max_star_16i_a(target, src0, num_points); | |
401 | ✗ | } | |
402 | |||
403 | ✗ | static inline void __volk_16i_max_star_16i_u(short* target, short* src0, unsigned int num_points) | |
404 | { | ||
405 | ✗ | __init_volk_16i_max_star_16i(); | |
406 | ✗ | volk_16i_max_star_16i_u(target, src0, num_points); | |
407 | ✗ | } | |
408 | |||
409 | ✗ | static inline void __volk_16i_max_star_16i(short* target, short* src0, unsigned int num_points) | |
410 | { | ||
411 | ✗ | __init_volk_16i_max_star_16i(); | |
412 | ✗ | volk_16i_max_star_16i(target, src0, num_points); | |
413 | ✗ | } | |
414 | |||
415 | p_16i_max_star_16i volk_16i_max_star_16i_a = &__volk_16i_max_star_16i_a; | ||
416 | p_16i_max_star_16i volk_16i_max_star_16i_u = &__volk_16i_max_star_16i_u; | ||
417 | p_16i_max_star_16i volk_16i_max_star_16i = &__volk_16i_max_star_16i; | ||
418 | |||
419 | ✗ | void volk_16i_max_star_16i_manual(short* target, short* src0, unsigned int num_points, const char* impl_name) | |
420 | { | ||
421 | ✗ | const int index = volk_get_index( | |
422 | ✗ | get_machine()->volk_16i_max_star_16i_impl_names, | |
423 | ✗ | get_machine()->volk_16i_max_star_16i_n_impls, | |
424 | impl_name | ||
425 | ); | ||
426 | ✗ | get_machine()->volk_16i_max_star_16i_impls[index]( | |
427 | target, src0, num_points | ||
428 | ); | ||
429 | ✗ | } | |
430 | |||
431 | ✗ | volk_func_desc_t volk_16i_max_star_16i_get_func_desc(void) { | |
432 | ✗ | const char **impl_names = get_machine()->volk_16i_max_star_16i_impl_names; | |
433 | ✗ | const int *impl_deps = get_machine()->volk_16i_max_star_16i_impl_deps; | |
434 | ✗ | const bool *alignment = get_machine()->volk_16i_max_star_16i_impl_alignment; | |
435 | ✗ | const size_t n_impls = get_machine()->volk_16i_max_star_16i_n_impls; | |
436 | ✗ | volk_func_desc_t desc = { | |
437 | impl_names, | ||
438 | impl_deps, | ||
439 | alignment, | ||
440 | n_impls | ||
441 | }; | ||
442 | ✗ | return desc; | |
443 | } | ||
444 | |||
445 | |||
446 | |||
447 | ✗ | static inline void __volk_16i_max_star_horizontal_16i_d(int16_t* target, int16_t* src0, unsigned int num_points) | |
448 | { | ||
449 | |||
450 | ✗ | if (volk_is_aligned( | |
451 | ✗ | VOLK_OR_PTR(target, | |
452 | VOLK_OR_PTR(src0, | ||
453 | 0)) | ||
454 | )){ | ||
455 | ✗ | volk_16i_max_star_horizontal_16i_a(target, src0, num_points); | |
456 | } | ||
457 | else{ | ||
458 | ✗ | volk_16i_max_star_horizontal_16i_u(target, src0, num_points); | |
459 | } | ||
460 | ✗ | } | |
461 | |||
462 | ✗ | static inline void __init_volk_16i_max_star_horizontal_16i(void) | |
463 | { | ||
464 | ✗ | const char *name = get_machine()->volk_16i_max_star_horizontal_16i_name; | |
465 | ✗ | const char **impl_names = get_machine()->volk_16i_max_star_horizontal_16i_impl_names; | |
466 | ✗ | const int *impl_deps = get_machine()->volk_16i_max_star_horizontal_16i_impl_deps; | |
467 | ✗ | const bool *alignment = get_machine()->volk_16i_max_star_horizontal_16i_impl_alignment; | |
468 | ✗ | const size_t n_impls = get_machine()->volk_16i_max_star_horizontal_16i_n_impls; | |
469 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
470 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
471 | ✗ | volk_16i_max_star_horizontal_16i_a = get_machine()->volk_16i_max_star_horizontal_16i_impls[index_a]; | |
472 | ✗ | volk_16i_max_star_horizontal_16i_u = get_machine()->volk_16i_max_star_horizontal_16i_impls[index_u]; | |
473 | |||
474 | ✗ | assert(volk_16i_max_star_horizontal_16i_a); | |
475 | ✗ | assert(volk_16i_max_star_horizontal_16i_u); | |
476 | |||
477 | ✗ | volk_16i_max_star_horizontal_16i = &__volk_16i_max_star_horizontal_16i_d; | |
478 | ✗ | } | |
479 | |||
480 | ✗ | static inline void __volk_16i_max_star_horizontal_16i_a(int16_t* target, int16_t* src0, unsigned int num_points) | |
481 | { | ||
482 | ✗ | __init_volk_16i_max_star_horizontal_16i(); | |
483 | ✗ | volk_16i_max_star_horizontal_16i_a(target, src0, num_points); | |
484 | ✗ | } | |
485 | |||
486 | ✗ | static inline void __volk_16i_max_star_horizontal_16i_u(int16_t* target, int16_t* src0, unsigned int num_points) | |
487 | { | ||
488 | ✗ | __init_volk_16i_max_star_horizontal_16i(); | |
489 | ✗ | volk_16i_max_star_horizontal_16i_u(target, src0, num_points); | |
490 | ✗ | } | |
491 | |||
492 | ✗ | static inline void __volk_16i_max_star_horizontal_16i(int16_t* target, int16_t* src0, unsigned int num_points) | |
493 | { | ||
494 | ✗ | __init_volk_16i_max_star_horizontal_16i(); | |
495 | ✗ | volk_16i_max_star_horizontal_16i(target, src0, num_points); | |
496 | ✗ | } | |
497 | |||
498 | p_16i_max_star_horizontal_16i volk_16i_max_star_horizontal_16i_a = &__volk_16i_max_star_horizontal_16i_a; | ||
499 | p_16i_max_star_horizontal_16i volk_16i_max_star_horizontal_16i_u = &__volk_16i_max_star_horizontal_16i_u; | ||
500 | p_16i_max_star_horizontal_16i volk_16i_max_star_horizontal_16i = &__volk_16i_max_star_horizontal_16i; | ||
501 | |||
502 | ✗ | void volk_16i_max_star_horizontal_16i_manual(int16_t* target, int16_t* src0, unsigned int num_points, const char* impl_name) | |
503 | { | ||
504 | ✗ | const int index = volk_get_index( | |
505 | ✗ | get_machine()->volk_16i_max_star_horizontal_16i_impl_names, | |
506 | ✗ | get_machine()->volk_16i_max_star_horizontal_16i_n_impls, | |
507 | impl_name | ||
508 | ); | ||
509 | ✗ | get_machine()->volk_16i_max_star_horizontal_16i_impls[index]( | |
510 | target, src0, num_points | ||
511 | ); | ||
512 | ✗ | } | |
513 | |||
514 | ✗ | volk_func_desc_t volk_16i_max_star_horizontal_16i_get_func_desc(void) { | |
515 | ✗ | const char **impl_names = get_machine()->volk_16i_max_star_horizontal_16i_impl_names; | |
516 | ✗ | const int *impl_deps = get_machine()->volk_16i_max_star_horizontal_16i_impl_deps; | |
517 | ✗ | const bool *alignment = get_machine()->volk_16i_max_star_horizontal_16i_impl_alignment; | |
518 | ✗ | const size_t n_impls = get_machine()->volk_16i_max_star_horizontal_16i_n_impls; | |
519 | ✗ | volk_func_desc_t desc = { | |
520 | impl_names, | ||
521 | impl_deps, | ||
522 | alignment, | ||
523 | n_impls | ||
524 | }; | ||
525 | ✗ | return desc; | |
526 | } | ||
527 | |||
528 | |||
529 | |||
530 | ✗ | static inline void __volk_16i_permute_and_scalar_add_d(short* target, short* src0, short* permute_indexes, short* cntl0, short* cntl1, short* cntl2, short* cntl3, short* scalars, unsigned int num_points) | |
531 | { | ||
532 | |||
533 | ✗ | if (volk_is_aligned( | |
534 | ✗ | VOLK_OR_PTR(target, | |
535 | VOLK_OR_PTR(src0, | ||
536 | VOLK_OR_PTR(permute_indexes, | ||
537 | VOLK_OR_PTR(cntl0, | ||
538 | VOLK_OR_PTR(cntl1, | ||
539 | VOLK_OR_PTR(cntl2, | ||
540 | VOLK_OR_PTR(cntl3, | ||
541 | VOLK_OR_PTR(scalars, | ||
542 | 0)))))))) | ||
543 | )){ | ||
544 | ✗ | volk_16i_permute_and_scalar_add_a(target, src0, permute_indexes, cntl0, cntl1, cntl2, cntl3, scalars, num_points); | |
545 | } | ||
546 | else{ | ||
547 | ✗ | volk_16i_permute_and_scalar_add_u(target, src0, permute_indexes, cntl0, cntl1, cntl2, cntl3, scalars, num_points); | |
548 | } | ||
549 | ✗ | } | |
550 | |||
551 | ✗ | static inline void __init_volk_16i_permute_and_scalar_add(void) | |
552 | { | ||
553 | ✗ | const char *name = get_machine()->volk_16i_permute_and_scalar_add_name; | |
554 | ✗ | const char **impl_names = get_machine()->volk_16i_permute_and_scalar_add_impl_names; | |
555 | ✗ | const int *impl_deps = get_machine()->volk_16i_permute_and_scalar_add_impl_deps; | |
556 | ✗ | const bool *alignment = get_machine()->volk_16i_permute_and_scalar_add_impl_alignment; | |
557 | ✗ | const size_t n_impls = get_machine()->volk_16i_permute_and_scalar_add_n_impls; | |
558 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
559 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
560 | ✗ | volk_16i_permute_and_scalar_add_a = get_machine()->volk_16i_permute_and_scalar_add_impls[index_a]; | |
561 | ✗ | volk_16i_permute_and_scalar_add_u = get_machine()->volk_16i_permute_and_scalar_add_impls[index_u]; | |
562 | |||
563 | ✗ | assert(volk_16i_permute_and_scalar_add_a); | |
564 | ✗ | assert(volk_16i_permute_and_scalar_add_u); | |
565 | |||
566 | ✗ | volk_16i_permute_and_scalar_add = &__volk_16i_permute_and_scalar_add_d; | |
567 | ✗ | } | |
568 | |||
569 | ✗ | static inline void __volk_16i_permute_and_scalar_add_a(short* target, short* src0, short* permute_indexes, short* cntl0, short* cntl1, short* cntl2, short* cntl3, short* scalars, unsigned int num_points) | |
570 | { | ||
571 | ✗ | __init_volk_16i_permute_and_scalar_add(); | |
572 | ✗ | volk_16i_permute_and_scalar_add_a(target, src0, permute_indexes, cntl0, cntl1, cntl2, cntl3, scalars, num_points); | |
573 | ✗ | } | |
574 | |||
575 | ✗ | static inline void __volk_16i_permute_and_scalar_add_u(short* target, short* src0, short* permute_indexes, short* cntl0, short* cntl1, short* cntl2, short* cntl3, short* scalars, unsigned int num_points) | |
576 | { | ||
577 | ✗ | __init_volk_16i_permute_and_scalar_add(); | |
578 | ✗ | volk_16i_permute_and_scalar_add_u(target, src0, permute_indexes, cntl0, cntl1, cntl2, cntl3, scalars, num_points); | |
579 | ✗ | } | |
580 | |||
581 | ✗ | static inline void __volk_16i_permute_and_scalar_add(short* target, short* src0, short* permute_indexes, short* cntl0, short* cntl1, short* cntl2, short* cntl3, short* scalars, unsigned int num_points) | |
582 | { | ||
583 | ✗ | __init_volk_16i_permute_and_scalar_add(); | |
584 | ✗ | volk_16i_permute_and_scalar_add(target, src0, permute_indexes, cntl0, cntl1, cntl2, cntl3, scalars, num_points); | |
585 | ✗ | } | |
586 | |||
587 | p_16i_permute_and_scalar_add volk_16i_permute_and_scalar_add_a = &__volk_16i_permute_and_scalar_add_a; | ||
588 | p_16i_permute_and_scalar_add volk_16i_permute_and_scalar_add_u = &__volk_16i_permute_and_scalar_add_u; | ||
589 | p_16i_permute_and_scalar_add volk_16i_permute_and_scalar_add = &__volk_16i_permute_and_scalar_add; | ||
590 | |||
591 | ✗ | void volk_16i_permute_and_scalar_add_manual(short* target, short* src0, short* permute_indexes, short* cntl0, short* cntl1, short* cntl2, short* cntl3, short* scalars, unsigned int num_points, const char* impl_name) | |
592 | { | ||
593 | ✗ | const int index = volk_get_index( | |
594 | ✗ | get_machine()->volk_16i_permute_and_scalar_add_impl_names, | |
595 | ✗ | get_machine()->volk_16i_permute_and_scalar_add_n_impls, | |
596 | impl_name | ||
597 | ); | ||
598 | ✗ | get_machine()->volk_16i_permute_and_scalar_add_impls[index]( | |
599 | target, src0, permute_indexes, cntl0, cntl1, cntl2, cntl3, scalars, num_points | ||
600 | ); | ||
601 | ✗ | } | |
602 | |||
603 | ✗ | volk_func_desc_t volk_16i_permute_and_scalar_add_get_func_desc(void) { | |
604 | ✗ | const char **impl_names = get_machine()->volk_16i_permute_and_scalar_add_impl_names; | |
605 | ✗ | const int *impl_deps = get_machine()->volk_16i_permute_and_scalar_add_impl_deps; | |
606 | ✗ | const bool *alignment = get_machine()->volk_16i_permute_and_scalar_add_impl_alignment; | |
607 | ✗ | const size_t n_impls = get_machine()->volk_16i_permute_and_scalar_add_n_impls; | |
608 | ✗ | volk_func_desc_t desc = { | |
609 | impl_names, | ||
610 | impl_deps, | ||
611 | alignment, | ||
612 | n_impls | ||
613 | }; | ||
614 | ✗ | return desc; | |
615 | } | ||
616 | |||
617 | |||
618 | |||
619 | ✗ | static inline void __volk_16i_s32f_convert_32f_d(float* outputVector, const int16_t* inputVector, const float scalar, unsigned int num_points) | |
620 | { | ||
621 | |||
622 | ✗ | if (volk_is_aligned( | |
623 | ✗ | VOLK_OR_PTR(outputVector, | |
624 | VOLK_OR_PTR(inputVector, | ||
625 | 0)) | ||
626 | )){ | ||
627 | ✗ | volk_16i_s32f_convert_32f_a(outputVector, inputVector, scalar, num_points); | |
628 | } | ||
629 | else{ | ||
630 | ✗ | volk_16i_s32f_convert_32f_u(outputVector, inputVector, scalar, num_points); | |
631 | } | ||
632 | ✗ | } | |
633 | |||
634 | ✗ | static inline void __init_volk_16i_s32f_convert_32f(void) | |
635 | { | ||
636 | ✗ | const char *name = get_machine()->volk_16i_s32f_convert_32f_name; | |
637 | ✗ | const char **impl_names = get_machine()->volk_16i_s32f_convert_32f_impl_names; | |
638 | ✗ | const int *impl_deps = get_machine()->volk_16i_s32f_convert_32f_impl_deps; | |
639 | ✗ | const bool *alignment = get_machine()->volk_16i_s32f_convert_32f_impl_alignment; | |
640 | ✗ | const size_t n_impls = get_machine()->volk_16i_s32f_convert_32f_n_impls; | |
641 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
642 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
643 | ✗ | volk_16i_s32f_convert_32f_a = get_machine()->volk_16i_s32f_convert_32f_impls[index_a]; | |
644 | ✗ | volk_16i_s32f_convert_32f_u = get_machine()->volk_16i_s32f_convert_32f_impls[index_u]; | |
645 | |||
646 | ✗ | assert(volk_16i_s32f_convert_32f_a); | |
647 | ✗ | assert(volk_16i_s32f_convert_32f_u); | |
648 | |||
649 | ✗ | volk_16i_s32f_convert_32f = &__volk_16i_s32f_convert_32f_d; | |
650 | ✗ | } | |
651 | |||
652 | ✗ | static inline void __volk_16i_s32f_convert_32f_a(float* outputVector, const int16_t* inputVector, const float scalar, unsigned int num_points) | |
653 | { | ||
654 | ✗ | __init_volk_16i_s32f_convert_32f(); | |
655 | ✗ | volk_16i_s32f_convert_32f_a(outputVector, inputVector, scalar, num_points); | |
656 | ✗ | } | |
657 | |||
658 | ✗ | static inline void __volk_16i_s32f_convert_32f_u(float* outputVector, const int16_t* inputVector, const float scalar, unsigned int num_points) | |
659 | { | ||
660 | ✗ | __init_volk_16i_s32f_convert_32f(); | |
661 | ✗ | volk_16i_s32f_convert_32f_u(outputVector, inputVector, scalar, num_points); | |
662 | ✗ | } | |
663 | |||
664 | ✗ | static inline void __volk_16i_s32f_convert_32f(float* outputVector, const int16_t* inputVector, const float scalar, unsigned int num_points) | |
665 | { | ||
666 | ✗ | __init_volk_16i_s32f_convert_32f(); | |
667 | ✗ | volk_16i_s32f_convert_32f(outputVector, inputVector, scalar, num_points); | |
668 | ✗ | } | |
669 | |||
670 | p_16i_s32f_convert_32f volk_16i_s32f_convert_32f_a = &__volk_16i_s32f_convert_32f_a; | ||
671 | p_16i_s32f_convert_32f volk_16i_s32f_convert_32f_u = &__volk_16i_s32f_convert_32f_u; | ||
672 | p_16i_s32f_convert_32f volk_16i_s32f_convert_32f = &__volk_16i_s32f_convert_32f; | ||
673 | |||
674 | 20 | void volk_16i_s32f_convert_32f_manual(float* outputVector, const int16_t* inputVector, const float scalar, unsigned int num_points, const char* impl_name) | |
675 | { | ||
676 | 20 | const int index = volk_get_index( | |
677 | 20 | get_machine()->volk_16i_s32f_convert_32f_impl_names, | |
678 | 20 | get_machine()->volk_16i_s32f_convert_32f_n_impls, | |
679 | impl_name | ||
680 | ); | ||
681 | 20 | get_machine()->volk_16i_s32f_convert_32f_impls[index]( | |
682 | outputVector, inputVector, scalar, num_points | ||
683 | ); | ||
684 | 20 | } | |
685 | |||
686 | 282 | volk_func_desc_t volk_16i_s32f_convert_32f_get_func_desc(void) { | |
687 | 282 | const char **impl_names = get_machine()->volk_16i_s32f_convert_32f_impl_names; | |
688 | 282 | const int *impl_deps = get_machine()->volk_16i_s32f_convert_32f_impl_deps; | |
689 | 282 | const bool *alignment = get_machine()->volk_16i_s32f_convert_32f_impl_alignment; | |
690 | 282 | const size_t n_impls = get_machine()->volk_16i_s32f_convert_32f_n_impls; | |
691 | 282 | volk_func_desc_t desc = { | |
692 | impl_names, | ||
693 | impl_deps, | ||
694 | alignment, | ||
695 | n_impls | ||
696 | }; | ||
697 | 282 | return desc; | |
698 | } | ||
699 | |||
700 | |||
701 | |||
702 | ✗ | static inline void __volk_16i_x4_quad_max_star_16i_d(short* target, short* src0, short* src1, short* src2, short* src3, unsigned int num_points) | |
703 | { | ||
704 | |||
705 | ✗ | if (volk_is_aligned( | |
706 | ✗ | VOLK_OR_PTR(target, | |
707 | VOLK_OR_PTR(src0, | ||
708 | VOLK_OR_PTR(src1, | ||
709 | VOLK_OR_PTR(src2, | ||
710 | VOLK_OR_PTR(src3, | ||
711 | 0))))) | ||
712 | )){ | ||
713 | ✗ | volk_16i_x4_quad_max_star_16i_a(target, src0, src1, src2, src3, num_points); | |
714 | } | ||
715 | else{ | ||
716 | ✗ | volk_16i_x4_quad_max_star_16i_u(target, src0, src1, src2, src3, num_points); | |
717 | } | ||
718 | ✗ | } | |
719 | |||
720 | ✗ | static inline void __init_volk_16i_x4_quad_max_star_16i(void) | |
721 | { | ||
722 | ✗ | const char *name = get_machine()->volk_16i_x4_quad_max_star_16i_name; | |
723 | ✗ | const char **impl_names = get_machine()->volk_16i_x4_quad_max_star_16i_impl_names; | |
724 | ✗ | const int *impl_deps = get_machine()->volk_16i_x4_quad_max_star_16i_impl_deps; | |
725 | ✗ | const bool *alignment = get_machine()->volk_16i_x4_quad_max_star_16i_impl_alignment; | |
726 | ✗ | const size_t n_impls = get_machine()->volk_16i_x4_quad_max_star_16i_n_impls; | |
727 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
728 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
729 | ✗ | volk_16i_x4_quad_max_star_16i_a = get_machine()->volk_16i_x4_quad_max_star_16i_impls[index_a]; | |
730 | ✗ | volk_16i_x4_quad_max_star_16i_u = get_machine()->volk_16i_x4_quad_max_star_16i_impls[index_u]; | |
731 | |||
732 | ✗ | assert(volk_16i_x4_quad_max_star_16i_a); | |
733 | ✗ | assert(volk_16i_x4_quad_max_star_16i_u); | |
734 | |||
735 | ✗ | volk_16i_x4_quad_max_star_16i = &__volk_16i_x4_quad_max_star_16i_d; | |
736 | ✗ | } | |
737 | |||
738 | ✗ | static inline void __volk_16i_x4_quad_max_star_16i_a(short* target, short* src0, short* src1, short* src2, short* src3, unsigned int num_points) | |
739 | { | ||
740 | ✗ | __init_volk_16i_x4_quad_max_star_16i(); | |
741 | ✗ | volk_16i_x4_quad_max_star_16i_a(target, src0, src1, src2, src3, num_points); | |
742 | ✗ | } | |
743 | |||
744 | ✗ | static inline void __volk_16i_x4_quad_max_star_16i_u(short* target, short* src0, short* src1, short* src2, short* src3, unsigned int num_points) | |
745 | { | ||
746 | ✗ | __init_volk_16i_x4_quad_max_star_16i(); | |
747 | ✗ | volk_16i_x4_quad_max_star_16i_u(target, src0, src1, src2, src3, num_points); | |
748 | ✗ | } | |
749 | |||
750 | ✗ | static inline void __volk_16i_x4_quad_max_star_16i(short* target, short* src0, short* src1, short* src2, short* src3, unsigned int num_points) | |
751 | { | ||
752 | ✗ | __init_volk_16i_x4_quad_max_star_16i(); | |
753 | ✗ | volk_16i_x4_quad_max_star_16i(target, src0, src1, src2, src3, num_points); | |
754 | ✗ | } | |
755 | |||
756 | p_16i_x4_quad_max_star_16i volk_16i_x4_quad_max_star_16i_a = &__volk_16i_x4_quad_max_star_16i_a; | ||
757 | p_16i_x4_quad_max_star_16i volk_16i_x4_quad_max_star_16i_u = &__volk_16i_x4_quad_max_star_16i_u; | ||
758 | p_16i_x4_quad_max_star_16i volk_16i_x4_quad_max_star_16i = &__volk_16i_x4_quad_max_star_16i; | ||
759 | |||
760 | ✗ | void volk_16i_x4_quad_max_star_16i_manual(short* target, short* src0, short* src1, short* src2, short* src3, unsigned int num_points, const char* impl_name) | |
761 | { | ||
762 | ✗ | const int index = volk_get_index( | |
763 | ✗ | get_machine()->volk_16i_x4_quad_max_star_16i_impl_names, | |
764 | ✗ | get_machine()->volk_16i_x4_quad_max_star_16i_n_impls, | |
765 | impl_name | ||
766 | ); | ||
767 | ✗ | get_machine()->volk_16i_x4_quad_max_star_16i_impls[index]( | |
768 | target, src0, src1, src2, src3, num_points | ||
769 | ); | ||
770 | ✗ | } | |
771 | |||
772 | ✗ | volk_func_desc_t volk_16i_x4_quad_max_star_16i_get_func_desc(void) { | |
773 | ✗ | const char **impl_names = get_machine()->volk_16i_x4_quad_max_star_16i_impl_names; | |
774 | ✗ | const int *impl_deps = get_machine()->volk_16i_x4_quad_max_star_16i_impl_deps; | |
775 | ✗ | const bool *alignment = get_machine()->volk_16i_x4_quad_max_star_16i_impl_alignment; | |
776 | ✗ | const size_t n_impls = get_machine()->volk_16i_x4_quad_max_star_16i_n_impls; | |
777 | ✗ | volk_func_desc_t desc = { | |
778 | impl_names, | ||
779 | impl_deps, | ||
780 | alignment, | ||
781 | n_impls | ||
782 | }; | ||
783 | ✗ | return desc; | |
784 | } | ||
785 | |||
786 | |||
787 | |||
788 | ✗ | static inline void __volk_16i_x5_add_quad_16i_x4_d(short* target0, short* target1, short* target2, short* target3, short* src0, short* src1, short* src2, short* src3, short* src4, unsigned int num_points) | |
789 | { | ||
790 | |||
791 | ✗ | if (volk_is_aligned( | |
792 | ✗ | VOLK_OR_PTR(target0, | |
793 | VOLK_OR_PTR(target1, | ||
794 | VOLK_OR_PTR(target2, | ||
795 | VOLK_OR_PTR(target3, | ||
796 | VOLK_OR_PTR(src0, | ||
797 | VOLK_OR_PTR(src1, | ||
798 | VOLK_OR_PTR(src2, | ||
799 | VOLK_OR_PTR(src3, | ||
800 | VOLK_OR_PTR(src4, | ||
801 | 0))))))))) | ||
802 | )){ | ||
803 | ✗ | volk_16i_x5_add_quad_16i_x4_a(target0, target1, target2, target3, src0, src1, src2, src3, src4, num_points); | |
804 | } | ||
805 | else{ | ||
806 | ✗ | volk_16i_x5_add_quad_16i_x4_u(target0, target1, target2, target3, src0, src1, src2, src3, src4, num_points); | |
807 | } | ||
808 | ✗ | } | |
809 | |||
810 | ✗ | static inline void __init_volk_16i_x5_add_quad_16i_x4(void) | |
811 | { | ||
812 | ✗ | const char *name = get_machine()->volk_16i_x5_add_quad_16i_x4_name; | |
813 | ✗ | const char **impl_names = get_machine()->volk_16i_x5_add_quad_16i_x4_impl_names; | |
814 | ✗ | const int *impl_deps = get_machine()->volk_16i_x5_add_quad_16i_x4_impl_deps; | |
815 | ✗ | const bool *alignment = get_machine()->volk_16i_x5_add_quad_16i_x4_impl_alignment; | |
816 | ✗ | const size_t n_impls = get_machine()->volk_16i_x5_add_quad_16i_x4_n_impls; | |
817 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
818 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
819 | ✗ | volk_16i_x5_add_quad_16i_x4_a = get_machine()->volk_16i_x5_add_quad_16i_x4_impls[index_a]; | |
820 | ✗ | volk_16i_x5_add_quad_16i_x4_u = get_machine()->volk_16i_x5_add_quad_16i_x4_impls[index_u]; | |
821 | |||
822 | ✗ | assert(volk_16i_x5_add_quad_16i_x4_a); | |
823 | ✗ | assert(volk_16i_x5_add_quad_16i_x4_u); | |
824 | |||
825 | ✗ | volk_16i_x5_add_quad_16i_x4 = &__volk_16i_x5_add_quad_16i_x4_d; | |
826 | ✗ | } | |
827 | |||
828 | ✗ | static inline void __volk_16i_x5_add_quad_16i_x4_a(short* target0, short* target1, short* target2, short* target3, short* src0, short* src1, short* src2, short* src3, short* src4, unsigned int num_points) | |
829 | { | ||
830 | ✗ | __init_volk_16i_x5_add_quad_16i_x4(); | |
831 | ✗ | volk_16i_x5_add_quad_16i_x4_a(target0, target1, target2, target3, src0, src1, src2, src3, src4, num_points); | |
832 | ✗ | } | |
833 | |||
834 | ✗ | static inline void __volk_16i_x5_add_quad_16i_x4_u(short* target0, short* target1, short* target2, short* target3, short* src0, short* src1, short* src2, short* src3, short* src4, unsigned int num_points) | |
835 | { | ||
836 | ✗ | __init_volk_16i_x5_add_quad_16i_x4(); | |
837 | ✗ | volk_16i_x5_add_quad_16i_x4_u(target0, target1, target2, target3, src0, src1, src2, src3, src4, num_points); | |
838 | ✗ | } | |
839 | |||
840 | ✗ | static inline void __volk_16i_x5_add_quad_16i_x4(short* target0, short* target1, short* target2, short* target3, short* src0, short* src1, short* src2, short* src3, short* src4, unsigned int num_points) | |
841 | { | ||
842 | ✗ | __init_volk_16i_x5_add_quad_16i_x4(); | |
843 | ✗ | volk_16i_x5_add_quad_16i_x4(target0, target1, target2, target3, src0, src1, src2, src3, src4, num_points); | |
844 | ✗ | } | |
845 | |||
846 | p_16i_x5_add_quad_16i_x4 volk_16i_x5_add_quad_16i_x4_a = &__volk_16i_x5_add_quad_16i_x4_a; | ||
847 | p_16i_x5_add_quad_16i_x4 volk_16i_x5_add_quad_16i_x4_u = &__volk_16i_x5_add_quad_16i_x4_u; | ||
848 | p_16i_x5_add_quad_16i_x4 volk_16i_x5_add_quad_16i_x4 = &__volk_16i_x5_add_quad_16i_x4; | ||
849 | |||
850 | ✗ | void volk_16i_x5_add_quad_16i_x4_manual(short* target0, short* target1, short* target2, short* target3, short* src0, short* src1, short* src2, short* src3, short* src4, unsigned int num_points, const char* impl_name) | |
851 | { | ||
852 | ✗ | const int index = volk_get_index( | |
853 | ✗ | get_machine()->volk_16i_x5_add_quad_16i_x4_impl_names, | |
854 | ✗ | get_machine()->volk_16i_x5_add_quad_16i_x4_n_impls, | |
855 | impl_name | ||
856 | ); | ||
857 | ✗ | get_machine()->volk_16i_x5_add_quad_16i_x4_impls[index]( | |
858 | target0, target1, target2, target3, src0, src1, src2, src3, src4, num_points | ||
859 | ); | ||
860 | ✗ | } | |
861 | |||
862 | ✗ | volk_func_desc_t volk_16i_x5_add_quad_16i_x4_get_func_desc(void) { | |
863 | ✗ | const char **impl_names = get_machine()->volk_16i_x5_add_quad_16i_x4_impl_names; | |
864 | ✗ | const int *impl_deps = get_machine()->volk_16i_x5_add_quad_16i_x4_impl_deps; | |
865 | ✗ | const bool *alignment = get_machine()->volk_16i_x5_add_quad_16i_x4_impl_alignment; | |
866 | ✗ | const size_t n_impls = get_machine()->volk_16i_x5_add_quad_16i_x4_n_impls; | |
867 | ✗ | volk_func_desc_t desc = { | |
868 | impl_names, | ||
869 | impl_deps, | ||
870 | alignment, | ||
871 | n_impls | ||
872 | }; | ||
873 | ✗ | return desc; | |
874 | } | ||
875 | |||
876 | |||
877 | |||
878 | ✗ | static inline void __volk_16ic_convert_32fc_d(lv_32fc_t* outputVector, const lv_16sc_t* inputVector, unsigned int num_points) | |
879 | { | ||
880 | |||
881 | ✗ | if (volk_is_aligned( | |
882 | ✗ | VOLK_OR_PTR(outputVector, | |
883 | VOLK_OR_PTR(inputVector, | ||
884 | 0)) | ||
885 | )){ | ||
886 | ✗ | volk_16ic_convert_32fc_a(outputVector, inputVector, num_points); | |
887 | } | ||
888 | else{ | ||
889 | ✗ | volk_16ic_convert_32fc_u(outputVector, inputVector, num_points); | |
890 | } | ||
891 | ✗ | } | |
892 | |||
893 | ✗ | static inline void __init_volk_16ic_convert_32fc(void) | |
894 | { | ||
895 | ✗ | const char *name = get_machine()->volk_16ic_convert_32fc_name; | |
896 | ✗ | const char **impl_names = get_machine()->volk_16ic_convert_32fc_impl_names; | |
897 | ✗ | const int *impl_deps = get_machine()->volk_16ic_convert_32fc_impl_deps; | |
898 | ✗ | const bool *alignment = get_machine()->volk_16ic_convert_32fc_impl_alignment; | |
899 | ✗ | const size_t n_impls = get_machine()->volk_16ic_convert_32fc_n_impls; | |
900 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
901 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
902 | ✗ | volk_16ic_convert_32fc_a = get_machine()->volk_16ic_convert_32fc_impls[index_a]; | |
903 | ✗ | volk_16ic_convert_32fc_u = get_machine()->volk_16ic_convert_32fc_impls[index_u]; | |
904 | |||
905 | ✗ | assert(volk_16ic_convert_32fc_a); | |
906 | ✗ | assert(volk_16ic_convert_32fc_u); | |
907 | |||
908 | ✗ | volk_16ic_convert_32fc = &__volk_16ic_convert_32fc_d; | |
909 | ✗ | } | |
910 | |||
911 | ✗ | static inline void __volk_16ic_convert_32fc_a(lv_32fc_t* outputVector, const lv_16sc_t* inputVector, unsigned int num_points) | |
912 | { | ||
913 | ✗ | __init_volk_16ic_convert_32fc(); | |
914 | ✗ | volk_16ic_convert_32fc_a(outputVector, inputVector, num_points); | |
915 | ✗ | } | |
916 | |||
917 | ✗ | static inline void __volk_16ic_convert_32fc_u(lv_32fc_t* outputVector, const lv_16sc_t* inputVector, unsigned int num_points) | |
918 | { | ||
919 | ✗ | __init_volk_16ic_convert_32fc(); | |
920 | ✗ | volk_16ic_convert_32fc_u(outputVector, inputVector, num_points); | |
921 | ✗ | } | |
922 | |||
923 | ✗ | static inline void __volk_16ic_convert_32fc(lv_32fc_t* outputVector, const lv_16sc_t* inputVector, unsigned int num_points) | |
924 | { | ||
925 | ✗ | __init_volk_16ic_convert_32fc(); | |
926 | ✗ | volk_16ic_convert_32fc(outputVector, inputVector, num_points); | |
927 | ✗ | } | |
928 | |||
929 | p_16ic_convert_32fc volk_16ic_convert_32fc_a = &__volk_16ic_convert_32fc_a; | ||
930 | p_16ic_convert_32fc volk_16ic_convert_32fc_u = &__volk_16ic_convert_32fc_u; | ||
931 | p_16ic_convert_32fc volk_16ic_convert_32fc = &__volk_16ic_convert_32fc; | ||
932 | |||
933 | 14 | void volk_16ic_convert_32fc_manual(lv_32fc_t* outputVector, const lv_16sc_t* inputVector, unsigned int num_points, const char* impl_name) | |
934 | { | ||
935 | 14 | const int index = volk_get_index( | |
936 | 14 | get_machine()->volk_16ic_convert_32fc_impl_names, | |
937 | 14 | get_machine()->volk_16ic_convert_32fc_n_impls, | |
938 | impl_name | ||
939 | ); | ||
940 | 14 | get_machine()->volk_16ic_convert_32fc_impls[index]( | |
941 | outputVector, inputVector, num_points | ||
942 | ); | ||
943 | 14 | } | |
944 | |||
945 | 282 | volk_func_desc_t volk_16ic_convert_32fc_get_func_desc(void) { | |
946 | 282 | const char **impl_names = get_machine()->volk_16ic_convert_32fc_impl_names; | |
947 | 282 | const int *impl_deps = get_machine()->volk_16ic_convert_32fc_impl_deps; | |
948 | 282 | const bool *alignment = get_machine()->volk_16ic_convert_32fc_impl_alignment; | |
949 | 282 | const size_t n_impls = get_machine()->volk_16ic_convert_32fc_n_impls; | |
950 | 282 | volk_func_desc_t desc = { | |
951 | impl_names, | ||
952 | impl_deps, | ||
953 | alignment, | ||
954 | n_impls | ||
955 | }; | ||
956 | 282 | return desc; | |
957 | } | ||
958 | |||
959 | |||
960 | |||
961 | ✗ | static inline void __volk_16ic_deinterleave_16i_x2_d(int16_t* iBuffer, int16_t* qBuffer, const lv_16sc_t* complexVector, unsigned int num_points) | |
962 | { | ||
963 | |||
964 | ✗ | if (volk_is_aligned( | |
965 | ✗ | VOLK_OR_PTR(iBuffer, | |
966 | VOLK_OR_PTR(qBuffer, | ||
967 | VOLK_OR_PTR(complexVector, | ||
968 | 0))) | ||
969 | )){ | ||
970 | ✗ | volk_16ic_deinterleave_16i_x2_a(iBuffer, qBuffer, complexVector, num_points); | |
971 | } | ||
972 | else{ | ||
973 | ✗ | volk_16ic_deinterleave_16i_x2_u(iBuffer, qBuffer, complexVector, num_points); | |
974 | } | ||
975 | ✗ | } | |
976 | |||
977 | ✗ | static inline void __init_volk_16ic_deinterleave_16i_x2(void) | |
978 | { | ||
979 | ✗ | const char *name = get_machine()->volk_16ic_deinterleave_16i_x2_name; | |
980 | ✗ | const char **impl_names = get_machine()->volk_16ic_deinterleave_16i_x2_impl_names; | |
981 | ✗ | const int *impl_deps = get_machine()->volk_16ic_deinterleave_16i_x2_impl_deps; | |
982 | ✗ | const bool *alignment = get_machine()->volk_16ic_deinterleave_16i_x2_impl_alignment; | |
983 | ✗ | const size_t n_impls = get_machine()->volk_16ic_deinterleave_16i_x2_n_impls; | |
984 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
985 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
986 | ✗ | volk_16ic_deinterleave_16i_x2_a = get_machine()->volk_16ic_deinterleave_16i_x2_impls[index_a]; | |
987 | ✗ | volk_16ic_deinterleave_16i_x2_u = get_machine()->volk_16ic_deinterleave_16i_x2_impls[index_u]; | |
988 | |||
989 | ✗ | assert(volk_16ic_deinterleave_16i_x2_a); | |
990 | ✗ | assert(volk_16ic_deinterleave_16i_x2_u); | |
991 | |||
992 | ✗ | volk_16ic_deinterleave_16i_x2 = &__volk_16ic_deinterleave_16i_x2_d; | |
993 | ✗ | } | |
994 | |||
995 | ✗ | static inline void __volk_16ic_deinterleave_16i_x2_a(int16_t* iBuffer, int16_t* qBuffer, const lv_16sc_t* complexVector, unsigned int num_points) | |
996 | { | ||
997 | ✗ | __init_volk_16ic_deinterleave_16i_x2(); | |
998 | ✗ | volk_16ic_deinterleave_16i_x2_a(iBuffer, qBuffer, complexVector, num_points); | |
999 | ✗ | } | |
1000 | |||
1001 | ✗ | static inline void __volk_16ic_deinterleave_16i_x2_u(int16_t* iBuffer, int16_t* qBuffer, const lv_16sc_t* complexVector, unsigned int num_points) | |
1002 | { | ||
1003 | ✗ | __init_volk_16ic_deinterleave_16i_x2(); | |
1004 | ✗ | volk_16ic_deinterleave_16i_x2_u(iBuffer, qBuffer, complexVector, num_points); | |
1005 | ✗ | } | |
1006 | |||
1007 | ✗ | static inline void __volk_16ic_deinterleave_16i_x2(int16_t* iBuffer, int16_t* qBuffer, const lv_16sc_t* complexVector, unsigned int num_points) | |
1008 | { | ||
1009 | ✗ | __init_volk_16ic_deinterleave_16i_x2(); | |
1010 | ✗ | volk_16ic_deinterleave_16i_x2(iBuffer, qBuffer, complexVector, num_points); | |
1011 | ✗ | } | |
1012 | |||
1013 | p_16ic_deinterleave_16i_x2 volk_16ic_deinterleave_16i_x2_a = &__volk_16ic_deinterleave_16i_x2_a; | ||
1014 | p_16ic_deinterleave_16i_x2 volk_16ic_deinterleave_16i_x2_u = &__volk_16ic_deinterleave_16i_x2_u; | ||
1015 | p_16ic_deinterleave_16i_x2 volk_16ic_deinterleave_16i_x2 = &__volk_16ic_deinterleave_16i_x2; | ||
1016 | |||
1017 | 12 | void volk_16ic_deinterleave_16i_x2_manual(int16_t* iBuffer, int16_t* qBuffer, const lv_16sc_t* complexVector, unsigned int num_points, const char* impl_name) | |
1018 | { | ||
1019 | 12 | const int index = volk_get_index( | |
1020 | 12 | get_machine()->volk_16ic_deinterleave_16i_x2_impl_names, | |
1021 | 12 | get_machine()->volk_16ic_deinterleave_16i_x2_n_impls, | |
1022 | impl_name | ||
1023 | ); | ||
1024 | 12 | get_machine()->volk_16ic_deinterleave_16i_x2_impls[index]( | |
1025 | iBuffer, qBuffer, complexVector, num_points | ||
1026 | ); | ||
1027 | 12 | } | |
1028 | |||
1029 | 282 | volk_func_desc_t volk_16ic_deinterleave_16i_x2_get_func_desc(void) { | |
1030 | 282 | const char **impl_names = get_machine()->volk_16ic_deinterleave_16i_x2_impl_names; | |
1031 | 282 | const int *impl_deps = get_machine()->volk_16ic_deinterleave_16i_x2_impl_deps; | |
1032 | 282 | const bool *alignment = get_machine()->volk_16ic_deinterleave_16i_x2_impl_alignment; | |
1033 | 282 | const size_t n_impls = get_machine()->volk_16ic_deinterleave_16i_x2_n_impls; | |
1034 | 282 | volk_func_desc_t desc = { | |
1035 | impl_names, | ||
1036 | impl_deps, | ||
1037 | alignment, | ||
1038 | n_impls | ||
1039 | }; | ||
1040 | 282 | return desc; | |
1041 | } | ||
1042 | |||
1043 | |||
1044 | |||
1045 | ✗ | static inline void __volk_16ic_deinterleave_real_16i_d(int16_t* iBuffer, const lv_16sc_t* complexVector, unsigned int num_points) | |
1046 | { | ||
1047 | |||
1048 | ✗ | if (volk_is_aligned( | |
1049 | ✗ | VOLK_OR_PTR(iBuffer, | |
1050 | VOLK_OR_PTR(complexVector, | ||
1051 | 0)) | ||
1052 | )){ | ||
1053 | ✗ | volk_16ic_deinterleave_real_16i_a(iBuffer, complexVector, num_points); | |
1054 | } | ||
1055 | else{ | ||
1056 | ✗ | volk_16ic_deinterleave_real_16i_u(iBuffer, complexVector, num_points); | |
1057 | } | ||
1058 | ✗ | } | |
1059 | |||
1060 | ✗ | static inline void __init_volk_16ic_deinterleave_real_16i(void) | |
1061 | { | ||
1062 | ✗ | const char *name = get_machine()->volk_16ic_deinterleave_real_16i_name; | |
1063 | ✗ | const char **impl_names = get_machine()->volk_16ic_deinterleave_real_16i_impl_names; | |
1064 | ✗ | const int *impl_deps = get_machine()->volk_16ic_deinterleave_real_16i_impl_deps; | |
1065 | ✗ | const bool *alignment = get_machine()->volk_16ic_deinterleave_real_16i_impl_alignment; | |
1066 | ✗ | const size_t n_impls = get_machine()->volk_16ic_deinterleave_real_16i_n_impls; | |
1067 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
1068 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
1069 | ✗ | volk_16ic_deinterleave_real_16i_a = get_machine()->volk_16ic_deinterleave_real_16i_impls[index_a]; | |
1070 | ✗ | volk_16ic_deinterleave_real_16i_u = get_machine()->volk_16ic_deinterleave_real_16i_impls[index_u]; | |
1071 | |||
1072 | ✗ | assert(volk_16ic_deinterleave_real_16i_a); | |
1073 | ✗ | assert(volk_16ic_deinterleave_real_16i_u); | |
1074 | |||
1075 | ✗ | volk_16ic_deinterleave_real_16i = &__volk_16ic_deinterleave_real_16i_d; | |
1076 | ✗ | } | |
1077 | |||
1078 | ✗ | static inline void __volk_16ic_deinterleave_real_16i_a(int16_t* iBuffer, const lv_16sc_t* complexVector, unsigned int num_points) | |
1079 | { | ||
1080 | ✗ | __init_volk_16ic_deinterleave_real_16i(); | |
1081 | ✗ | volk_16ic_deinterleave_real_16i_a(iBuffer, complexVector, num_points); | |
1082 | ✗ | } | |
1083 | |||
1084 | ✗ | static inline void __volk_16ic_deinterleave_real_16i_u(int16_t* iBuffer, const lv_16sc_t* complexVector, unsigned int num_points) | |
1085 | { | ||
1086 | ✗ | __init_volk_16ic_deinterleave_real_16i(); | |
1087 | ✗ | volk_16ic_deinterleave_real_16i_u(iBuffer, complexVector, num_points); | |
1088 | ✗ | } | |
1089 | |||
1090 | ✗ | static inline void __volk_16ic_deinterleave_real_16i(int16_t* iBuffer, const lv_16sc_t* complexVector, unsigned int num_points) | |
1091 | { | ||
1092 | ✗ | __init_volk_16ic_deinterleave_real_16i(); | |
1093 | ✗ | volk_16ic_deinterleave_real_16i(iBuffer, complexVector, num_points); | |
1094 | ✗ | } | |
1095 | |||
1096 | p_16ic_deinterleave_real_16i volk_16ic_deinterleave_real_16i_a = &__volk_16ic_deinterleave_real_16i_a; | ||
1097 | p_16ic_deinterleave_real_16i volk_16ic_deinterleave_real_16i_u = &__volk_16ic_deinterleave_real_16i_u; | ||
1098 | p_16ic_deinterleave_real_16i volk_16ic_deinterleave_real_16i = &__volk_16ic_deinterleave_real_16i; | ||
1099 | |||
1100 | 10 | void volk_16ic_deinterleave_real_16i_manual(int16_t* iBuffer, const lv_16sc_t* complexVector, unsigned int num_points, const char* impl_name) | |
1101 | { | ||
1102 | 10 | const int index = volk_get_index( | |
1103 | 10 | get_machine()->volk_16ic_deinterleave_real_16i_impl_names, | |
1104 | 10 | get_machine()->volk_16ic_deinterleave_real_16i_n_impls, | |
1105 | impl_name | ||
1106 | ); | ||
1107 | 10 | get_machine()->volk_16ic_deinterleave_real_16i_impls[index]( | |
1108 | iBuffer, complexVector, num_points | ||
1109 | ); | ||
1110 | 10 | } | |
1111 | |||
1112 | 282 | volk_func_desc_t volk_16ic_deinterleave_real_16i_get_func_desc(void) { | |
1113 | 282 | const char **impl_names = get_machine()->volk_16ic_deinterleave_real_16i_impl_names; | |
1114 | 282 | const int *impl_deps = get_machine()->volk_16ic_deinterleave_real_16i_impl_deps; | |
1115 | 282 | const bool *alignment = get_machine()->volk_16ic_deinterleave_real_16i_impl_alignment; | |
1116 | 282 | const size_t n_impls = get_machine()->volk_16ic_deinterleave_real_16i_n_impls; | |
1117 | 282 | volk_func_desc_t desc = { | |
1118 | impl_names, | ||
1119 | impl_deps, | ||
1120 | alignment, | ||
1121 | n_impls | ||
1122 | }; | ||
1123 | 282 | return desc; | |
1124 | } | ||
1125 | |||
1126 | |||
1127 | |||
1128 | ✗ | static inline void __volk_16ic_deinterleave_real_8i_d(int8_t* iBuffer, const lv_16sc_t* complexVector, unsigned int num_points) | |
1129 | { | ||
1130 | |||
1131 | ✗ | if (volk_is_aligned( | |
1132 | ✗ | VOLK_OR_PTR(iBuffer, | |
1133 | VOLK_OR_PTR(complexVector, | ||
1134 | 0)) | ||
1135 | )){ | ||
1136 | ✗ | volk_16ic_deinterleave_real_8i_a(iBuffer, complexVector, num_points); | |
1137 | } | ||
1138 | else{ | ||
1139 | ✗ | volk_16ic_deinterleave_real_8i_u(iBuffer, complexVector, num_points); | |
1140 | } | ||
1141 | ✗ | } | |
1142 | |||
1143 | ✗ | static inline void __init_volk_16ic_deinterleave_real_8i(void) | |
1144 | { | ||
1145 | ✗ | const char *name = get_machine()->volk_16ic_deinterleave_real_8i_name; | |
1146 | ✗ | const char **impl_names = get_machine()->volk_16ic_deinterleave_real_8i_impl_names; | |
1147 | ✗ | const int *impl_deps = get_machine()->volk_16ic_deinterleave_real_8i_impl_deps; | |
1148 | ✗ | const bool *alignment = get_machine()->volk_16ic_deinterleave_real_8i_impl_alignment; | |
1149 | ✗ | const size_t n_impls = get_machine()->volk_16ic_deinterleave_real_8i_n_impls; | |
1150 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
1151 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
1152 | ✗ | volk_16ic_deinterleave_real_8i_a = get_machine()->volk_16ic_deinterleave_real_8i_impls[index_a]; | |
1153 | ✗ | volk_16ic_deinterleave_real_8i_u = get_machine()->volk_16ic_deinterleave_real_8i_impls[index_u]; | |
1154 | |||
1155 | ✗ | assert(volk_16ic_deinterleave_real_8i_a); | |
1156 | ✗ | assert(volk_16ic_deinterleave_real_8i_u); | |
1157 | |||
1158 | ✗ | volk_16ic_deinterleave_real_8i = &__volk_16ic_deinterleave_real_8i_d; | |
1159 | ✗ | } | |
1160 | |||
1161 | ✗ | static inline void __volk_16ic_deinterleave_real_8i_a(int8_t* iBuffer, const lv_16sc_t* complexVector, unsigned int num_points) | |
1162 | { | ||
1163 | ✗ | __init_volk_16ic_deinterleave_real_8i(); | |
1164 | ✗ | volk_16ic_deinterleave_real_8i_a(iBuffer, complexVector, num_points); | |
1165 | ✗ | } | |
1166 | |||
1167 | ✗ | static inline void __volk_16ic_deinterleave_real_8i_u(int8_t* iBuffer, const lv_16sc_t* complexVector, unsigned int num_points) | |
1168 | { | ||
1169 | ✗ | __init_volk_16ic_deinterleave_real_8i(); | |
1170 | ✗ | volk_16ic_deinterleave_real_8i_u(iBuffer, complexVector, num_points); | |
1171 | ✗ | } | |
1172 | |||
1173 | ✗ | static inline void __volk_16ic_deinterleave_real_8i(int8_t* iBuffer, const lv_16sc_t* complexVector, unsigned int num_points) | |
1174 | { | ||
1175 | ✗ | __init_volk_16ic_deinterleave_real_8i(); | |
1176 | ✗ | volk_16ic_deinterleave_real_8i(iBuffer, complexVector, num_points); | |
1177 | ✗ | } | |
1178 | |||
1179 | p_16ic_deinterleave_real_8i volk_16ic_deinterleave_real_8i_a = &__volk_16ic_deinterleave_real_8i_a; | ||
1180 | p_16ic_deinterleave_real_8i volk_16ic_deinterleave_real_8i_u = &__volk_16ic_deinterleave_real_8i_u; | ||
1181 | p_16ic_deinterleave_real_8i volk_16ic_deinterleave_real_8i = &__volk_16ic_deinterleave_real_8i; | ||
1182 | |||
1183 | 10 | void volk_16ic_deinterleave_real_8i_manual(int8_t* iBuffer, const lv_16sc_t* complexVector, unsigned int num_points, const char* impl_name) | |
1184 | { | ||
1185 | 10 | const int index = volk_get_index( | |
1186 | 10 | get_machine()->volk_16ic_deinterleave_real_8i_impl_names, | |
1187 | 10 | get_machine()->volk_16ic_deinterleave_real_8i_n_impls, | |
1188 | impl_name | ||
1189 | ); | ||
1190 | 10 | get_machine()->volk_16ic_deinterleave_real_8i_impls[index]( | |
1191 | iBuffer, complexVector, num_points | ||
1192 | ); | ||
1193 | 10 | } | |
1194 | |||
1195 | 282 | volk_func_desc_t volk_16ic_deinterleave_real_8i_get_func_desc(void) { | |
1196 | 282 | const char **impl_names = get_machine()->volk_16ic_deinterleave_real_8i_impl_names; | |
1197 | 282 | const int *impl_deps = get_machine()->volk_16ic_deinterleave_real_8i_impl_deps; | |
1198 | 282 | const bool *alignment = get_machine()->volk_16ic_deinterleave_real_8i_impl_alignment; | |
1199 | 282 | const size_t n_impls = get_machine()->volk_16ic_deinterleave_real_8i_n_impls; | |
1200 | 282 | volk_func_desc_t desc = { | |
1201 | impl_names, | ||
1202 | impl_deps, | ||
1203 | alignment, | ||
1204 | n_impls | ||
1205 | }; | ||
1206 | 282 | return desc; | |
1207 | } | ||
1208 | |||
1209 | |||
1210 | |||
1211 | ✗ | static inline void __volk_16ic_magnitude_16i_d(int16_t* magnitudeVector, const lv_16sc_t* complexVector, unsigned int num_points) | |
1212 | { | ||
1213 | |||
1214 | ✗ | if (volk_is_aligned( | |
1215 | ✗ | VOLK_OR_PTR(magnitudeVector, | |
1216 | VOLK_OR_PTR(complexVector, | ||
1217 | 0)) | ||
1218 | )){ | ||
1219 | ✗ | volk_16ic_magnitude_16i_a(magnitudeVector, complexVector, num_points); | |
1220 | } | ||
1221 | else{ | ||
1222 | ✗ | volk_16ic_magnitude_16i_u(magnitudeVector, complexVector, num_points); | |
1223 | } | ||
1224 | ✗ | } | |
1225 | |||
1226 | ✗ | static inline void __init_volk_16ic_magnitude_16i(void) | |
1227 | { | ||
1228 | ✗ | const char *name = get_machine()->volk_16ic_magnitude_16i_name; | |
1229 | ✗ | const char **impl_names = get_machine()->volk_16ic_magnitude_16i_impl_names; | |
1230 | ✗ | const int *impl_deps = get_machine()->volk_16ic_magnitude_16i_impl_deps; | |
1231 | ✗ | const bool *alignment = get_machine()->volk_16ic_magnitude_16i_impl_alignment; | |
1232 | ✗ | const size_t n_impls = get_machine()->volk_16ic_magnitude_16i_n_impls; | |
1233 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
1234 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
1235 | ✗ | volk_16ic_magnitude_16i_a = get_machine()->volk_16ic_magnitude_16i_impls[index_a]; | |
1236 | ✗ | volk_16ic_magnitude_16i_u = get_machine()->volk_16ic_magnitude_16i_impls[index_u]; | |
1237 | |||
1238 | ✗ | assert(volk_16ic_magnitude_16i_a); | |
1239 | ✗ | assert(volk_16ic_magnitude_16i_u); | |
1240 | |||
1241 | ✗ | volk_16ic_magnitude_16i = &__volk_16ic_magnitude_16i_d; | |
1242 | ✗ | } | |
1243 | |||
1244 | ✗ | static inline void __volk_16ic_magnitude_16i_a(int16_t* magnitudeVector, const lv_16sc_t* complexVector, unsigned int num_points) | |
1245 | { | ||
1246 | ✗ | __init_volk_16ic_magnitude_16i(); | |
1247 | ✗ | volk_16ic_magnitude_16i_a(magnitudeVector, complexVector, num_points); | |
1248 | ✗ | } | |
1249 | |||
1250 | ✗ | static inline void __volk_16ic_magnitude_16i_u(int16_t* magnitudeVector, const lv_16sc_t* complexVector, unsigned int num_points) | |
1251 | { | ||
1252 | ✗ | __init_volk_16ic_magnitude_16i(); | |
1253 | ✗ | volk_16ic_magnitude_16i_u(magnitudeVector, complexVector, num_points); | |
1254 | ✗ | } | |
1255 | |||
1256 | ✗ | static inline void __volk_16ic_magnitude_16i(int16_t* magnitudeVector, const lv_16sc_t* complexVector, unsigned int num_points) | |
1257 | { | ||
1258 | ✗ | __init_volk_16ic_magnitude_16i(); | |
1259 | ✗ | volk_16ic_magnitude_16i(magnitudeVector, complexVector, num_points); | |
1260 | ✗ | } | |
1261 | |||
1262 | p_16ic_magnitude_16i volk_16ic_magnitude_16i_a = &__volk_16ic_magnitude_16i_a; | ||
1263 | p_16ic_magnitude_16i volk_16ic_magnitude_16i_u = &__volk_16ic_magnitude_16i_u; | ||
1264 | p_16ic_magnitude_16i volk_16ic_magnitude_16i = &__volk_16ic_magnitude_16i; | ||
1265 | |||
1266 | 10 | void volk_16ic_magnitude_16i_manual(int16_t* magnitudeVector, const lv_16sc_t* complexVector, unsigned int num_points, const char* impl_name) | |
1267 | { | ||
1268 | 10 | const int index = volk_get_index( | |
1269 | 10 | get_machine()->volk_16ic_magnitude_16i_impl_names, | |
1270 | 10 | get_machine()->volk_16ic_magnitude_16i_n_impls, | |
1271 | impl_name | ||
1272 | ); | ||
1273 | 10 | get_machine()->volk_16ic_magnitude_16i_impls[index]( | |
1274 | magnitudeVector, complexVector, num_points | ||
1275 | ); | ||
1276 | 10 | } | |
1277 | |||
1278 | 282 | volk_func_desc_t volk_16ic_magnitude_16i_get_func_desc(void) { | |
1279 | 282 | const char **impl_names = get_machine()->volk_16ic_magnitude_16i_impl_names; | |
1280 | 282 | const int *impl_deps = get_machine()->volk_16ic_magnitude_16i_impl_deps; | |
1281 | 282 | const bool *alignment = get_machine()->volk_16ic_magnitude_16i_impl_alignment; | |
1282 | 282 | const size_t n_impls = get_machine()->volk_16ic_magnitude_16i_n_impls; | |
1283 | 282 | volk_func_desc_t desc = { | |
1284 | impl_names, | ||
1285 | impl_deps, | ||
1286 | alignment, | ||
1287 | n_impls | ||
1288 | }; | ||
1289 | 282 | return desc; | |
1290 | } | ||
1291 | |||
1292 | |||
1293 | |||
1294 | ✗ | static inline void __volk_16ic_s32f_deinterleave_32f_x2_d(float* iBuffer, float* qBuffer, const lv_16sc_t* complexVector, const float scalar, unsigned int num_points) | |
1295 | { | ||
1296 | |||
1297 | ✗ | if (volk_is_aligned( | |
1298 | ✗ | VOLK_OR_PTR(iBuffer, | |
1299 | VOLK_OR_PTR(qBuffer, | ||
1300 | VOLK_OR_PTR(complexVector, | ||
1301 | 0))) | ||
1302 | )){ | ||
1303 | ✗ | volk_16ic_s32f_deinterleave_32f_x2_a(iBuffer, qBuffer, complexVector, scalar, num_points); | |
1304 | } | ||
1305 | else{ | ||
1306 | ✗ | volk_16ic_s32f_deinterleave_32f_x2_u(iBuffer, qBuffer, complexVector, scalar, num_points); | |
1307 | } | ||
1308 | ✗ | } | |
1309 | |||
1310 | ✗ | static inline void __init_volk_16ic_s32f_deinterleave_32f_x2(void) | |
1311 | { | ||
1312 | ✗ | const char *name = get_machine()->volk_16ic_s32f_deinterleave_32f_x2_name; | |
1313 | ✗ | const char **impl_names = get_machine()->volk_16ic_s32f_deinterleave_32f_x2_impl_names; | |
1314 | ✗ | const int *impl_deps = get_machine()->volk_16ic_s32f_deinterleave_32f_x2_impl_deps; | |
1315 | ✗ | const bool *alignment = get_machine()->volk_16ic_s32f_deinterleave_32f_x2_impl_alignment; | |
1316 | ✗ | const size_t n_impls = get_machine()->volk_16ic_s32f_deinterleave_32f_x2_n_impls; | |
1317 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
1318 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
1319 | ✗ | volk_16ic_s32f_deinterleave_32f_x2_a = get_machine()->volk_16ic_s32f_deinterleave_32f_x2_impls[index_a]; | |
1320 | ✗ | volk_16ic_s32f_deinterleave_32f_x2_u = get_machine()->volk_16ic_s32f_deinterleave_32f_x2_impls[index_u]; | |
1321 | |||
1322 | ✗ | assert(volk_16ic_s32f_deinterleave_32f_x2_a); | |
1323 | ✗ | assert(volk_16ic_s32f_deinterleave_32f_x2_u); | |
1324 | |||
1325 | ✗ | volk_16ic_s32f_deinterleave_32f_x2 = &__volk_16ic_s32f_deinterleave_32f_x2_d; | |
1326 | ✗ | } | |
1327 | |||
1328 | ✗ | static inline void __volk_16ic_s32f_deinterleave_32f_x2_a(float* iBuffer, float* qBuffer, const lv_16sc_t* complexVector, const float scalar, unsigned int num_points) | |
1329 | { | ||
1330 | ✗ | __init_volk_16ic_s32f_deinterleave_32f_x2(); | |
1331 | ✗ | volk_16ic_s32f_deinterleave_32f_x2_a(iBuffer, qBuffer, complexVector, scalar, num_points); | |
1332 | ✗ | } | |
1333 | |||
1334 | ✗ | static inline void __volk_16ic_s32f_deinterleave_32f_x2_u(float* iBuffer, float* qBuffer, const lv_16sc_t* complexVector, const float scalar, unsigned int num_points) | |
1335 | { | ||
1336 | ✗ | __init_volk_16ic_s32f_deinterleave_32f_x2(); | |
1337 | ✗ | volk_16ic_s32f_deinterleave_32f_x2_u(iBuffer, qBuffer, complexVector, scalar, num_points); | |
1338 | ✗ | } | |
1339 | |||
1340 | ✗ | static inline void __volk_16ic_s32f_deinterleave_32f_x2(float* iBuffer, float* qBuffer, const lv_16sc_t* complexVector, const float scalar, unsigned int num_points) | |
1341 | { | ||
1342 | ✗ | __init_volk_16ic_s32f_deinterleave_32f_x2(); | |
1343 | ✗ | volk_16ic_s32f_deinterleave_32f_x2(iBuffer, qBuffer, complexVector, scalar, num_points); | |
1344 | ✗ | } | |
1345 | |||
1346 | p_16ic_s32f_deinterleave_32f_x2 volk_16ic_s32f_deinterleave_32f_x2_a = &__volk_16ic_s32f_deinterleave_32f_x2_a; | ||
1347 | p_16ic_s32f_deinterleave_32f_x2 volk_16ic_s32f_deinterleave_32f_x2_u = &__volk_16ic_s32f_deinterleave_32f_x2_u; | ||
1348 | p_16ic_s32f_deinterleave_32f_x2 volk_16ic_s32f_deinterleave_32f_x2 = &__volk_16ic_s32f_deinterleave_32f_x2; | ||
1349 | |||
1350 | 10 | void volk_16ic_s32f_deinterleave_32f_x2_manual(float* iBuffer, float* qBuffer, const lv_16sc_t* complexVector, const float scalar, unsigned int num_points, const char* impl_name) | |
1351 | { | ||
1352 | 10 | const int index = volk_get_index( | |
1353 | 10 | get_machine()->volk_16ic_s32f_deinterleave_32f_x2_impl_names, | |
1354 | 10 | get_machine()->volk_16ic_s32f_deinterleave_32f_x2_n_impls, | |
1355 | impl_name | ||
1356 | ); | ||
1357 | 10 | get_machine()->volk_16ic_s32f_deinterleave_32f_x2_impls[index]( | |
1358 | iBuffer, qBuffer, complexVector, scalar, num_points | ||
1359 | ); | ||
1360 | 10 | } | |
1361 | |||
1362 | 282 | volk_func_desc_t volk_16ic_s32f_deinterleave_32f_x2_get_func_desc(void) { | |
1363 | 282 | const char **impl_names = get_machine()->volk_16ic_s32f_deinterleave_32f_x2_impl_names; | |
1364 | 282 | const int *impl_deps = get_machine()->volk_16ic_s32f_deinterleave_32f_x2_impl_deps; | |
1365 | 282 | const bool *alignment = get_machine()->volk_16ic_s32f_deinterleave_32f_x2_impl_alignment; | |
1366 | 282 | const size_t n_impls = get_machine()->volk_16ic_s32f_deinterleave_32f_x2_n_impls; | |
1367 | 282 | volk_func_desc_t desc = { | |
1368 | impl_names, | ||
1369 | impl_deps, | ||
1370 | alignment, | ||
1371 | n_impls | ||
1372 | }; | ||
1373 | 282 | return desc; | |
1374 | } | ||
1375 | |||
1376 | |||
1377 | |||
1378 | ✗ | static inline void __volk_16ic_s32f_deinterleave_real_32f_d(float* iBuffer, const lv_16sc_t* complexVector, const float scalar, unsigned int num_points) | |
1379 | { | ||
1380 | |||
1381 | ✗ | if (volk_is_aligned( | |
1382 | ✗ | VOLK_OR_PTR(iBuffer, | |
1383 | VOLK_OR_PTR(complexVector, | ||
1384 | 0)) | ||
1385 | )){ | ||
1386 | ✗ | volk_16ic_s32f_deinterleave_real_32f_a(iBuffer, complexVector, scalar, num_points); | |
1387 | } | ||
1388 | else{ | ||
1389 | ✗ | volk_16ic_s32f_deinterleave_real_32f_u(iBuffer, complexVector, scalar, num_points); | |
1390 | } | ||
1391 | ✗ | } | |
1392 | |||
1393 | ✗ | static inline void __init_volk_16ic_s32f_deinterleave_real_32f(void) | |
1394 | { | ||
1395 | ✗ | const char *name = get_machine()->volk_16ic_s32f_deinterleave_real_32f_name; | |
1396 | ✗ | const char **impl_names = get_machine()->volk_16ic_s32f_deinterleave_real_32f_impl_names; | |
1397 | ✗ | const int *impl_deps = get_machine()->volk_16ic_s32f_deinterleave_real_32f_impl_deps; | |
1398 | ✗ | const bool *alignment = get_machine()->volk_16ic_s32f_deinterleave_real_32f_impl_alignment; | |
1399 | ✗ | const size_t n_impls = get_machine()->volk_16ic_s32f_deinterleave_real_32f_n_impls; | |
1400 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
1401 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
1402 | ✗ | volk_16ic_s32f_deinterleave_real_32f_a = get_machine()->volk_16ic_s32f_deinterleave_real_32f_impls[index_a]; | |
1403 | ✗ | volk_16ic_s32f_deinterleave_real_32f_u = get_machine()->volk_16ic_s32f_deinterleave_real_32f_impls[index_u]; | |
1404 | |||
1405 | ✗ | assert(volk_16ic_s32f_deinterleave_real_32f_a); | |
1406 | ✗ | assert(volk_16ic_s32f_deinterleave_real_32f_u); | |
1407 | |||
1408 | ✗ | volk_16ic_s32f_deinterleave_real_32f = &__volk_16ic_s32f_deinterleave_real_32f_d; | |
1409 | ✗ | } | |
1410 | |||
1411 | ✗ | static inline void __volk_16ic_s32f_deinterleave_real_32f_a(float* iBuffer, const lv_16sc_t* complexVector, const float scalar, unsigned int num_points) | |
1412 | { | ||
1413 | ✗ | __init_volk_16ic_s32f_deinterleave_real_32f(); | |
1414 | ✗ | volk_16ic_s32f_deinterleave_real_32f_a(iBuffer, complexVector, scalar, num_points); | |
1415 | ✗ | } | |
1416 | |||
1417 | ✗ | static inline void __volk_16ic_s32f_deinterleave_real_32f_u(float* iBuffer, const lv_16sc_t* complexVector, const float scalar, unsigned int num_points) | |
1418 | { | ||
1419 | ✗ | __init_volk_16ic_s32f_deinterleave_real_32f(); | |
1420 | ✗ | volk_16ic_s32f_deinterleave_real_32f_u(iBuffer, complexVector, scalar, num_points); | |
1421 | ✗ | } | |
1422 | |||
1423 | ✗ | static inline void __volk_16ic_s32f_deinterleave_real_32f(float* iBuffer, const lv_16sc_t* complexVector, const float scalar, unsigned int num_points) | |
1424 | { | ||
1425 | ✗ | __init_volk_16ic_s32f_deinterleave_real_32f(); | |
1426 | ✗ | volk_16ic_s32f_deinterleave_real_32f(iBuffer, complexVector, scalar, num_points); | |
1427 | ✗ | } | |
1428 | |||
1429 | p_16ic_s32f_deinterleave_real_32f volk_16ic_s32f_deinterleave_real_32f_a = &__volk_16ic_s32f_deinterleave_real_32f_a; | ||
1430 | p_16ic_s32f_deinterleave_real_32f volk_16ic_s32f_deinterleave_real_32f_u = &__volk_16ic_s32f_deinterleave_real_32f_u; | ||
1431 | p_16ic_s32f_deinterleave_real_32f volk_16ic_s32f_deinterleave_real_32f = &__volk_16ic_s32f_deinterleave_real_32f; | ||
1432 | |||
1433 | 10 | void volk_16ic_s32f_deinterleave_real_32f_manual(float* iBuffer, const lv_16sc_t* complexVector, const float scalar, unsigned int num_points, const char* impl_name) | |
1434 | { | ||
1435 | 10 | const int index = volk_get_index( | |
1436 | 10 | get_machine()->volk_16ic_s32f_deinterleave_real_32f_impl_names, | |
1437 | 10 | get_machine()->volk_16ic_s32f_deinterleave_real_32f_n_impls, | |
1438 | impl_name | ||
1439 | ); | ||
1440 | 10 | get_machine()->volk_16ic_s32f_deinterleave_real_32f_impls[index]( | |
1441 | iBuffer, complexVector, scalar, num_points | ||
1442 | ); | ||
1443 | 10 | } | |
1444 | |||
1445 | 282 | volk_func_desc_t volk_16ic_s32f_deinterleave_real_32f_get_func_desc(void) { | |
1446 | 282 | const char **impl_names = get_machine()->volk_16ic_s32f_deinterleave_real_32f_impl_names; | |
1447 | 282 | const int *impl_deps = get_machine()->volk_16ic_s32f_deinterleave_real_32f_impl_deps; | |
1448 | 282 | const bool *alignment = get_machine()->volk_16ic_s32f_deinterleave_real_32f_impl_alignment; | |
1449 | 282 | const size_t n_impls = get_machine()->volk_16ic_s32f_deinterleave_real_32f_n_impls; | |
1450 | 282 | volk_func_desc_t desc = { | |
1451 | impl_names, | ||
1452 | impl_deps, | ||
1453 | alignment, | ||
1454 | n_impls | ||
1455 | }; | ||
1456 | 282 | return desc; | |
1457 | } | ||
1458 | |||
1459 | |||
1460 | |||
1461 | ✗ | static inline void __volk_16ic_s32f_magnitude_32f_d(float* magnitudeVector, const lv_16sc_t* complexVector, const float scalar, unsigned int num_points) | |
1462 | { | ||
1463 | |||
1464 | ✗ | if (volk_is_aligned( | |
1465 | ✗ | VOLK_OR_PTR(magnitudeVector, | |
1466 | VOLK_OR_PTR(complexVector, | ||
1467 | 0)) | ||
1468 | )){ | ||
1469 | ✗ | volk_16ic_s32f_magnitude_32f_a(magnitudeVector, complexVector, scalar, num_points); | |
1470 | } | ||
1471 | else{ | ||
1472 | ✗ | volk_16ic_s32f_magnitude_32f_u(magnitudeVector, complexVector, scalar, num_points); | |
1473 | } | ||
1474 | ✗ | } | |
1475 | |||
1476 | ✗ | static inline void __init_volk_16ic_s32f_magnitude_32f(void) | |
1477 | { | ||
1478 | ✗ | const char *name = get_machine()->volk_16ic_s32f_magnitude_32f_name; | |
1479 | ✗ | const char **impl_names = get_machine()->volk_16ic_s32f_magnitude_32f_impl_names; | |
1480 | ✗ | const int *impl_deps = get_machine()->volk_16ic_s32f_magnitude_32f_impl_deps; | |
1481 | ✗ | const bool *alignment = get_machine()->volk_16ic_s32f_magnitude_32f_impl_alignment; | |
1482 | ✗ | const size_t n_impls = get_machine()->volk_16ic_s32f_magnitude_32f_n_impls; | |
1483 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
1484 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
1485 | ✗ | volk_16ic_s32f_magnitude_32f_a = get_machine()->volk_16ic_s32f_magnitude_32f_impls[index_a]; | |
1486 | ✗ | volk_16ic_s32f_magnitude_32f_u = get_machine()->volk_16ic_s32f_magnitude_32f_impls[index_u]; | |
1487 | |||
1488 | ✗ | assert(volk_16ic_s32f_magnitude_32f_a); | |
1489 | ✗ | assert(volk_16ic_s32f_magnitude_32f_u); | |
1490 | |||
1491 | ✗ | volk_16ic_s32f_magnitude_32f = &__volk_16ic_s32f_magnitude_32f_d; | |
1492 | ✗ | } | |
1493 | |||
1494 | ✗ | static inline void __volk_16ic_s32f_magnitude_32f_a(float* magnitudeVector, const lv_16sc_t* complexVector, const float scalar, unsigned int num_points) | |
1495 | { | ||
1496 | ✗ | __init_volk_16ic_s32f_magnitude_32f(); | |
1497 | ✗ | volk_16ic_s32f_magnitude_32f_a(magnitudeVector, complexVector, scalar, num_points); | |
1498 | ✗ | } | |
1499 | |||
1500 | ✗ | static inline void __volk_16ic_s32f_magnitude_32f_u(float* magnitudeVector, const lv_16sc_t* complexVector, const float scalar, unsigned int num_points) | |
1501 | { | ||
1502 | ✗ | __init_volk_16ic_s32f_magnitude_32f(); | |
1503 | ✗ | volk_16ic_s32f_magnitude_32f_u(magnitudeVector, complexVector, scalar, num_points); | |
1504 | ✗ | } | |
1505 | |||
1506 | ✗ | static inline void __volk_16ic_s32f_magnitude_32f(float* magnitudeVector, const lv_16sc_t* complexVector, const float scalar, unsigned int num_points) | |
1507 | { | ||
1508 | ✗ | __init_volk_16ic_s32f_magnitude_32f(); | |
1509 | ✗ | volk_16ic_s32f_magnitude_32f(magnitudeVector, complexVector, scalar, num_points); | |
1510 | ✗ | } | |
1511 | |||
1512 | p_16ic_s32f_magnitude_32f volk_16ic_s32f_magnitude_32f_a = &__volk_16ic_s32f_magnitude_32f_a; | ||
1513 | p_16ic_s32f_magnitude_32f volk_16ic_s32f_magnitude_32f_u = &__volk_16ic_s32f_magnitude_32f_u; | ||
1514 | p_16ic_s32f_magnitude_32f volk_16ic_s32f_magnitude_32f = &__volk_16ic_s32f_magnitude_32f; | ||
1515 | |||
1516 | 10 | void volk_16ic_s32f_magnitude_32f_manual(float* magnitudeVector, const lv_16sc_t* complexVector, const float scalar, unsigned int num_points, const char* impl_name) | |
1517 | { | ||
1518 | 10 | const int index = volk_get_index( | |
1519 | 10 | get_machine()->volk_16ic_s32f_magnitude_32f_impl_names, | |
1520 | 10 | get_machine()->volk_16ic_s32f_magnitude_32f_n_impls, | |
1521 | impl_name | ||
1522 | ); | ||
1523 | 10 | get_machine()->volk_16ic_s32f_magnitude_32f_impls[index]( | |
1524 | magnitudeVector, complexVector, scalar, num_points | ||
1525 | ); | ||
1526 | 10 | } | |
1527 | |||
1528 | 282 | volk_func_desc_t volk_16ic_s32f_magnitude_32f_get_func_desc(void) { | |
1529 | 282 | const char **impl_names = get_machine()->volk_16ic_s32f_magnitude_32f_impl_names; | |
1530 | 282 | const int *impl_deps = get_machine()->volk_16ic_s32f_magnitude_32f_impl_deps; | |
1531 | 282 | const bool *alignment = get_machine()->volk_16ic_s32f_magnitude_32f_impl_alignment; | |
1532 | 282 | const size_t n_impls = get_machine()->volk_16ic_s32f_magnitude_32f_n_impls; | |
1533 | 282 | volk_func_desc_t desc = { | |
1534 | impl_names, | ||
1535 | impl_deps, | ||
1536 | alignment, | ||
1537 | n_impls | ||
1538 | }; | ||
1539 | 282 | return desc; | |
1540 | } | ||
1541 | |||
1542 | |||
1543 | |||
1544 | ✗ | static inline void __volk_16ic_x2_dot_prod_16ic_d(lv_16sc_t* result, const lv_16sc_t* in_a, const lv_16sc_t* in_b, unsigned int num_points) | |
1545 | { | ||
1546 | |||
1547 | ✗ | if (volk_is_aligned( | |
1548 | ✗ | VOLK_OR_PTR(result, | |
1549 | VOLK_OR_PTR(in_a, | ||
1550 | VOLK_OR_PTR(in_b, | ||
1551 | 0))) | ||
1552 | )){ | ||
1553 | ✗ | volk_16ic_x2_dot_prod_16ic_a(result, in_a, in_b, num_points); | |
1554 | } | ||
1555 | else{ | ||
1556 | ✗ | volk_16ic_x2_dot_prod_16ic_u(result, in_a, in_b, num_points); | |
1557 | } | ||
1558 | ✗ | } | |
1559 | |||
1560 | ✗ | static inline void __init_volk_16ic_x2_dot_prod_16ic(void) | |
1561 | { | ||
1562 | ✗ | const char *name = get_machine()->volk_16ic_x2_dot_prod_16ic_name; | |
1563 | ✗ | const char **impl_names = get_machine()->volk_16ic_x2_dot_prod_16ic_impl_names; | |
1564 | ✗ | const int *impl_deps = get_machine()->volk_16ic_x2_dot_prod_16ic_impl_deps; | |
1565 | ✗ | const bool *alignment = get_machine()->volk_16ic_x2_dot_prod_16ic_impl_alignment; | |
1566 | ✗ | const size_t n_impls = get_machine()->volk_16ic_x2_dot_prod_16ic_n_impls; | |
1567 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
1568 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
1569 | ✗ | volk_16ic_x2_dot_prod_16ic_a = get_machine()->volk_16ic_x2_dot_prod_16ic_impls[index_a]; | |
1570 | ✗ | volk_16ic_x2_dot_prod_16ic_u = get_machine()->volk_16ic_x2_dot_prod_16ic_impls[index_u]; | |
1571 | |||
1572 | ✗ | assert(volk_16ic_x2_dot_prod_16ic_a); | |
1573 | ✗ | assert(volk_16ic_x2_dot_prod_16ic_u); | |
1574 | |||
1575 | ✗ | volk_16ic_x2_dot_prod_16ic = &__volk_16ic_x2_dot_prod_16ic_d; | |
1576 | ✗ | } | |
1577 | |||
1578 | ✗ | static inline void __volk_16ic_x2_dot_prod_16ic_a(lv_16sc_t* result, const lv_16sc_t* in_a, const lv_16sc_t* in_b, unsigned int num_points) | |
1579 | { | ||
1580 | ✗ | __init_volk_16ic_x2_dot_prod_16ic(); | |
1581 | ✗ | volk_16ic_x2_dot_prod_16ic_a(result, in_a, in_b, num_points); | |
1582 | ✗ | } | |
1583 | |||
1584 | ✗ | static inline void __volk_16ic_x2_dot_prod_16ic_u(lv_16sc_t* result, const lv_16sc_t* in_a, const lv_16sc_t* in_b, unsigned int num_points) | |
1585 | { | ||
1586 | ✗ | __init_volk_16ic_x2_dot_prod_16ic(); | |
1587 | ✗ | volk_16ic_x2_dot_prod_16ic_u(result, in_a, in_b, num_points); | |
1588 | ✗ | } | |
1589 | |||
1590 | ✗ | static inline void __volk_16ic_x2_dot_prod_16ic(lv_16sc_t* result, const lv_16sc_t* in_a, const lv_16sc_t* in_b, unsigned int num_points) | |
1591 | { | ||
1592 | ✗ | __init_volk_16ic_x2_dot_prod_16ic(); | |
1593 | ✗ | volk_16ic_x2_dot_prod_16ic(result, in_a, in_b, num_points); | |
1594 | ✗ | } | |
1595 | |||
1596 | p_16ic_x2_dot_prod_16ic volk_16ic_x2_dot_prod_16ic_a = &__volk_16ic_x2_dot_prod_16ic_a; | ||
1597 | p_16ic_x2_dot_prod_16ic volk_16ic_x2_dot_prod_16ic_u = &__volk_16ic_x2_dot_prod_16ic_u; | ||
1598 | p_16ic_x2_dot_prod_16ic volk_16ic_x2_dot_prod_16ic = &__volk_16ic_x2_dot_prod_16ic; | ||
1599 | |||
1600 | 10 | void volk_16ic_x2_dot_prod_16ic_manual(lv_16sc_t* result, const lv_16sc_t* in_a, const lv_16sc_t* in_b, unsigned int num_points, const char* impl_name) | |
1601 | { | ||
1602 | 10 | const int index = volk_get_index( | |
1603 | 10 | get_machine()->volk_16ic_x2_dot_prod_16ic_impl_names, | |
1604 | 10 | get_machine()->volk_16ic_x2_dot_prod_16ic_n_impls, | |
1605 | impl_name | ||
1606 | ); | ||
1607 | 10 | get_machine()->volk_16ic_x2_dot_prod_16ic_impls[index]( | |
1608 | result, in_a, in_b, num_points | ||
1609 | ); | ||
1610 | 10 | } | |
1611 | |||
1612 | 282 | volk_func_desc_t volk_16ic_x2_dot_prod_16ic_get_func_desc(void) { | |
1613 | 282 | const char **impl_names = get_machine()->volk_16ic_x2_dot_prod_16ic_impl_names; | |
1614 | 282 | const int *impl_deps = get_machine()->volk_16ic_x2_dot_prod_16ic_impl_deps; | |
1615 | 282 | const bool *alignment = get_machine()->volk_16ic_x2_dot_prod_16ic_impl_alignment; | |
1616 | 282 | const size_t n_impls = get_machine()->volk_16ic_x2_dot_prod_16ic_n_impls; | |
1617 | 282 | volk_func_desc_t desc = { | |
1618 | impl_names, | ||
1619 | impl_deps, | ||
1620 | alignment, | ||
1621 | n_impls | ||
1622 | }; | ||
1623 | 282 | return desc; | |
1624 | } | ||
1625 | |||
1626 | |||
1627 | |||
1628 | ✗ | static inline void __volk_16ic_x2_multiply_16ic_d(lv_16sc_t* result, const lv_16sc_t* in_a, const lv_16sc_t* in_b, unsigned int num_points) | |
1629 | { | ||
1630 | |||
1631 | ✗ | if (volk_is_aligned( | |
1632 | ✗ | VOLK_OR_PTR(result, | |
1633 | VOLK_OR_PTR(in_a, | ||
1634 | VOLK_OR_PTR(in_b, | ||
1635 | 0))) | ||
1636 | )){ | ||
1637 | ✗ | volk_16ic_x2_multiply_16ic_a(result, in_a, in_b, num_points); | |
1638 | } | ||
1639 | else{ | ||
1640 | ✗ | volk_16ic_x2_multiply_16ic_u(result, in_a, in_b, num_points); | |
1641 | } | ||
1642 | ✗ | } | |
1643 | |||
1644 | ✗ | static inline void __init_volk_16ic_x2_multiply_16ic(void) | |
1645 | { | ||
1646 | ✗ | const char *name = get_machine()->volk_16ic_x2_multiply_16ic_name; | |
1647 | ✗ | const char **impl_names = get_machine()->volk_16ic_x2_multiply_16ic_impl_names; | |
1648 | ✗ | const int *impl_deps = get_machine()->volk_16ic_x2_multiply_16ic_impl_deps; | |
1649 | ✗ | const bool *alignment = get_machine()->volk_16ic_x2_multiply_16ic_impl_alignment; | |
1650 | ✗ | const size_t n_impls = get_machine()->volk_16ic_x2_multiply_16ic_n_impls; | |
1651 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
1652 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
1653 | ✗ | volk_16ic_x2_multiply_16ic_a = get_machine()->volk_16ic_x2_multiply_16ic_impls[index_a]; | |
1654 | ✗ | volk_16ic_x2_multiply_16ic_u = get_machine()->volk_16ic_x2_multiply_16ic_impls[index_u]; | |
1655 | |||
1656 | ✗ | assert(volk_16ic_x2_multiply_16ic_a); | |
1657 | ✗ | assert(volk_16ic_x2_multiply_16ic_u); | |
1658 | |||
1659 | ✗ | volk_16ic_x2_multiply_16ic = &__volk_16ic_x2_multiply_16ic_d; | |
1660 | ✗ | } | |
1661 | |||
1662 | ✗ | static inline void __volk_16ic_x2_multiply_16ic_a(lv_16sc_t* result, const lv_16sc_t* in_a, const lv_16sc_t* in_b, unsigned int num_points) | |
1663 | { | ||
1664 | ✗ | __init_volk_16ic_x2_multiply_16ic(); | |
1665 | ✗ | volk_16ic_x2_multiply_16ic_a(result, in_a, in_b, num_points); | |
1666 | ✗ | } | |
1667 | |||
1668 | ✗ | static inline void __volk_16ic_x2_multiply_16ic_u(lv_16sc_t* result, const lv_16sc_t* in_a, const lv_16sc_t* in_b, unsigned int num_points) | |
1669 | { | ||
1670 | ✗ | __init_volk_16ic_x2_multiply_16ic(); | |
1671 | ✗ | volk_16ic_x2_multiply_16ic_u(result, in_a, in_b, num_points); | |
1672 | ✗ | } | |
1673 | |||
1674 | ✗ | static inline void __volk_16ic_x2_multiply_16ic(lv_16sc_t* result, const lv_16sc_t* in_a, const lv_16sc_t* in_b, unsigned int num_points) | |
1675 | { | ||
1676 | ✗ | __init_volk_16ic_x2_multiply_16ic(); | |
1677 | ✗ | volk_16ic_x2_multiply_16ic(result, in_a, in_b, num_points); | |
1678 | ✗ | } | |
1679 | |||
1680 | p_16ic_x2_multiply_16ic volk_16ic_x2_multiply_16ic_a = &__volk_16ic_x2_multiply_16ic_a; | ||
1681 | p_16ic_x2_multiply_16ic volk_16ic_x2_multiply_16ic_u = &__volk_16ic_x2_multiply_16ic_u; | ||
1682 | p_16ic_x2_multiply_16ic volk_16ic_x2_multiply_16ic = &__volk_16ic_x2_multiply_16ic; | ||
1683 | |||
1684 | 10 | void volk_16ic_x2_multiply_16ic_manual(lv_16sc_t* result, const lv_16sc_t* in_a, const lv_16sc_t* in_b, unsigned int num_points, const char* impl_name) | |
1685 | { | ||
1686 | 10 | const int index = volk_get_index( | |
1687 | 10 | get_machine()->volk_16ic_x2_multiply_16ic_impl_names, | |
1688 | 10 | get_machine()->volk_16ic_x2_multiply_16ic_n_impls, | |
1689 | impl_name | ||
1690 | ); | ||
1691 | 10 | get_machine()->volk_16ic_x2_multiply_16ic_impls[index]( | |
1692 | result, in_a, in_b, num_points | ||
1693 | ); | ||
1694 | 10 | } | |
1695 | |||
1696 | 282 | volk_func_desc_t volk_16ic_x2_multiply_16ic_get_func_desc(void) { | |
1697 | 282 | const char **impl_names = get_machine()->volk_16ic_x2_multiply_16ic_impl_names; | |
1698 | 282 | const int *impl_deps = get_machine()->volk_16ic_x2_multiply_16ic_impl_deps; | |
1699 | 282 | const bool *alignment = get_machine()->volk_16ic_x2_multiply_16ic_impl_alignment; | |
1700 | 282 | const size_t n_impls = get_machine()->volk_16ic_x2_multiply_16ic_n_impls; | |
1701 | 282 | volk_func_desc_t desc = { | |
1702 | impl_names, | ||
1703 | impl_deps, | ||
1704 | alignment, | ||
1705 | n_impls | ||
1706 | }; | ||
1707 | 282 | return desc; | |
1708 | } | ||
1709 | |||
1710 | |||
1711 | |||
1712 | ✗ | static inline void __volk_16u_byteswap_d(uint16_t* intsToSwap, unsigned int num_points) | |
1713 | { | ||
1714 | |||
1715 | ✗ | if (volk_is_aligned( | |
1716 | VOLK_OR_PTR(intsToSwap, | ||
1717 | 0) | ||
1718 | )){ | ||
1719 | ✗ | volk_16u_byteswap_a(intsToSwap, num_points); | |
1720 | } | ||
1721 | else{ | ||
1722 | ✗ | volk_16u_byteswap_u(intsToSwap, num_points); | |
1723 | } | ||
1724 | ✗ | } | |
1725 | |||
1726 | ✗ | static inline void __init_volk_16u_byteswap(void) | |
1727 | { | ||
1728 | ✗ | const char *name = get_machine()->volk_16u_byteswap_name; | |
1729 | ✗ | const char **impl_names = get_machine()->volk_16u_byteswap_impl_names; | |
1730 | ✗ | const int *impl_deps = get_machine()->volk_16u_byteswap_impl_deps; | |
1731 | ✗ | const bool *alignment = get_machine()->volk_16u_byteswap_impl_alignment; | |
1732 | ✗ | const size_t n_impls = get_machine()->volk_16u_byteswap_n_impls; | |
1733 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
1734 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
1735 | ✗ | volk_16u_byteswap_a = get_machine()->volk_16u_byteswap_impls[index_a]; | |
1736 | ✗ | volk_16u_byteswap_u = get_machine()->volk_16u_byteswap_impls[index_u]; | |
1737 | |||
1738 | ✗ | assert(volk_16u_byteswap_a); | |
1739 | ✗ | assert(volk_16u_byteswap_u); | |
1740 | |||
1741 | ✗ | volk_16u_byteswap = &__volk_16u_byteswap_d; | |
1742 | ✗ | } | |
1743 | |||
1744 | ✗ | static inline void __volk_16u_byteswap_a(uint16_t* intsToSwap, unsigned int num_points) | |
1745 | { | ||
1746 | ✗ | __init_volk_16u_byteswap(); | |
1747 | ✗ | volk_16u_byteswap_a(intsToSwap, num_points); | |
1748 | ✗ | } | |
1749 | |||
1750 | ✗ | static inline void __volk_16u_byteswap_u(uint16_t* intsToSwap, unsigned int num_points) | |
1751 | { | ||
1752 | ✗ | __init_volk_16u_byteswap(); | |
1753 | ✗ | volk_16u_byteswap_u(intsToSwap, num_points); | |
1754 | ✗ | } | |
1755 | |||
1756 | ✗ | static inline void __volk_16u_byteswap(uint16_t* intsToSwap, unsigned int num_points) | |
1757 | { | ||
1758 | ✗ | __init_volk_16u_byteswap(); | |
1759 | ✗ | volk_16u_byteswap(intsToSwap, num_points); | |
1760 | ✗ | } | |
1761 | |||
1762 | p_16u_byteswap volk_16u_byteswap_a = &__volk_16u_byteswap_a; | ||
1763 | p_16u_byteswap volk_16u_byteswap_u = &__volk_16u_byteswap_u; | ||
1764 | p_16u_byteswap volk_16u_byteswap = &__volk_16u_byteswap; | ||
1765 | |||
1766 | ✗ | void volk_16u_byteswap_manual(uint16_t* intsToSwap, unsigned int num_points, const char* impl_name) | |
1767 | { | ||
1768 | ✗ | const int index = volk_get_index( | |
1769 | ✗ | get_machine()->volk_16u_byteswap_impl_names, | |
1770 | ✗ | get_machine()->volk_16u_byteswap_n_impls, | |
1771 | impl_name | ||
1772 | ); | ||
1773 | ✗ | get_machine()->volk_16u_byteswap_impls[index]( | |
1774 | intsToSwap, num_points | ||
1775 | ); | ||
1776 | ✗ | } | |
1777 | |||
1778 | ✗ | volk_func_desc_t volk_16u_byteswap_get_func_desc(void) { | |
1779 | ✗ | const char **impl_names = get_machine()->volk_16u_byteswap_impl_names; | |
1780 | ✗ | const int *impl_deps = get_machine()->volk_16u_byteswap_impl_deps; | |
1781 | ✗ | const bool *alignment = get_machine()->volk_16u_byteswap_impl_alignment; | |
1782 | ✗ | const size_t n_impls = get_machine()->volk_16u_byteswap_n_impls; | |
1783 | ✗ | volk_func_desc_t desc = { | |
1784 | impl_names, | ||
1785 | impl_deps, | ||
1786 | alignment, | ||
1787 | n_impls | ||
1788 | }; | ||
1789 | ✗ | return desc; | |
1790 | } | ||
1791 | |||
1792 | |||
1793 | |||
1794 | ✗ | static inline void __volk_16u_byteswappuppet_16u_d(uint16_t* output, uint16_t* intsToSwap, unsigned int num_points) | |
1795 | { | ||
1796 | |||
1797 | ✗ | if (volk_is_aligned( | |
1798 | ✗ | VOLK_OR_PTR(output, | |
1799 | VOLK_OR_PTR(intsToSwap, | ||
1800 | 0)) | ||
1801 | )){ | ||
1802 | ✗ | volk_16u_byteswappuppet_16u_a(output, intsToSwap, num_points); | |
1803 | } | ||
1804 | else{ | ||
1805 | ✗ | volk_16u_byteswappuppet_16u_u(output, intsToSwap, num_points); | |
1806 | } | ||
1807 | ✗ | } | |
1808 | |||
1809 | ✗ | static inline void __init_volk_16u_byteswappuppet_16u(void) | |
1810 | { | ||
1811 | ✗ | const char *name = get_machine()->volk_16u_byteswappuppet_16u_name; | |
1812 | ✗ | const char **impl_names = get_machine()->volk_16u_byteswappuppet_16u_impl_names; | |
1813 | ✗ | const int *impl_deps = get_machine()->volk_16u_byteswappuppet_16u_impl_deps; | |
1814 | ✗ | const bool *alignment = get_machine()->volk_16u_byteswappuppet_16u_impl_alignment; | |
1815 | ✗ | const size_t n_impls = get_machine()->volk_16u_byteswappuppet_16u_n_impls; | |
1816 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
1817 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
1818 | ✗ | volk_16u_byteswappuppet_16u_a = get_machine()->volk_16u_byteswappuppet_16u_impls[index_a]; | |
1819 | ✗ | volk_16u_byteswappuppet_16u_u = get_machine()->volk_16u_byteswappuppet_16u_impls[index_u]; | |
1820 | |||
1821 | ✗ | assert(volk_16u_byteswappuppet_16u_a); | |
1822 | ✗ | assert(volk_16u_byteswappuppet_16u_u); | |
1823 | |||
1824 | ✗ | volk_16u_byteswappuppet_16u = &__volk_16u_byteswappuppet_16u_d; | |
1825 | ✗ | } | |
1826 | |||
1827 | ✗ | static inline void __volk_16u_byteswappuppet_16u_a(uint16_t* output, uint16_t* intsToSwap, unsigned int num_points) | |
1828 | { | ||
1829 | ✗ | __init_volk_16u_byteswappuppet_16u(); | |
1830 | ✗ | volk_16u_byteswappuppet_16u_a(output, intsToSwap, num_points); | |
1831 | ✗ | } | |
1832 | |||
1833 | ✗ | static inline void __volk_16u_byteswappuppet_16u_u(uint16_t* output, uint16_t* intsToSwap, unsigned int num_points) | |
1834 | { | ||
1835 | ✗ | __init_volk_16u_byteswappuppet_16u(); | |
1836 | ✗ | volk_16u_byteswappuppet_16u_u(output, intsToSwap, num_points); | |
1837 | ✗ | } | |
1838 | |||
1839 | ✗ | static inline void __volk_16u_byteswappuppet_16u(uint16_t* output, uint16_t* intsToSwap, unsigned int num_points) | |
1840 | { | ||
1841 | ✗ | __init_volk_16u_byteswappuppet_16u(); | |
1842 | ✗ | volk_16u_byteswappuppet_16u(output, intsToSwap, num_points); | |
1843 | ✗ | } | |
1844 | |||
1845 | p_16u_byteswappuppet_16u volk_16u_byteswappuppet_16u_a = &__volk_16u_byteswappuppet_16u_a; | ||
1846 | p_16u_byteswappuppet_16u volk_16u_byteswappuppet_16u_u = &__volk_16u_byteswappuppet_16u_u; | ||
1847 | p_16u_byteswappuppet_16u volk_16u_byteswappuppet_16u = &__volk_16u_byteswappuppet_16u; | ||
1848 | |||
1849 | 10 | void volk_16u_byteswappuppet_16u_manual(uint16_t* output, uint16_t* intsToSwap, unsigned int num_points, const char* impl_name) | |
1850 | { | ||
1851 | 10 | const int index = volk_get_index( | |
1852 | 10 | get_machine()->volk_16u_byteswappuppet_16u_impl_names, | |
1853 | 10 | get_machine()->volk_16u_byteswappuppet_16u_n_impls, | |
1854 | impl_name | ||
1855 | ); | ||
1856 | 10 | get_machine()->volk_16u_byteswappuppet_16u_impls[index]( | |
1857 | output, intsToSwap, num_points | ||
1858 | ); | ||
1859 | 10 | } | |
1860 | |||
1861 | 282 | volk_func_desc_t volk_16u_byteswappuppet_16u_get_func_desc(void) { | |
1862 | 282 | const char **impl_names = get_machine()->volk_16u_byteswappuppet_16u_impl_names; | |
1863 | 282 | const int *impl_deps = get_machine()->volk_16u_byteswappuppet_16u_impl_deps; | |
1864 | 282 | const bool *alignment = get_machine()->volk_16u_byteswappuppet_16u_impl_alignment; | |
1865 | 282 | const size_t n_impls = get_machine()->volk_16u_byteswappuppet_16u_n_impls; | |
1866 | 282 | volk_func_desc_t desc = { | |
1867 | impl_names, | ||
1868 | impl_deps, | ||
1869 | alignment, | ||
1870 | n_impls | ||
1871 | }; | ||
1872 | 282 | return desc; | |
1873 | } | ||
1874 | |||
1875 | |||
1876 | |||
1877 | ✗ | static inline void __volk_32f_64f_add_64f_d(double* cVector, const float* aVector, const double* bVector, unsigned int num_points) | |
1878 | { | ||
1879 | |||
1880 | ✗ | if (volk_is_aligned( | |
1881 | ✗ | VOLK_OR_PTR(cVector, | |
1882 | VOLK_OR_PTR(aVector, | ||
1883 | VOLK_OR_PTR(bVector, | ||
1884 | 0))) | ||
1885 | )){ | ||
1886 | ✗ | volk_32f_64f_add_64f_a(cVector, aVector, bVector, num_points); | |
1887 | } | ||
1888 | else{ | ||
1889 | ✗ | volk_32f_64f_add_64f_u(cVector, aVector, bVector, num_points); | |
1890 | } | ||
1891 | ✗ | } | |
1892 | |||
1893 | ✗ | static inline void __init_volk_32f_64f_add_64f(void) | |
1894 | { | ||
1895 | ✗ | const char *name = get_machine()->volk_32f_64f_add_64f_name; | |
1896 | ✗ | const char **impl_names = get_machine()->volk_32f_64f_add_64f_impl_names; | |
1897 | ✗ | const int *impl_deps = get_machine()->volk_32f_64f_add_64f_impl_deps; | |
1898 | ✗ | const bool *alignment = get_machine()->volk_32f_64f_add_64f_impl_alignment; | |
1899 | ✗ | const size_t n_impls = get_machine()->volk_32f_64f_add_64f_n_impls; | |
1900 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
1901 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
1902 | ✗ | volk_32f_64f_add_64f_a = get_machine()->volk_32f_64f_add_64f_impls[index_a]; | |
1903 | ✗ | volk_32f_64f_add_64f_u = get_machine()->volk_32f_64f_add_64f_impls[index_u]; | |
1904 | |||
1905 | ✗ | assert(volk_32f_64f_add_64f_a); | |
1906 | ✗ | assert(volk_32f_64f_add_64f_u); | |
1907 | |||
1908 | ✗ | volk_32f_64f_add_64f = &__volk_32f_64f_add_64f_d; | |
1909 | ✗ | } | |
1910 | |||
1911 | ✗ | static inline void __volk_32f_64f_add_64f_a(double* cVector, const float* aVector, const double* bVector, unsigned int num_points) | |
1912 | { | ||
1913 | ✗ | __init_volk_32f_64f_add_64f(); | |
1914 | ✗ | volk_32f_64f_add_64f_a(cVector, aVector, bVector, num_points); | |
1915 | ✗ | } | |
1916 | |||
1917 | ✗ | static inline void __volk_32f_64f_add_64f_u(double* cVector, const float* aVector, const double* bVector, unsigned int num_points) | |
1918 | { | ||
1919 | ✗ | __init_volk_32f_64f_add_64f(); | |
1920 | ✗ | volk_32f_64f_add_64f_u(cVector, aVector, bVector, num_points); | |
1921 | ✗ | } | |
1922 | |||
1923 | ✗ | static inline void __volk_32f_64f_add_64f(double* cVector, const float* aVector, const double* bVector, unsigned int num_points) | |
1924 | { | ||
1925 | ✗ | __init_volk_32f_64f_add_64f(); | |
1926 | ✗ | volk_32f_64f_add_64f(cVector, aVector, bVector, num_points); | |
1927 | ✗ | } | |
1928 | |||
1929 | p_32f_64f_add_64f volk_32f_64f_add_64f_a = &__volk_32f_64f_add_64f_a; | ||
1930 | p_32f_64f_add_64f volk_32f_64f_add_64f_u = &__volk_32f_64f_add_64f_u; | ||
1931 | p_32f_64f_add_64f volk_32f_64f_add_64f = &__volk_32f_64f_add_64f; | ||
1932 | |||
1933 | 6 | void volk_32f_64f_add_64f_manual(double* cVector, const float* aVector, const double* bVector, unsigned int num_points, const char* impl_name) | |
1934 | { | ||
1935 | 6 | const int index = volk_get_index( | |
1936 | 6 | get_machine()->volk_32f_64f_add_64f_impl_names, | |
1937 | 6 | get_machine()->volk_32f_64f_add_64f_n_impls, | |
1938 | impl_name | ||
1939 | ); | ||
1940 | 6 | get_machine()->volk_32f_64f_add_64f_impls[index]( | |
1941 | cVector, aVector, bVector, num_points | ||
1942 | ); | ||
1943 | 6 | } | |
1944 | |||
1945 | 282 | volk_func_desc_t volk_32f_64f_add_64f_get_func_desc(void) { | |
1946 | 282 | const char **impl_names = get_machine()->volk_32f_64f_add_64f_impl_names; | |
1947 | 282 | const int *impl_deps = get_machine()->volk_32f_64f_add_64f_impl_deps; | |
1948 | 282 | const bool *alignment = get_machine()->volk_32f_64f_add_64f_impl_alignment; | |
1949 | 282 | const size_t n_impls = get_machine()->volk_32f_64f_add_64f_n_impls; | |
1950 | 282 | volk_func_desc_t desc = { | |
1951 | impl_names, | ||
1952 | impl_deps, | ||
1953 | alignment, | ||
1954 | n_impls | ||
1955 | }; | ||
1956 | 282 | return desc; | |
1957 | } | ||
1958 | |||
1959 | |||
1960 | |||
1961 | ✗ | static inline void __volk_32f_64f_multiply_64f_d(double* cVector, const float* aVector, const double* bVector, unsigned int num_points) | |
1962 | { | ||
1963 | |||
1964 | ✗ | if (volk_is_aligned( | |
1965 | ✗ | VOLK_OR_PTR(cVector, | |
1966 | VOLK_OR_PTR(aVector, | ||
1967 | VOLK_OR_PTR(bVector, | ||
1968 | 0))) | ||
1969 | )){ | ||
1970 | ✗ | volk_32f_64f_multiply_64f_a(cVector, aVector, bVector, num_points); | |
1971 | } | ||
1972 | else{ | ||
1973 | ✗ | volk_32f_64f_multiply_64f_u(cVector, aVector, bVector, num_points); | |
1974 | } | ||
1975 | ✗ | } | |
1976 | |||
1977 | ✗ | static inline void __init_volk_32f_64f_multiply_64f(void) | |
1978 | { | ||
1979 | ✗ | const char *name = get_machine()->volk_32f_64f_multiply_64f_name; | |
1980 | ✗ | const char **impl_names = get_machine()->volk_32f_64f_multiply_64f_impl_names; | |
1981 | ✗ | const int *impl_deps = get_machine()->volk_32f_64f_multiply_64f_impl_deps; | |
1982 | ✗ | const bool *alignment = get_machine()->volk_32f_64f_multiply_64f_impl_alignment; | |
1983 | ✗ | const size_t n_impls = get_machine()->volk_32f_64f_multiply_64f_n_impls; | |
1984 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
1985 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
1986 | ✗ | volk_32f_64f_multiply_64f_a = get_machine()->volk_32f_64f_multiply_64f_impls[index_a]; | |
1987 | ✗ | volk_32f_64f_multiply_64f_u = get_machine()->volk_32f_64f_multiply_64f_impls[index_u]; | |
1988 | |||
1989 | ✗ | assert(volk_32f_64f_multiply_64f_a); | |
1990 | ✗ | assert(volk_32f_64f_multiply_64f_u); | |
1991 | |||
1992 | ✗ | volk_32f_64f_multiply_64f = &__volk_32f_64f_multiply_64f_d; | |
1993 | ✗ | } | |
1994 | |||
1995 | ✗ | static inline void __volk_32f_64f_multiply_64f_a(double* cVector, const float* aVector, const double* bVector, unsigned int num_points) | |
1996 | { | ||
1997 | ✗ | __init_volk_32f_64f_multiply_64f(); | |
1998 | ✗ | volk_32f_64f_multiply_64f_a(cVector, aVector, bVector, num_points); | |
1999 | ✗ | } | |
2000 | |||
2001 | ✗ | static inline void __volk_32f_64f_multiply_64f_u(double* cVector, const float* aVector, const double* bVector, unsigned int num_points) | |
2002 | { | ||
2003 | ✗ | __init_volk_32f_64f_multiply_64f(); | |
2004 | ✗ | volk_32f_64f_multiply_64f_u(cVector, aVector, bVector, num_points); | |
2005 | ✗ | } | |
2006 | |||
2007 | ✗ | static inline void __volk_32f_64f_multiply_64f(double* cVector, const float* aVector, const double* bVector, unsigned int num_points) | |
2008 | { | ||
2009 | ✗ | __init_volk_32f_64f_multiply_64f(); | |
2010 | ✗ | volk_32f_64f_multiply_64f(cVector, aVector, bVector, num_points); | |
2011 | ✗ | } | |
2012 | |||
2013 | p_32f_64f_multiply_64f volk_32f_64f_multiply_64f_a = &__volk_32f_64f_multiply_64f_a; | ||
2014 | p_32f_64f_multiply_64f volk_32f_64f_multiply_64f_u = &__volk_32f_64f_multiply_64f_u; | ||
2015 | p_32f_64f_multiply_64f volk_32f_64f_multiply_64f = &__volk_32f_64f_multiply_64f; | ||
2016 | |||
2017 | 6 | void volk_32f_64f_multiply_64f_manual(double* cVector, const float* aVector, const double* bVector, unsigned int num_points, const char* impl_name) | |
2018 | { | ||
2019 | 6 | const int index = volk_get_index( | |
2020 | 6 | get_machine()->volk_32f_64f_multiply_64f_impl_names, | |
2021 | 6 | get_machine()->volk_32f_64f_multiply_64f_n_impls, | |
2022 | impl_name | ||
2023 | ); | ||
2024 | 6 | get_machine()->volk_32f_64f_multiply_64f_impls[index]( | |
2025 | cVector, aVector, bVector, num_points | ||
2026 | ); | ||
2027 | 6 | } | |
2028 | |||
2029 | 282 | volk_func_desc_t volk_32f_64f_multiply_64f_get_func_desc(void) { | |
2030 | 282 | const char **impl_names = get_machine()->volk_32f_64f_multiply_64f_impl_names; | |
2031 | 282 | const int *impl_deps = get_machine()->volk_32f_64f_multiply_64f_impl_deps; | |
2032 | 282 | const bool *alignment = get_machine()->volk_32f_64f_multiply_64f_impl_alignment; | |
2033 | 282 | const size_t n_impls = get_machine()->volk_32f_64f_multiply_64f_n_impls; | |
2034 | 282 | volk_func_desc_t desc = { | |
2035 | impl_names, | ||
2036 | impl_deps, | ||
2037 | alignment, | ||
2038 | n_impls | ||
2039 | }; | ||
2040 | 282 | return desc; | |
2041 | } | ||
2042 | |||
2043 | |||
2044 | |||
2045 | ✗ | static inline void __volk_32f_8u_polarbutterfly_32f_d(float* llrs, unsigned char* u, const int frame_exp, const int stage, const int u_num, const int row) | |
2046 | { | ||
2047 | |||
2048 | ✗ | if (volk_is_aligned( | |
2049 | ✗ | VOLK_OR_PTR(llrs, | |
2050 | VOLK_OR_PTR(u, | ||
2051 | 0)) | ||
2052 | )){ | ||
2053 | ✗ | volk_32f_8u_polarbutterfly_32f_a(llrs, u, frame_exp, stage, u_num, row); | |
2054 | } | ||
2055 | else{ | ||
2056 | ✗ | volk_32f_8u_polarbutterfly_32f_u(llrs, u, frame_exp, stage, u_num, row); | |
2057 | } | ||
2058 | ✗ | } | |
2059 | |||
2060 | ✗ | static inline void __init_volk_32f_8u_polarbutterfly_32f(void) | |
2061 | { | ||
2062 | ✗ | const char *name = get_machine()->volk_32f_8u_polarbutterfly_32f_name; | |
2063 | ✗ | const char **impl_names = get_machine()->volk_32f_8u_polarbutterfly_32f_impl_names; | |
2064 | ✗ | const int *impl_deps = get_machine()->volk_32f_8u_polarbutterfly_32f_impl_deps; | |
2065 | ✗ | const bool *alignment = get_machine()->volk_32f_8u_polarbutterfly_32f_impl_alignment; | |
2066 | ✗ | const size_t n_impls = get_machine()->volk_32f_8u_polarbutterfly_32f_n_impls; | |
2067 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
2068 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
2069 | ✗ | volk_32f_8u_polarbutterfly_32f_a = get_machine()->volk_32f_8u_polarbutterfly_32f_impls[index_a]; | |
2070 | ✗ | volk_32f_8u_polarbutterfly_32f_u = get_machine()->volk_32f_8u_polarbutterfly_32f_impls[index_u]; | |
2071 | |||
2072 | ✗ | assert(volk_32f_8u_polarbutterfly_32f_a); | |
2073 | ✗ | assert(volk_32f_8u_polarbutterfly_32f_u); | |
2074 | |||
2075 | ✗ | volk_32f_8u_polarbutterfly_32f = &__volk_32f_8u_polarbutterfly_32f_d; | |
2076 | ✗ | } | |
2077 | |||
2078 | ✗ | static inline void __volk_32f_8u_polarbutterfly_32f_a(float* llrs, unsigned char* u, const int frame_exp, const int stage, const int u_num, const int row) | |
2079 | { | ||
2080 | ✗ | __init_volk_32f_8u_polarbutterfly_32f(); | |
2081 | ✗ | volk_32f_8u_polarbutterfly_32f_a(llrs, u, frame_exp, stage, u_num, row); | |
2082 | ✗ | } | |
2083 | |||
2084 | ✗ | static inline void __volk_32f_8u_polarbutterfly_32f_u(float* llrs, unsigned char* u, const int frame_exp, const int stage, const int u_num, const int row) | |
2085 | { | ||
2086 | ✗ | __init_volk_32f_8u_polarbutterfly_32f(); | |
2087 | ✗ | volk_32f_8u_polarbutterfly_32f_u(llrs, u, frame_exp, stage, u_num, row); | |
2088 | ✗ | } | |
2089 | |||
2090 | ✗ | static inline void __volk_32f_8u_polarbutterfly_32f(float* llrs, unsigned char* u, const int frame_exp, const int stage, const int u_num, const int row) | |
2091 | { | ||
2092 | ✗ | __init_volk_32f_8u_polarbutterfly_32f(); | |
2093 | ✗ | volk_32f_8u_polarbutterfly_32f(llrs, u, frame_exp, stage, u_num, row); | |
2094 | ✗ | } | |
2095 | |||
2096 | p_32f_8u_polarbutterfly_32f volk_32f_8u_polarbutterfly_32f_a = &__volk_32f_8u_polarbutterfly_32f_a; | ||
2097 | p_32f_8u_polarbutterfly_32f volk_32f_8u_polarbutterfly_32f_u = &__volk_32f_8u_polarbutterfly_32f_u; | ||
2098 | p_32f_8u_polarbutterfly_32f volk_32f_8u_polarbutterfly_32f = &__volk_32f_8u_polarbutterfly_32f; | ||
2099 | |||
2100 | ✗ | void volk_32f_8u_polarbutterfly_32f_manual(float* llrs, unsigned char* u, const int frame_exp, const int stage, const int u_num, const int row, const char* impl_name) | |
2101 | { | ||
2102 | ✗ | const int index = volk_get_index( | |
2103 | ✗ | get_machine()->volk_32f_8u_polarbutterfly_32f_impl_names, | |
2104 | ✗ | get_machine()->volk_32f_8u_polarbutterfly_32f_n_impls, | |
2105 | impl_name | ||
2106 | ); | ||
2107 | ✗ | get_machine()->volk_32f_8u_polarbutterfly_32f_impls[index]( | |
2108 | llrs, u, frame_exp, stage, u_num, row | ||
2109 | ); | ||
2110 | ✗ | } | |
2111 | |||
2112 | ✗ | volk_func_desc_t volk_32f_8u_polarbutterfly_32f_get_func_desc(void) { | |
2113 | ✗ | const char **impl_names = get_machine()->volk_32f_8u_polarbutterfly_32f_impl_names; | |
2114 | ✗ | const int *impl_deps = get_machine()->volk_32f_8u_polarbutterfly_32f_impl_deps; | |
2115 | ✗ | const bool *alignment = get_machine()->volk_32f_8u_polarbutterfly_32f_impl_alignment; | |
2116 | ✗ | const size_t n_impls = get_machine()->volk_32f_8u_polarbutterfly_32f_n_impls; | |
2117 | ✗ | volk_func_desc_t desc = { | |
2118 | impl_names, | ||
2119 | impl_deps, | ||
2120 | alignment, | ||
2121 | n_impls | ||
2122 | }; | ||
2123 | ✗ | return desc; | |
2124 | } | ||
2125 | |||
2126 | |||
2127 | |||
2128 | ✗ | static inline void __volk_32f_8u_polarbutterflypuppet_32f_d(float* llrs, const float* input, unsigned char* u, const int elements) | |
2129 | { | ||
2130 | |||
2131 | ✗ | if (volk_is_aligned( | |
2132 | ✗ | VOLK_OR_PTR(llrs, | |
2133 | VOLK_OR_PTR(input, | ||
2134 | VOLK_OR_PTR(u, | ||
2135 | 0))) | ||
2136 | )){ | ||
2137 | ✗ | volk_32f_8u_polarbutterflypuppet_32f_a(llrs, input, u, elements); | |
2138 | } | ||
2139 | else{ | ||
2140 | ✗ | volk_32f_8u_polarbutterflypuppet_32f_u(llrs, input, u, elements); | |
2141 | } | ||
2142 | ✗ | } | |
2143 | |||
2144 | ✗ | static inline void __init_volk_32f_8u_polarbutterflypuppet_32f(void) | |
2145 | { | ||
2146 | ✗ | const char *name = get_machine()->volk_32f_8u_polarbutterflypuppet_32f_name; | |
2147 | ✗ | const char **impl_names = get_machine()->volk_32f_8u_polarbutterflypuppet_32f_impl_names; | |
2148 | ✗ | const int *impl_deps = get_machine()->volk_32f_8u_polarbutterflypuppet_32f_impl_deps; | |
2149 | ✗ | const bool *alignment = get_machine()->volk_32f_8u_polarbutterflypuppet_32f_impl_alignment; | |
2150 | ✗ | const size_t n_impls = get_machine()->volk_32f_8u_polarbutterflypuppet_32f_n_impls; | |
2151 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
2152 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
2153 | ✗ | volk_32f_8u_polarbutterflypuppet_32f_a = get_machine()->volk_32f_8u_polarbutterflypuppet_32f_impls[index_a]; | |
2154 | ✗ | volk_32f_8u_polarbutterflypuppet_32f_u = get_machine()->volk_32f_8u_polarbutterflypuppet_32f_impls[index_u]; | |
2155 | |||
2156 | ✗ | assert(volk_32f_8u_polarbutterflypuppet_32f_a); | |
2157 | ✗ | assert(volk_32f_8u_polarbutterflypuppet_32f_u); | |
2158 | |||
2159 | ✗ | volk_32f_8u_polarbutterflypuppet_32f = &__volk_32f_8u_polarbutterflypuppet_32f_d; | |
2160 | ✗ | } | |
2161 | |||
2162 | ✗ | static inline void __volk_32f_8u_polarbutterflypuppet_32f_a(float* llrs, const float* input, unsigned char* u, const int elements) | |
2163 | { | ||
2164 | ✗ | __init_volk_32f_8u_polarbutterflypuppet_32f(); | |
2165 | ✗ | volk_32f_8u_polarbutterflypuppet_32f_a(llrs, input, u, elements); | |
2166 | ✗ | } | |
2167 | |||
2168 | ✗ | static inline void __volk_32f_8u_polarbutterflypuppet_32f_u(float* llrs, const float* input, unsigned char* u, const int elements) | |
2169 | { | ||
2170 | ✗ | __init_volk_32f_8u_polarbutterflypuppet_32f(); | |
2171 | ✗ | volk_32f_8u_polarbutterflypuppet_32f_u(llrs, input, u, elements); | |
2172 | ✗ | } | |
2173 | |||
2174 | ✗ | static inline void __volk_32f_8u_polarbutterflypuppet_32f(float* llrs, const float* input, unsigned char* u, const int elements) | |
2175 | { | ||
2176 | ✗ | __init_volk_32f_8u_polarbutterflypuppet_32f(); | |
2177 | ✗ | volk_32f_8u_polarbutterflypuppet_32f(llrs, input, u, elements); | |
2178 | ✗ | } | |
2179 | |||
2180 | p_32f_8u_polarbutterflypuppet_32f volk_32f_8u_polarbutterflypuppet_32f_a = &__volk_32f_8u_polarbutterflypuppet_32f_a; | ||
2181 | p_32f_8u_polarbutterflypuppet_32f volk_32f_8u_polarbutterflypuppet_32f_u = &__volk_32f_8u_polarbutterflypuppet_32f_u; | ||
2182 | p_32f_8u_polarbutterflypuppet_32f volk_32f_8u_polarbutterflypuppet_32f = &__volk_32f_8u_polarbutterflypuppet_32f; | ||
2183 | |||
2184 | 6 | void volk_32f_8u_polarbutterflypuppet_32f_manual(float* llrs, const float* input, unsigned char* u, const int elements, const char* impl_name) | |
2185 | { | ||
2186 | 6 | const int index = volk_get_index( | |
2187 | 6 | get_machine()->volk_32f_8u_polarbutterflypuppet_32f_impl_names, | |
2188 | 6 | get_machine()->volk_32f_8u_polarbutterflypuppet_32f_n_impls, | |
2189 | impl_name | ||
2190 | ); | ||
2191 | 6 | get_machine()->volk_32f_8u_polarbutterflypuppet_32f_impls[index]( | |
2192 | llrs, input, u, elements | ||
2193 | ); | ||
2194 | 6 | } | |
2195 | |||
2196 | 282 | volk_func_desc_t volk_32f_8u_polarbutterflypuppet_32f_get_func_desc(void) { | |
2197 | 282 | const char **impl_names = get_machine()->volk_32f_8u_polarbutterflypuppet_32f_impl_names; | |
2198 | 282 | const int *impl_deps = get_machine()->volk_32f_8u_polarbutterflypuppet_32f_impl_deps; | |
2199 | 282 | const bool *alignment = get_machine()->volk_32f_8u_polarbutterflypuppet_32f_impl_alignment; | |
2200 | 282 | const size_t n_impls = get_machine()->volk_32f_8u_polarbutterflypuppet_32f_n_impls; | |
2201 | 282 | volk_func_desc_t desc = { | |
2202 | impl_names, | ||
2203 | impl_deps, | ||
2204 | alignment, | ||
2205 | n_impls | ||
2206 | }; | ||
2207 | 282 | return desc; | |
2208 | } | ||
2209 | |||
2210 | |||
2211 | |||
2212 | ✗ | static inline void __volk_32f_accumulator_s32f_d(float* result, const float* inputBuffer, unsigned int num_points) | |
2213 | { | ||
2214 | |||
2215 | ✗ | if (volk_is_aligned( | |
2216 | ✗ | VOLK_OR_PTR(result, | |
2217 | VOLK_OR_PTR(inputBuffer, | ||
2218 | 0)) | ||
2219 | )){ | ||
2220 | ✗ | volk_32f_accumulator_s32f_a(result, inputBuffer, num_points); | |
2221 | } | ||
2222 | else{ | ||
2223 | ✗ | volk_32f_accumulator_s32f_u(result, inputBuffer, num_points); | |
2224 | } | ||
2225 | ✗ | } | |
2226 | |||
2227 | ✗ | static inline void __init_volk_32f_accumulator_s32f(void) | |
2228 | { | ||
2229 | ✗ | const char *name = get_machine()->volk_32f_accumulator_s32f_name; | |
2230 | ✗ | const char **impl_names = get_machine()->volk_32f_accumulator_s32f_impl_names; | |
2231 | ✗ | const int *impl_deps = get_machine()->volk_32f_accumulator_s32f_impl_deps; | |
2232 | ✗ | const bool *alignment = get_machine()->volk_32f_accumulator_s32f_impl_alignment; | |
2233 | ✗ | const size_t n_impls = get_machine()->volk_32f_accumulator_s32f_n_impls; | |
2234 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
2235 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
2236 | ✗ | volk_32f_accumulator_s32f_a = get_machine()->volk_32f_accumulator_s32f_impls[index_a]; | |
2237 | ✗ | volk_32f_accumulator_s32f_u = get_machine()->volk_32f_accumulator_s32f_impls[index_u]; | |
2238 | |||
2239 | ✗ | assert(volk_32f_accumulator_s32f_a); | |
2240 | ✗ | assert(volk_32f_accumulator_s32f_u); | |
2241 | |||
2242 | ✗ | volk_32f_accumulator_s32f = &__volk_32f_accumulator_s32f_d; | |
2243 | ✗ | } | |
2244 | |||
2245 | ✗ | static inline void __volk_32f_accumulator_s32f_a(float* result, const float* inputBuffer, unsigned int num_points) | |
2246 | { | ||
2247 | ✗ | __init_volk_32f_accumulator_s32f(); | |
2248 | ✗ | volk_32f_accumulator_s32f_a(result, inputBuffer, num_points); | |
2249 | ✗ | } | |
2250 | |||
2251 | ✗ | static inline void __volk_32f_accumulator_s32f_u(float* result, const float* inputBuffer, unsigned int num_points) | |
2252 | { | ||
2253 | ✗ | __init_volk_32f_accumulator_s32f(); | |
2254 | ✗ | volk_32f_accumulator_s32f_u(result, inputBuffer, num_points); | |
2255 | ✗ | } | |
2256 | |||
2257 | ✗ | static inline void __volk_32f_accumulator_s32f(float* result, const float* inputBuffer, unsigned int num_points) | |
2258 | { | ||
2259 | ✗ | __init_volk_32f_accumulator_s32f(); | |
2260 | ✗ | volk_32f_accumulator_s32f(result, inputBuffer, num_points); | |
2261 | ✗ | } | |
2262 | |||
2263 | p_32f_accumulator_s32f volk_32f_accumulator_s32f_a = &__volk_32f_accumulator_s32f_a; | ||
2264 | p_32f_accumulator_s32f volk_32f_accumulator_s32f_u = &__volk_32f_accumulator_s32f_u; | ||
2265 | p_32f_accumulator_s32f volk_32f_accumulator_s32f = &__volk_32f_accumulator_s32f; | ||
2266 | |||
2267 | 10 | void volk_32f_accumulator_s32f_manual(float* result, const float* inputBuffer, unsigned int num_points, const char* impl_name) | |
2268 | { | ||
2269 | 10 | const int index = volk_get_index( | |
2270 | 10 | get_machine()->volk_32f_accumulator_s32f_impl_names, | |
2271 | 10 | get_machine()->volk_32f_accumulator_s32f_n_impls, | |
2272 | impl_name | ||
2273 | ); | ||
2274 | 10 | get_machine()->volk_32f_accumulator_s32f_impls[index]( | |
2275 | result, inputBuffer, num_points | ||
2276 | ); | ||
2277 | 10 | } | |
2278 | |||
2279 | 282 | volk_func_desc_t volk_32f_accumulator_s32f_get_func_desc(void) { | |
2280 | 282 | const char **impl_names = get_machine()->volk_32f_accumulator_s32f_impl_names; | |
2281 | 282 | const int *impl_deps = get_machine()->volk_32f_accumulator_s32f_impl_deps; | |
2282 | 282 | const bool *alignment = get_machine()->volk_32f_accumulator_s32f_impl_alignment; | |
2283 | 282 | const size_t n_impls = get_machine()->volk_32f_accumulator_s32f_n_impls; | |
2284 | 282 | volk_func_desc_t desc = { | |
2285 | impl_names, | ||
2286 | impl_deps, | ||
2287 | alignment, | ||
2288 | n_impls | ||
2289 | }; | ||
2290 | 282 | return desc; | |
2291 | } | ||
2292 | |||
2293 | |||
2294 | |||
2295 | ✗ | static inline void __volk_32f_acos_32f_d(float* bVector, const float* aVector, unsigned int num_points) | |
2296 | { | ||
2297 | |||
2298 | ✗ | if (volk_is_aligned( | |
2299 | ✗ | VOLK_OR_PTR(bVector, | |
2300 | VOLK_OR_PTR(aVector, | ||
2301 | 0)) | ||
2302 | )){ | ||
2303 | ✗ | volk_32f_acos_32f_a(bVector, aVector, num_points); | |
2304 | } | ||
2305 | else{ | ||
2306 | ✗ | volk_32f_acos_32f_u(bVector, aVector, num_points); | |
2307 | } | ||
2308 | ✗ | } | |
2309 | |||
2310 | ✗ | static inline void __init_volk_32f_acos_32f(void) | |
2311 | { | ||
2312 | ✗ | const char *name = get_machine()->volk_32f_acos_32f_name; | |
2313 | ✗ | const char **impl_names = get_machine()->volk_32f_acos_32f_impl_names; | |
2314 | ✗ | const int *impl_deps = get_machine()->volk_32f_acos_32f_impl_deps; | |
2315 | ✗ | const bool *alignment = get_machine()->volk_32f_acos_32f_impl_alignment; | |
2316 | ✗ | const size_t n_impls = get_machine()->volk_32f_acos_32f_n_impls; | |
2317 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
2318 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
2319 | ✗ | volk_32f_acos_32f_a = get_machine()->volk_32f_acos_32f_impls[index_a]; | |
2320 | ✗ | volk_32f_acos_32f_u = get_machine()->volk_32f_acos_32f_impls[index_u]; | |
2321 | |||
2322 | ✗ | assert(volk_32f_acos_32f_a); | |
2323 | ✗ | assert(volk_32f_acos_32f_u); | |
2324 | |||
2325 | ✗ | volk_32f_acos_32f = &__volk_32f_acos_32f_d; | |
2326 | ✗ | } | |
2327 | |||
2328 | ✗ | static inline void __volk_32f_acos_32f_a(float* bVector, const float* aVector, unsigned int num_points) | |
2329 | { | ||
2330 | ✗ | __init_volk_32f_acos_32f(); | |
2331 | ✗ | volk_32f_acos_32f_a(bVector, aVector, num_points); | |
2332 | ✗ | } | |
2333 | |||
2334 | ✗ | static inline void __volk_32f_acos_32f_u(float* bVector, const float* aVector, unsigned int num_points) | |
2335 | { | ||
2336 | ✗ | __init_volk_32f_acos_32f(); | |
2337 | ✗ | volk_32f_acos_32f_u(bVector, aVector, num_points); | |
2338 | ✗ | } | |
2339 | |||
2340 | ✗ | static inline void __volk_32f_acos_32f(float* bVector, const float* aVector, unsigned int num_points) | |
2341 | { | ||
2342 | ✗ | __init_volk_32f_acos_32f(); | |
2343 | ✗ | volk_32f_acos_32f(bVector, aVector, num_points); | |
2344 | ✗ | } | |
2345 | |||
2346 | p_32f_acos_32f volk_32f_acos_32f_a = &__volk_32f_acos_32f_a; | ||
2347 | p_32f_acos_32f volk_32f_acos_32f_u = &__volk_32f_acos_32f_u; | ||
2348 | p_32f_acos_32f volk_32f_acos_32f = &__volk_32f_acos_32f; | ||
2349 | |||
2350 | 14 | void volk_32f_acos_32f_manual(float* bVector, const float* aVector, unsigned int num_points, const char* impl_name) | |
2351 | { | ||
2352 | 14 | const int index = volk_get_index( | |
2353 | 14 | get_machine()->volk_32f_acos_32f_impl_names, | |
2354 | 14 | get_machine()->volk_32f_acos_32f_n_impls, | |
2355 | impl_name | ||
2356 | ); | ||
2357 | 14 | get_machine()->volk_32f_acos_32f_impls[index]( | |
2358 | bVector, aVector, num_points | ||
2359 | ); | ||
2360 | 14 | } | |
2361 | |||
2362 | 282 | volk_func_desc_t volk_32f_acos_32f_get_func_desc(void) { | |
2363 | 282 | const char **impl_names = get_machine()->volk_32f_acos_32f_impl_names; | |
2364 | 282 | const int *impl_deps = get_machine()->volk_32f_acos_32f_impl_deps; | |
2365 | 282 | const bool *alignment = get_machine()->volk_32f_acos_32f_impl_alignment; | |
2366 | 282 | const size_t n_impls = get_machine()->volk_32f_acos_32f_n_impls; | |
2367 | 282 | volk_func_desc_t desc = { | |
2368 | impl_names, | ||
2369 | impl_deps, | ||
2370 | alignment, | ||
2371 | n_impls | ||
2372 | }; | ||
2373 | 282 | return desc; | |
2374 | } | ||
2375 | |||
2376 | |||
2377 | |||
2378 | ✗ | static inline void __volk_32f_asin_32f_d(float* bVector, const float* aVector, unsigned int num_points) | |
2379 | { | ||
2380 | |||
2381 | ✗ | if (volk_is_aligned( | |
2382 | ✗ | VOLK_OR_PTR(bVector, | |
2383 | VOLK_OR_PTR(aVector, | ||
2384 | 0)) | ||
2385 | )){ | ||
2386 | ✗ | volk_32f_asin_32f_a(bVector, aVector, num_points); | |
2387 | } | ||
2388 | else{ | ||
2389 | ✗ | volk_32f_asin_32f_u(bVector, aVector, num_points); | |
2390 | } | ||
2391 | ✗ | } | |
2392 | |||
2393 | ✗ | static inline void __init_volk_32f_asin_32f(void) | |
2394 | { | ||
2395 | ✗ | const char *name = get_machine()->volk_32f_asin_32f_name; | |
2396 | ✗ | const char **impl_names = get_machine()->volk_32f_asin_32f_impl_names; | |
2397 | ✗ | const int *impl_deps = get_machine()->volk_32f_asin_32f_impl_deps; | |
2398 | ✗ | const bool *alignment = get_machine()->volk_32f_asin_32f_impl_alignment; | |
2399 | ✗ | const size_t n_impls = get_machine()->volk_32f_asin_32f_n_impls; | |
2400 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
2401 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
2402 | ✗ | volk_32f_asin_32f_a = get_machine()->volk_32f_asin_32f_impls[index_a]; | |
2403 | ✗ | volk_32f_asin_32f_u = get_machine()->volk_32f_asin_32f_impls[index_u]; | |
2404 | |||
2405 | ✗ | assert(volk_32f_asin_32f_a); | |
2406 | ✗ | assert(volk_32f_asin_32f_u); | |
2407 | |||
2408 | ✗ | volk_32f_asin_32f = &__volk_32f_asin_32f_d; | |
2409 | ✗ | } | |
2410 | |||
2411 | ✗ | static inline void __volk_32f_asin_32f_a(float* bVector, const float* aVector, unsigned int num_points) | |
2412 | { | ||
2413 | ✗ | __init_volk_32f_asin_32f(); | |
2414 | ✗ | volk_32f_asin_32f_a(bVector, aVector, num_points); | |
2415 | ✗ | } | |
2416 | |||
2417 | ✗ | static inline void __volk_32f_asin_32f_u(float* bVector, const float* aVector, unsigned int num_points) | |
2418 | { | ||
2419 | ✗ | __init_volk_32f_asin_32f(); | |
2420 | ✗ | volk_32f_asin_32f_u(bVector, aVector, num_points); | |
2421 | ✗ | } | |
2422 | |||
2423 | ✗ | static inline void __volk_32f_asin_32f(float* bVector, const float* aVector, unsigned int num_points) | |
2424 | { | ||
2425 | ✗ | __init_volk_32f_asin_32f(); | |
2426 | ✗ | volk_32f_asin_32f(bVector, aVector, num_points); | |
2427 | ✗ | } | |
2428 | |||
2429 | p_32f_asin_32f volk_32f_asin_32f_a = &__volk_32f_asin_32f_a; | ||
2430 | p_32f_asin_32f volk_32f_asin_32f_u = &__volk_32f_asin_32f_u; | ||
2431 | p_32f_asin_32f volk_32f_asin_32f = &__volk_32f_asin_32f; | ||
2432 | |||
2433 | 14 | void volk_32f_asin_32f_manual(float* bVector, const float* aVector, unsigned int num_points, const char* impl_name) | |
2434 | { | ||
2435 | 14 | const int index = volk_get_index( | |
2436 | 14 | get_machine()->volk_32f_asin_32f_impl_names, | |
2437 | 14 | get_machine()->volk_32f_asin_32f_n_impls, | |
2438 | impl_name | ||
2439 | ); | ||
2440 | 14 | get_machine()->volk_32f_asin_32f_impls[index]( | |
2441 | bVector, aVector, num_points | ||
2442 | ); | ||
2443 | 14 | } | |
2444 | |||
2445 | 282 | volk_func_desc_t volk_32f_asin_32f_get_func_desc(void) { | |
2446 | 282 | const char **impl_names = get_machine()->volk_32f_asin_32f_impl_names; | |
2447 | 282 | const int *impl_deps = get_machine()->volk_32f_asin_32f_impl_deps; | |
2448 | 282 | const bool *alignment = get_machine()->volk_32f_asin_32f_impl_alignment; | |
2449 | 282 | const size_t n_impls = get_machine()->volk_32f_asin_32f_n_impls; | |
2450 | 282 | volk_func_desc_t desc = { | |
2451 | impl_names, | ||
2452 | impl_deps, | ||
2453 | alignment, | ||
2454 | n_impls | ||
2455 | }; | ||
2456 | 282 | return desc; | |
2457 | } | ||
2458 | |||
2459 | |||
2460 | |||
2461 | ✗ | static inline void __volk_32f_atan_32f_d(float* out, const float* in, unsigned int num_points) | |
2462 | { | ||
2463 | |||
2464 | ✗ | if (volk_is_aligned( | |
2465 | ✗ | VOLK_OR_PTR(out, | |
2466 | VOLK_OR_PTR(in, | ||
2467 | 0)) | ||
2468 | )){ | ||
2469 | ✗ | volk_32f_atan_32f_a(out, in, num_points); | |
2470 | } | ||
2471 | else{ | ||
2472 | ✗ | volk_32f_atan_32f_u(out, in, num_points); | |
2473 | } | ||
2474 | ✗ | } | |
2475 | |||
2476 | ✗ | static inline void __init_volk_32f_atan_32f(void) | |
2477 | { | ||
2478 | ✗ | const char *name = get_machine()->volk_32f_atan_32f_name; | |
2479 | ✗ | const char **impl_names = get_machine()->volk_32f_atan_32f_impl_names; | |
2480 | ✗ | const int *impl_deps = get_machine()->volk_32f_atan_32f_impl_deps; | |
2481 | ✗ | const bool *alignment = get_machine()->volk_32f_atan_32f_impl_alignment; | |
2482 | ✗ | const size_t n_impls = get_machine()->volk_32f_atan_32f_n_impls; | |
2483 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
2484 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
2485 | ✗ | volk_32f_atan_32f_a = get_machine()->volk_32f_atan_32f_impls[index_a]; | |
2486 | ✗ | volk_32f_atan_32f_u = get_machine()->volk_32f_atan_32f_impls[index_u]; | |
2487 | |||
2488 | ✗ | assert(volk_32f_atan_32f_a); | |
2489 | ✗ | assert(volk_32f_atan_32f_u); | |
2490 | |||
2491 | ✗ | volk_32f_atan_32f = &__volk_32f_atan_32f_d; | |
2492 | ✗ | } | |
2493 | |||
2494 | ✗ | static inline void __volk_32f_atan_32f_a(float* out, const float* in, unsigned int num_points) | |
2495 | { | ||
2496 | ✗ | __init_volk_32f_atan_32f(); | |
2497 | ✗ | volk_32f_atan_32f_a(out, in, num_points); | |
2498 | ✗ | } | |
2499 | |||
2500 | ✗ | static inline void __volk_32f_atan_32f_u(float* out, const float* in, unsigned int num_points) | |
2501 | { | ||
2502 | ✗ | __init_volk_32f_atan_32f(); | |
2503 | ✗ | volk_32f_atan_32f_u(out, in, num_points); | |
2504 | ✗ | } | |
2505 | |||
2506 | ✗ | static inline void __volk_32f_atan_32f(float* out, const float* in, unsigned int num_points) | |
2507 | { | ||
2508 | ✗ | __init_volk_32f_atan_32f(); | |
2509 | ✗ | volk_32f_atan_32f(out, in, num_points); | |
2510 | ✗ | } | |
2511 | |||
2512 | p_32f_atan_32f volk_32f_atan_32f_a = &__volk_32f_atan_32f_a; | ||
2513 | p_32f_atan_32f volk_32f_atan_32f_u = &__volk_32f_atan_32f_u; | ||
2514 | p_32f_atan_32f volk_32f_atan_32f = &__volk_32f_atan_32f; | ||
2515 | |||
2516 | 16 | void volk_32f_atan_32f_manual(float* out, const float* in, unsigned int num_points, const char* impl_name) | |
2517 | { | ||
2518 | 16 | const int index = volk_get_index( | |
2519 | 16 | get_machine()->volk_32f_atan_32f_impl_names, | |
2520 | 16 | get_machine()->volk_32f_atan_32f_n_impls, | |
2521 | impl_name | ||
2522 | ); | ||
2523 | 16 | get_machine()->volk_32f_atan_32f_impls[index]( | |
2524 | out, in, num_points | ||
2525 | ); | ||
2526 | 16 | } | |
2527 | |||
2528 | 282 | volk_func_desc_t volk_32f_atan_32f_get_func_desc(void) { | |
2529 | 282 | const char **impl_names = get_machine()->volk_32f_atan_32f_impl_names; | |
2530 | 282 | const int *impl_deps = get_machine()->volk_32f_atan_32f_impl_deps; | |
2531 | 282 | const bool *alignment = get_machine()->volk_32f_atan_32f_impl_alignment; | |
2532 | 282 | const size_t n_impls = get_machine()->volk_32f_atan_32f_n_impls; | |
2533 | 282 | volk_func_desc_t desc = { | |
2534 | impl_names, | ||
2535 | impl_deps, | ||
2536 | alignment, | ||
2537 | n_impls | ||
2538 | }; | ||
2539 | 282 | return desc; | |
2540 | } | ||
2541 | |||
2542 | |||
2543 | |||
2544 | ✗ | static inline void __volk_32f_binary_slicer_32i_d(int* cVector, const float* aVector, unsigned int num_points) | |
2545 | { | ||
2546 | |||
2547 | ✗ | if (volk_is_aligned( | |
2548 | ✗ | VOLK_OR_PTR(cVector, | |
2549 | VOLK_OR_PTR(aVector, | ||
2550 | 0)) | ||
2551 | )){ | ||
2552 | ✗ | volk_32f_binary_slicer_32i_a(cVector, aVector, num_points); | |
2553 | } | ||
2554 | else{ | ||
2555 | ✗ | volk_32f_binary_slicer_32i_u(cVector, aVector, num_points); | |
2556 | } | ||
2557 | ✗ | } | |
2558 | |||
2559 | ✗ | static inline void __init_volk_32f_binary_slicer_32i(void) | |
2560 | { | ||
2561 | ✗ | const char *name = get_machine()->volk_32f_binary_slicer_32i_name; | |
2562 | ✗ | const char **impl_names = get_machine()->volk_32f_binary_slicer_32i_impl_names; | |
2563 | ✗ | const int *impl_deps = get_machine()->volk_32f_binary_slicer_32i_impl_deps; | |
2564 | ✗ | const bool *alignment = get_machine()->volk_32f_binary_slicer_32i_impl_alignment; | |
2565 | ✗ | const size_t n_impls = get_machine()->volk_32f_binary_slicer_32i_n_impls; | |
2566 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
2567 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
2568 | ✗ | volk_32f_binary_slicer_32i_a = get_machine()->volk_32f_binary_slicer_32i_impls[index_a]; | |
2569 | ✗ | volk_32f_binary_slicer_32i_u = get_machine()->volk_32f_binary_slicer_32i_impls[index_u]; | |
2570 | |||
2571 | ✗ | assert(volk_32f_binary_slicer_32i_a); | |
2572 | ✗ | assert(volk_32f_binary_slicer_32i_u); | |
2573 | |||
2574 | ✗ | volk_32f_binary_slicer_32i = &__volk_32f_binary_slicer_32i_d; | |
2575 | ✗ | } | |
2576 | |||
2577 | ✗ | static inline void __volk_32f_binary_slicer_32i_a(int* cVector, const float* aVector, unsigned int num_points) | |
2578 | { | ||
2579 | ✗ | __init_volk_32f_binary_slicer_32i(); | |
2580 | ✗ | volk_32f_binary_slicer_32i_a(cVector, aVector, num_points); | |
2581 | ✗ | } | |
2582 | |||
2583 | ✗ | static inline void __volk_32f_binary_slicer_32i_u(int* cVector, const float* aVector, unsigned int num_points) | |
2584 | { | ||
2585 | ✗ | __init_volk_32f_binary_slicer_32i(); | |
2586 | ✗ | volk_32f_binary_slicer_32i_u(cVector, aVector, num_points); | |
2587 | ✗ | } | |
2588 | |||
2589 | ✗ | static inline void __volk_32f_binary_slicer_32i(int* cVector, const float* aVector, unsigned int num_points) | |
2590 | { | ||
2591 | ✗ | __init_volk_32f_binary_slicer_32i(); | |
2592 | ✗ | volk_32f_binary_slicer_32i(cVector, aVector, num_points); | |
2593 | ✗ | } | |
2594 | |||
2595 | p_32f_binary_slicer_32i volk_32f_binary_slicer_32i_a = &__volk_32f_binary_slicer_32i_a; | ||
2596 | p_32f_binary_slicer_32i volk_32f_binary_slicer_32i_u = &__volk_32f_binary_slicer_32i_u; | ||
2597 | p_32f_binary_slicer_32i volk_32f_binary_slicer_32i = &__volk_32f_binary_slicer_32i; | ||
2598 | |||
2599 | 12 | void volk_32f_binary_slicer_32i_manual(int* cVector, const float* aVector, unsigned int num_points, const char* impl_name) | |
2600 | { | ||
2601 | 12 | const int index = volk_get_index( | |
2602 | 12 | get_machine()->volk_32f_binary_slicer_32i_impl_names, | |
2603 | 12 | get_machine()->volk_32f_binary_slicer_32i_n_impls, | |
2604 | impl_name | ||
2605 | ); | ||
2606 | 12 | get_machine()->volk_32f_binary_slicer_32i_impls[index]( | |
2607 | cVector, aVector, num_points | ||
2608 | ); | ||
2609 | 12 | } | |
2610 | |||
2611 | 282 | volk_func_desc_t volk_32f_binary_slicer_32i_get_func_desc(void) { | |
2612 | 282 | const char **impl_names = get_machine()->volk_32f_binary_slicer_32i_impl_names; | |
2613 | 282 | const int *impl_deps = get_machine()->volk_32f_binary_slicer_32i_impl_deps; | |
2614 | 282 | const bool *alignment = get_machine()->volk_32f_binary_slicer_32i_impl_alignment; | |
2615 | 282 | const size_t n_impls = get_machine()->volk_32f_binary_slicer_32i_n_impls; | |
2616 | 282 | volk_func_desc_t desc = { | |
2617 | impl_names, | ||
2618 | impl_deps, | ||
2619 | alignment, | ||
2620 | n_impls | ||
2621 | }; | ||
2622 | 282 | return desc; | |
2623 | } | ||
2624 | |||
2625 | |||
2626 | |||
2627 | ✗ | static inline void __volk_32f_binary_slicer_8i_d(int8_t* cVector, const float* aVector, unsigned int num_points) | |
2628 | { | ||
2629 | |||
2630 | ✗ | if (volk_is_aligned( | |
2631 | ✗ | VOLK_OR_PTR(cVector, | |
2632 | VOLK_OR_PTR(aVector, | ||
2633 | 0)) | ||
2634 | )){ | ||
2635 | ✗ | volk_32f_binary_slicer_8i_a(cVector, aVector, num_points); | |
2636 | } | ||
2637 | else{ | ||
2638 | ✗ | volk_32f_binary_slicer_8i_u(cVector, aVector, num_points); | |
2639 | } | ||
2640 | ✗ | } | |
2641 | |||
2642 | ✗ | static inline void __init_volk_32f_binary_slicer_8i(void) | |
2643 | { | ||
2644 | ✗ | const char *name = get_machine()->volk_32f_binary_slicer_8i_name; | |
2645 | ✗ | const char **impl_names = get_machine()->volk_32f_binary_slicer_8i_impl_names; | |
2646 | ✗ | const int *impl_deps = get_machine()->volk_32f_binary_slicer_8i_impl_deps; | |
2647 | ✗ | const bool *alignment = get_machine()->volk_32f_binary_slicer_8i_impl_alignment; | |
2648 | ✗ | const size_t n_impls = get_machine()->volk_32f_binary_slicer_8i_n_impls; | |
2649 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
2650 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
2651 | ✗ | volk_32f_binary_slicer_8i_a = get_machine()->volk_32f_binary_slicer_8i_impls[index_a]; | |
2652 | ✗ | volk_32f_binary_slicer_8i_u = get_machine()->volk_32f_binary_slicer_8i_impls[index_u]; | |
2653 | |||
2654 | ✗ | assert(volk_32f_binary_slicer_8i_a); | |
2655 | ✗ | assert(volk_32f_binary_slicer_8i_u); | |
2656 | |||
2657 | ✗ | volk_32f_binary_slicer_8i = &__volk_32f_binary_slicer_8i_d; | |
2658 | ✗ | } | |
2659 | |||
2660 | ✗ | static inline void __volk_32f_binary_slicer_8i_a(int8_t* cVector, const float* aVector, unsigned int num_points) | |
2661 | { | ||
2662 | ✗ | __init_volk_32f_binary_slicer_8i(); | |
2663 | ✗ | volk_32f_binary_slicer_8i_a(cVector, aVector, num_points); | |
2664 | ✗ | } | |
2665 | |||
2666 | ✗ | static inline void __volk_32f_binary_slicer_8i_u(int8_t* cVector, const float* aVector, unsigned int num_points) | |
2667 | { | ||
2668 | ✗ | __init_volk_32f_binary_slicer_8i(); | |
2669 | ✗ | volk_32f_binary_slicer_8i_u(cVector, aVector, num_points); | |
2670 | ✗ | } | |
2671 | |||
2672 | ✗ | static inline void __volk_32f_binary_slicer_8i(int8_t* cVector, const float* aVector, unsigned int num_points) | |
2673 | { | ||
2674 | ✗ | __init_volk_32f_binary_slicer_8i(); | |
2675 | ✗ | volk_32f_binary_slicer_8i(cVector, aVector, num_points); | |
2676 | ✗ | } | |
2677 | |||
2678 | p_32f_binary_slicer_8i volk_32f_binary_slicer_8i_a = &__volk_32f_binary_slicer_8i_a; | ||
2679 | p_32f_binary_slicer_8i volk_32f_binary_slicer_8i_u = &__volk_32f_binary_slicer_8i_u; | ||
2680 | p_32f_binary_slicer_8i volk_32f_binary_slicer_8i = &__volk_32f_binary_slicer_8i; | ||
2681 | |||
2682 | 12 | void volk_32f_binary_slicer_8i_manual(int8_t* cVector, const float* aVector, unsigned int num_points, const char* impl_name) | |
2683 | { | ||
2684 | 12 | const int index = volk_get_index( | |
2685 | 12 | get_machine()->volk_32f_binary_slicer_8i_impl_names, | |
2686 | 12 | get_machine()->volk_32f_binary_slicer_8i_n_impls, | |
2687 | impl_name | ||
2688 | ); | ||
2689 | 12 | get_machine()->volk_32f_binary_slicer_8i_impls[index]( | |
2690 | cVector, aVector, num_points | ||
2691 | ); | ||
2692 | 12 | } | |
2693 | |||
2694 | 282 | volk_func_desc_t volk_32f_binary_slicer_8i_get_func_desc(void) { | |
2695 | 282 | const char **impl_names = get_machine()->volk_32f_binary_slicer_8i_impl_names; | |
2696 | 282 | const int *impl_deps = get_machine()->volk_32f_binary_slicer_8i_impl_deps; | |
2697 | 282 | const bool *alignment = get_machine()->volk_32f_binary_slicer_8i_impl_alignment; | |
2698 | 282 | const size_t n_impls = get_machine()->volk_32f_binary_slicer_8i_n_impls; | |
2699 | 282 | volk_func_desc_t desc = { | |
2700 | impl_names, | ||
2701 | impl_deps, | ||
2702 | alignment, | ||
2703 | n_impls | ||
2704 | }; | ||
2705 | 282 | return desc; | |
2706 | } | ||
2707 | |||
2708 | |||
2709 | |||
2710 | ✗ | static inline void __volk_32f_convert_64f_d(double* outputVector, const float* inputVector, unsigned int num_points) | |
2711 | { | ||
2712 | |||
2713 | ✗ | if (volk_is_aligned( | |
2714 | ✗ | VOLK_OR_PTR(outputVector, | |
2715 | VOLK_OR_PTR(inputVector, | ||
2716 | 0)) | ||
2717 | )){ | ||
2718 | ✗ | volk_32f_convert_64f_a(outputVector, inputVector, num_points); | |
2719 | } | ||
2720 | else{ | ||
2721 | ✗ | volk_32f_convert_64f_u(outputVector, inputVector, num_points); | |
2722 | } | ||
2723 | ✗ | } | |
2724 | |||
2725 | ✗ | static inline void __init_volk_32f_convert_64f(void) | |
2726 | { | ||
2727 | ✗ | const char *name = get_machine()->volk_32f_convert_64f_name; | |
2728 | ✗ | const char **impl_names = get_machine()->volk_32f_convert_64f_impl_names; | |
2729 | ✗ | const int *impl_deps = get_machine()->volk_32f_convert_64f_impl_deps; | |
2730 | ✗ | const bool *alignment = get_machine()->volk_32f_convert_64f_impl_alignment; | |
2731 | ✗ | const size_t n_impls = get_machine()->volk_32f_convert_64f_n_impls; | |
2732 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
2733 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
2734 | ✗ | volk_32f_convert_64f_a = get_machine()->volk_32f_convert_64f_impls[index_a]; | |
2735 | ✗ | volk_32f_convert_64f_u = get_machine()->volk_32f_convert_64f_impls[index_u]; | |
2736 | |||
2737 | ✗ | assert(volk_32f_convert_64f_a); | |
2738 | ✗ | assert(volk_32f_convert_64f_u); | |
2739 | |||
2740 | ✗ | volk_32f_convert_64f = &__volk_32f_convert_64f_d; | |
2741 | ✗ | } | |
2742 | |||
2743 | ✗ | static inline void __volk_32f_convert_64f_a(double* outputVector, const float* inputVector, unsigned int num_points) | |
2744 | { | ||
2745 | ✗ | __init_volk_32f_convert_64f(); | |
2746 | ✗ | volk_32f_convert_64f_a(outputVector, inputVector, num_points); | |
2747 | ✗ | } | |
2748 | |||
2749 | ✗ | static inline void __volk_32f_convert_64f_u(double* outputVector, const float* inputVector, unsigned int num_points) | |
2750 | { | ||
2751 | ✗ | __init_volk_32f_convert_64f(); | |
2752 | ✗ | volk_32f_convert_64f_u(outputVector, inputVector, num_points); | |
2753 | ✗ | } | |
2754 | |||
2755 | ✗ | static inline void __volk_32f_convert_64f(double* outputVector, const float* inputVector, unsigned int num_points) | |
2756 | { | ||
2757 | ✗ | __init_volk_32f_convert_64f(); | |
2758 | ✗ | volk_32f_convert_64f(outputVector, inputVector, num_points); | |
2759 | ✗ | } | |
2760 | |||
2761 | p_32f_convert_64f volk_32f_convert_64f_a = &__volk_32f_convert_64f_a; | ||
2762 | p_32f_convert_64f volk_32f_convert_64f_u = &__volk_32f_convert_64f_u; | ||
2763 | p_32f_convert_64f volk_32f_convert_64f = &__volk_32f_convert_64f; | ||
2764 | |||
2765 | 12 | void volk_32f_convert_64f_manual(double* outputVector, const float* inputVector, unsigned int num_points, const char* impl_name) | |
2766 | { | ||
2767 | 12 | const int index = volk_get_index( | |
2768 | 12 | get_machine()->volk_32f_convert_64f_impl_names, | |
2769 | 12 | get_machine()->volk_32f_convert_64f_n_impls, | |
2770 | impl_name | ||
2771 | ); | ||
2772 | 12 | get_machine()->volk_32f_convert_64f_impls[index]( | |
2773 | outputVector, inputVector, num_points | ||
2774 | ); | ||
2775 | 12 | } | |
2776 | |||
2777 | 282 | volk_func_desc_t volk_32f_convert_64f_get_func_desc(void) { | |
2778 | 282 | const char **impl_names = get_machine()->volk_32f_convert_64f_impl_names; | |
2779 | 282 | const int *impl_deps = get_machine()->volk_32f_convert_64f_impl_deps; | |
2780 | 282 | const bool *alignment = get_machine()->volk_32f_convert_64f_impl_alignment; | |
2781 | 282 | const size_t n_impls = get_machine()->volk_32f_convert_64f_n_impls; | |
2782 | 282 | volk_func_desc_t desc = { | |
2783 | impl_names, | ||
2784 | impl_deps, | ||
2785 | alignment, | ||
2786 | n_impls | ||
2787 | }; | ||
2788 | 282 | return desc; | |
2789 | } | ||
2790 | |||
2791 | |||
2792 | |||
2793 | ✗ | static inline void __volk_32f_cos_32f_d(float* cosVector, const float* inVector, unsigned int num_points) | |
2794 | { | ||
2795 | |||
2796 | ✗ | if (volk_is_aligned( | |
2797 | ✗ | VOLK_OR_PTR(cosVector, | |
2798 | VOLK_OR_PTR(inVector, | ||
2799 | 0)) | ||
2800 | )){ | ||
2801 | ✗ | volk_32f_cos_32f_a(cosVector, inVector, num_points); | |
2802 | } | ||
2803 | else{ | ||
2804 | ✗ | volk_32f_cos_32f_u(cosVector, inVector, num_points); | |
2805 | } | ||
2806 | ✗ | } | |
2807 | |||
2808 | ✗ | static inline void __init_volk_32f_cos_32f(void) | |
2809 | { | ||
2810 | ✗ | const char *name = get_machine()->volk_32f_cos_32f_name; | |
2811 | ✗ | const char **impl_names = get_machine()->volk_32f_cos_32f_impl_names; | |
2812 | ✗ | const int *impl_deps = get_machine()->volk_32f_cos_32f_impl_deps; | |
2813 | ✗ | const bool *alignment = get_machine()->volk_32f_cos_32f_impl_alignment; | |
2814 | ✗ | const size_t n_impls = get_machine()->volk_32f_cos_32f_n_impls; | |
2815 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
2816 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
2817 | ✗ | volk_32f_cos_32f_a = get_machine()->volk_32f_cos_32f_impls[index_a]; | |
2818 | ✗ | volk_32f_cos_32f_u = get_machine()->volk_32f_cos_32f_impls[index_u]; | |
2819 | |||
2820 | ✗ | assert(volk_32f_cos_32f_a); | |
2821 | ✗ | assert(volk_32f_cos_32f_u); | |
2822 | |||
2823 | ✗ | volk_32f_cos_32f = &__volk_32f_cos_32f_d; | |
2824 | ✗ | } | |
2825 | |||
2826 | ✗ | static inline void __volk_32f_cos_32f_a(float* cosVector, const float* inVector, unsigned int num_points) | |
2827 | { | ||
2828 | ✗ | __init_volk_32f_cos_32f(); | |
2829 | ✗ | volk_32f_cos_32f_a(cosVector, inVector, num_points); | |
2830 | ✗ | } | |
2831 | |||
2832 | ✗ | static inline void __volk_32f_cos_32f_u(float* cosVector, const float* inVector, unsigned int num_points) | |
2833 | { | ||
2834 | ✗ | __init_volk_32f_cos_32f(); | |
2835 | ✗ | volk_32f_cos_32f_u(cosVector, inVector, num_points); | |
2836 | ✗ | } | |
2837 | |||
2838 | ✗ | static inline void __volk_32f_cos_32f(float* cosVector, const float* inVector, unsigned int num_points) | |
2839 | { | ||
2840 | ✗ | __init_volk_32f_cos_32f(); | |
2841 | ✗ | volk_32f_cos_32f(cosVector, inVector, num_points); | |
2842 | ✗ | } | |
2843 | |||
2844 | p_32f_cos_32f volk_32f_cos_32f_a = &__volk_32f_cos_32f_a; | ||
2845 | p_32f_cos_32f volk_32f_cos_32f_u = &__volk_32f_cos_32f_u; | ||
2846 | p_32f_cos_32f volk_32f_cos_32f = &__volk_32f_cos_32f; | ||
2847 | |||
2848 | 16 | void volk_32f_cos_32f_manual(float* cosVector, const float* inVector, unsigned int num_points, const char* impl_name) | |
2849 | { | ||
2850 | 16 | const int index = volk_get_index( | |
2851 | 16 | get_machine()->volk_32f_cos_32f_impl_names, | |
2852 | 16 | get_machine()->volk_32f_cos_32f_n_impls, | |
2853 | impl_name | ||
2854 | ); | ||
2855 | 16 | get_machine()->volk_32f_cos_32f_impls[index]( | |
2856 | cosVector, inVector, num_points | ||
2857 | ); | ||
2858 | 16 | } | |
2859 | |||
2860 | 282 | volk_func_desc_t volk_32f_cos_32f_get_func_desc(void) { | |
2861 | 282 | const char **impl_names = get_machine()->volk_32f_cos_32f_impl_names; | |
2862 | 282 | const int *impl_deps = get_machine()->volk_32f_cos_32f_impl_deps; | |
2863 | 282 | const bool *alignment = get_machine()->volk_32f_cos_32f_impl_alignment; | |
2864 | 282 | const size_t n_impls = get_machine()->volk_32f_cos_32f_n_impls; | |
2865 | 282 | volk_func_desc_t desc = { | |
2866 | impl_names, | ||
2867 | impl_deps, | ||
2868 | alignment, | ||
2869 | n_impls | ||
2870 | }; | ||
2871 | 282 | return desc; | |
2872 | } | ||
2873 | |||
2874 | |||
2875 | |||
2876 | ✗ | static inline void __volk_32f_exp_32f_d(float* bVector, const float* aVector, unsigned int num_points) | |
2877 | { | ||
2878 | |||
2879 | ✗ | if (volk_is_aligned( | |
2880 | ✗ | VOLK_OR_PTR(bVector, | |
2881 | VOLK_OR_PTR(aVector, | ||
2882 | 0)) | ||
2883 | )){ | ||
2884 | ✗ | volk_32f_exp_32f_a(bVector, aVector, num_points); | |
2885 | } | ||
2886 | else{ | ||
2887 | ✗ | volk_32f_exp_32f_u(bVector, aVector, num_points); | |
2888 | } | ||
2889 | ✗ | } | |
2890 | |||
2891 | ✗ | static inline void __init_volk_32f_exp_32f(void) | |
2892 | { | ||
2893 | ✗ | const char *name = get_machine()->volk_32f_exp_32f_name; | |
2894 | ✗ | const char **impl_names = get_machine()->volk_32f_exp_32f_impl_names; | |
2895 | ✗ | const int *impl_deps = get_machine()->volk_32f_exp_32f_impl_deps; | |
2896 | ✗ | const bool *alignment = get_machine()->volk_32f_exp_32f_impl_alignment; | |
2897 | ✗ | const size_t n_impls = get_machine()->volk_32f_exp_32f_n_impls; | |
2898 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
2899 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
2900 | ✗ | volk_32f_exp_32f_a = get_machine()->volk_32f_exp_32f_impls[index_a]; | |
2901 | ✗ | volk_32f_exp_32f_u = get_machine()->volk_32f_exp_32f_impls[index_u]; | |
2902 | |||
2903 | ✗ | assert(volk_32f_exp_32f_a); | |
2904 | ✗ | assert(volk_32f_exp_32f_u); | |
2905 | |||
2906 | ✗ | volk_32f_exp_32f = &__volk_32f_exp_32f_d; | |
2907 | ✗ | } | |
2908 | |||
2909 | ✗ | static inline void __volk_32f_exp_32f_a(float* bVector, const float* aVector, unsigned int num_points) | |
2910 | { | ||
2911 | ✗ | __init_volk_32f_exp_32f(); | |
2912 | ✗ | volk_32f_exp_32f_a(bVector, aVector, num_points); | |
2913 | ✗ | } | |
2914 | |||
2915 | ✗ | static inline void __volk_32f_exp_32f_u(float* bVector, const float* aVector, unsigned int num_points) | |
2916 | { | ||
2917 | ✗ | __init_volk_32f_exp_32f(); | |
2918 | ✗ | volk_32f_exp_32f_u(bVector, aVector, num_points); | |
2919 | ✗ | } | |
2920 | |||
2921 | ✗ | static inline void __volk_32f_exp_32f(float* bVector, const float* aVector, unsigned int num_points) | |
2922 | { | ||
2923 | ✗ | __init_volk_32f_exp_32f(); | |
2924 | ✗ | volk_32f_exp_32f(bVector, aVector, num_points); | |
2925 | ✗ | } | |
2926 | |||
2927 | p_32f_exp_32f volk_32f_exp_32f_a = &__volk_32f_exp_32f_a; | ||
2928 | p_32f_exp_32f volk_32f_exp_32f_u = &__volk_32f_exp_32f_u; | ||
2929 | p_32f_exp_32f volk_32f_exp_32f = &__volk_32f_exp_32f; | ||
2930 | |||
2931 | ✗ | void volk_32f_exp_32f_manual(float* bVector, const float* aVector, unsigned int num_points, const char* impl_name) | |
2932 | { | ||
2933 | ✗ | const int index = volk_get_index( | |
2934 | ✗ | get_machine()->volk_32f_exp_32f_impl_names, | |
2935 | ✗ | get_machine()->volk_32f_exp_32f_n_impls, | |
2936 | impl_name | ||
2937 | ); | ||
2938 | ✗ | get_machine()->volk_32f_exp_32f_impls[index]( | |
2939 | bVector, aVector, num_points | ||
2940 | ); | ||
2941 | ✗ | } | |
2942 | |||
2943 | ✗ | volk_func_desc_t volk_32f_exp_32f_get_func_desc(void) { | |
2944 | ✗ | const char **impl_names = get_machine()->volk_32f_exp_32f_impl_names; | |
2945 | ✗ | const int *impl_deps = get_machine()->volk_32f_exp_32f_impl_deps; | |
2946 | ✗ | const bool *alignment = get_machine()->volk_32f_exp_32f_impl_alignment; | |
2947 | ✗ | const size_t n_impls = get_machine()->volk_32f_exp_32f_n_impls; | |
2948 | ✗ | volk_func_desc_t desc = { | |
2949 | impl_names, | ||
2950 | impl_deps, | ||
2951 | alignment, | ||
2952 | n_impls | ||
2953 | }; | ||
2954 | ✗ | return desc; | |
2955 | } | ||
2956 | |||
2957 | |||
2958 | |||
2959 | ✗ | static inline void __volk_32f_expfast_32f_d(float* bVector, const float* aVector, unsigned int num_points) | |
2960 | { | ||
2961 | |||
2962 | ✗ | if (volk_is_aligned( | |
2963 | ✗ | VOLK_OR_PTR(bVector, | |
2964 | VOLK_OR_PTR(aVector, | ||
2965 | 0)) | ||
2966 | )){ | ||
2967 | ✗ | volk_32f_expfast_32f_a(bVector, aVector, num_points); | |
2968 | } | ||
2969 | else{ | ||
2970 | ✗ | volk_32f_expfast_32f_u(bVector, aVector, num_points); | |
2971 | } | ||
2972 | ✗ | } | |
2973 | |||
2974 | ✗ | static inline void __init_volk_32f_expfast_32f(void) | |
2975 | { | ||
2976 | ✗ | const char *name = get_machine()->volk_32f_expfast_32f_name; | |
2977 | ✗ | const char **impl_names = get_machine()->volk_32f_expfast_32f_impl_names; | |
2978 | ✗ | const int *impl_deps = get_machine()->volk_32f_expfast_32f_impl_deps; | |
2979 | ✗ | const bool *alignment = get_machine()->volk_32f_expfast_32f_impl_alignment; | |
2980 | ✗ | const size_t n_impls = get_machine()->volk_32f_expfast_32f_n_impls; | |
2981 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
2982 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
2983 | ✗ | volk_32f_expfast_32f_a = get_machine()->volk_32f_expfast_32f_impls[index_a]; | |
2984 | ✗ | volk_32f_expfast_32f_u = get_machine()->volk_32f_expfast_32f_impls[index_u]; | |
2985 | |||
2986 | ✗ | assert(volk_32f_expfast_32f_a); | |
2987 | ✗ | assert(volk_32f_expfast_32f_u); | |
2988 | |||
2989 | ✗ | volk_32f_expfast_32f = &__volk_32f_expfast_32f_d; | |
2990 | ✗ | } | |
2991 | |||
2992 | ✗ | static inline void __volk_32f_expfast_32f_a(float* bVector, const float* aVector, unsigned int num_points) | |
2993 | { | ||
2994 | ✗ | __init_volk_32f_expfast_32f(); | |
2995 | ✗ | volk_32f_expfast_32f_a(bVector, aVector, num_points); | |
2996 | ✗ | } | |
2997 | |||
2998 | ✗ | static inline void __volk_32f_expfast_32f_u(float* bVector, const float* aVector, unsigned int num_points) | |
2999 | { | ||
3000 | ✗ | __init_volk_32f_expfast_32f(); | |
3001 | ✗ | volk_32f_expfast_32f_u(bVector, aVector, num_points); | |
3002 | ✗ | } | |
3003 | |||
3004 | ✗ | static inline void __volk_32f_expfast_32f(float* bVector, const float* aVector, unsigned int num_points) | |
3005 | { | ||
3006 | ✗ | __init_volk_32f_expfast_32f(); | |
3007 | ✗ | volk_32f_expfast_32f(bVector, aVector, num_points); | |
3008 | ✗ | } | |
3009 | |||
3010 | p_32f_expfast_32f volk_32f_expfast_32f_a = &__volk_32f_expfast_32f_a; | ||
3011 | p_32f_expfast_32f volk_32f_expfast_32f_u = &__volk_32f_expfast_32f_u; | ||
3012 | p_32f_expfast_32f volk_32f_expfast_32f = &__volk_32f_expfast_32f; | ||
3013 | |||
3014 | 14 | void volk_32f_expfast_32f_manual(float* bVector, const float* aVector, unsigned int num_points, const char* impl_name) | |
3015 | { | ||
3016 | 14 | const int index = volk_get_index( | |
3017 | 14 | get_machine()->volk_32f_expfast_32f_impl_names, | |
3018 | 14 | get_machine()->volk_32f_expfast_32f_n_impls, | |
3019 | impl_name | ||
3020 | ); | ||
3021 | 14 | get_machine()->volk_32f_expfast_32f_impls[index]( | |
3022 | bVector, aVector, num_points | ||
3023 | ); | ||
3024 | 14 | } | |
3025 | |||
3026 | 282 | volk_func_desc_t volk_32f_expfast_32f_get_func_desc(void) { | |
3027 | 282 | const char **impl_names = get_machine()->volk_32f_expfast_32f_impl_names; | |
3028 | 282 | const int *impl_deps = get_machine()->volk_32f_expfast_32f_impl_deps; | |
3029 | 282 | const bool *alignment = get_machine()->volk_32f_expfast_32f_impl_alignment; | |
3030 | 282 | const size_t n_impls = get_machine()->volk_32f_expfast_32f_n_impls; | |
3031 | 282 | volk_func_desc_t desc = { | |
3032 | impl_names, | ||
3033 | impl_deps, | ||
3034 | alignment, | ||
3035 | n_impls | ||
3036 | }; | ||
3037 | 282 | return desc; | |
3038 | } | ||
3039 | |||
3040 | |||
3041 | |||
3042 | ✗ | static inline void __volk_32f_index_max_16u_d(uint16_t* target, const float* src0, uint32_t num_points) | |
3043 | { | ||
3044 | |||
3045 | ✗ | if (volk_is_aligned( | |
3046 | ✗ | VOLK_OR_PTR(target, | |
3047 | VOLK_OR_PTR(src0, | ||
3048 | 0)) | ||
3049 | )){ | ||
3050 | ✗ | volk_32f_index_max_16u_a(target, src0, num_points); | |
3051 | } | ||
3052 | else{ | ||
3053 | ✗ | volk_32f_index_max_16u_u(target, src0, num_points); | |
3054 | } | ||
3055 | ✗ | } | |
3056 | |||
3057 | ✗ | static inline void __init_volk_32f_index_max_16u(void) | |
3058 | { | ||
3059 | ✗ | const char *name = get_machine()->volk_32f_index_max_16u_name; | |
3060 | ✗ | const char **impl_names = get_machine()->volk_32f_index_max_16u_impl_names; | |
3061 | ✗ | const int *impl_deps = get_machine()->volk_32f_index_max_16u_impl_deps; | |
3062 | ✗ | const bool *alignment = get_machine()->volk_32f_index_max_16u_impl_alignment; | |
3063 | ✗ | const size_t n_impls = get_machine()->volk_32f_index_max_16u_n_impls; | |
3064 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
3065 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
3066 | ✗ | volk_32f_index_max_16u_a = get_machine()->volk_32f_index_max_16u_impls[index_a]; | |
3067 | ✗ | volk_32f_index_max_16u_u = get_machine()->volk_32f_index_max_16u_impls[index_u]; | |
3068 | |||
3069 | ✗ | assert(volk_32f_index_max_16u_a); | |
3070 | ✗ | assert(volk_32f_index_max_16u_u); | |
3071 | |||
3072 | ✗ | volk_32f_index_max_16u = &__volk_32f_index_max_16u_d; | |
3073 | ✗ | } | |
3074 | |||
3075 | ✗ | static inline void __volk_32f_index_max_16u_a(uint16_t* target, const float* src0, uint32_t num_points) | |
3076 | { | ||
3077 | ✗ | __init_volk_32f_index_max_16u(); | |
3078 | ✗ | volk_32f_index_max_16u_a(target, src0, num_points); | |
3079 | ✗ | } | |
3080 | |||
3081 | ✗ | static inline void __volk_32f_index_max_16u_u(uint16_t* target, const float* src0, uint32_t num_points) | |
3082 | { | ||
3083 | ✗ | __init_volk_32f_index_max_16u(); | |
3084 | ✗ | volk_32f_index_max_16u_u(target, src0, num_points); | |
3085 | ✗ | } | |
3086 | |||
3087 | ✗ | static inline void __volk_32f_index_max_16u(uint16_t* target, const float* src0, uint32_t num_points) | |
3088 | { | ||
3089 | ✗ | __init_volk_32f_index_max_16u(); | |
3090 | ✗ | volk_32f_index_max_16u(target, src0, num_points); | |
3091 | ✗ | } | |
3092 | |||
3093 | p_32f_index_max_16u volk_32f_index_max_16u_a = &__volk_32f_index_max_16u_a; | ||
3094 | p_32f_index_max_16u volk_32f_index_max_16u_u = &__volk_32f_index_max_16u_u; | ||
3095 | p_32f_index_max_16u volk_32f_index_max_16u = &__volk_32f_index_max_16u; | ||
3096 | |||
3097 | 10 | void volk_32f_index_max_16u_manual(uint16_t* target, const float* src0, uint32_t num_points, const char* impl_name) | |
3098 | { | ||
3099 | 10 | const int index = volk_get_index( | |
3100 | 10 | get_machine()->volk_32f_index_max_16u_impl_names, | |
3101 | 10 | get_machine()->volk_32f_index_max_16u_n_impls, | |
3102 | impl_name | ||
3103 | ); | ||
3104 | 10 | get_machine()->volk_32f_index_max_16u_impls[index]( | |
3105 | target, src0, num_points | ||
3106 | ); | ||
3107 | 10 | } | |
3108 | |||
3109 | 282 | volk_func_desc_t volk_32f_index_max_16u_get_func_desc(void) { | |
3110 | 282 | const char **impl_names = get_machine()->volk_32f_index_max_16u_impl_names; | |
3111 | 282 | const int *impl_deps = get_machine()->volk_32f_index_max_16u_impl_deps; | |
3112 | 282 | const bool *alignment = get_machine()->volk_32f_index_max_16u_impl_alignment; | |
3113 | 282 | const size_t n_impls = get_machine()->volk_32f_index_max_16u_n_impls; | |
3114 | 282 | volk_func_desc_t desc = { | |
3115 | impl_names, | ||
3116 | impl_deps, | ||
3117 | alignment, | ||
3118 | n_impls | ||
3119 | }; | ||
3120 | 282 | return desc; | |
3121 | } | ||
3122 | |||
3123 | |||
3124 | |||
3125 | ✗ | static inline void __volk_32f_index_max_32u_d(uint32_t* target, const float* src0, uint32_t num_points) | |
3126 | { | ||
3127 | |||
3128 | ✗ | if (volk_is_aligned( | |
3129 | ✗ | VOLK_OR_PTR(target, | |
3130 | VOLK_OR_PTR(src0, | ||
3131 | 0)) | ||
3132 | )){ | ||
3133 | ✗ | volk_32f_index_max_32u_a(target, src0, num_points); | |
3134 | } | ||
3135 | else{ | ||
3136 | ✗ | volk_32f_index_max_32u_u(target, src0, num_points); | |
3137 | } | ||
3138 | ✗ | } | |
3139 | |||
3140 | ✗ | static inline void __init_volk_32f_index_max_32u(void) | |
3141 | { | ||
3142 | ✗ | const char *name = get_machine()->volk_32f_index_max_32u_name; | |
3143 | ✗ | const char **impl_names = get_machine()->volk_32f_index_max_32u_impl_names; | |
3144 | ✗ | const int *impl_deps = get_machine()->volk_32f_index_max_32u_impl_deps; | |
3145 | ✗ | const bool *alignment = get_machine()->volk_32f_index_max_32u_impl_alignment; | |
3146 | ✗ | const size_t n_impls = get_machine()->volk_32f_index_max_32u_n_impls; | |
3147 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
3148 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
3149 | ✗ | volk_32f_index_max_32u_a = get_machine()->volk_32f_index_max_32u_impls[index_a]; | |
3150 | ✗ | volk_32f_index_max_32u_u = get_machine()->volk_32f_index_max_32u_impls[index_u]; | |
3151 | |||
3152 | ✗ | assert(volk_32f_index_max_32u_a); | |
3153 | ✗ | assert(volk_32f_index_max_32u_u); | |
3154 | |||
3155 | ✗ | volk_32f_index_max_32u = &__volk_32f_index_max_32u_d; | |
3156 | ✗ | } | |
3157 | |||
3158 | ✗ | static inline void __volk_32f_index_max_32u_a(uint32_t* target, const float* src0, uint32_t num_points) | |
3159 | { | ||
3160 | ✗ | __init_volk_32f_index_max_32u(); | |
3161 | ✗ | volk_32f_index_max_32u_a(target, src0, num_points); | |
3162 | ✗ | } | |
3163 | |||
3164 | ✗ | static inline void __volk_32f_index_max_32u_u(uint32_t* target, const float* src0, uint32_t num_points) | |
3165 | { | ||
3166 | ✗ | __init_volk_32f_index_max_32u(); | |
3167 | ✗ | volk_32f_index_max_32u_u(target, src0, num_points); | |
3168 | ✗ | } | |
3169 | |||
3170 | ✗ | static inline void __volk_32f_index_max_32u(uint32_t* target, const float* src0, uint32_t num_points) | |
3171 | { | ||
3172 | ✗ | __init_volk_32f_index_max_32u(); | |
3173 | ✗ | volk_32f_index_max_32u(target, src0, num_points); | |
3174 | ✗ | } | |
3175 | |||
3176 | p_32f_index_max_32u volk_32f_index_max_32u_a = &__volk_32f_index_max_32u_a; | ||
3177 | p_32f_index_max_32u volk_32f_index_max_32u_u = &__volk_32f_index_max_32u_u; | ||
3178 | p_32f_index_max_32u volk_32f_index_max_32u = &__volk_32f_index_max_32u; | ||
3179 | |||
3180 | 14 | void volk_32f_index_max_32u_manual(uint32_t* target, const float* src0, uint32_t num_points, const char* impl_name) | |
3181 | { | ||
3182 | 14 | const int index = volk_get_index( | |
3183 | 14 | get_machine()->volk_32f_index_max_32u_impl_names, | |
3184 | 14 | get_machine()->volk_32f_index_max_32u_n_impls, | |
3185 | impl_name | ||
3186 | ); | ||
3187 | 14 | get_machine()->volk_32f_index_max_32u_impls[index]( | |
3188 | target, src0, num_points | ||
3189 | ); | ||
3190 | 14 | } | |
3191 | |||
3192 | 282 | volk_func_desc_t volk_32f_index_max_32u_get_func_desc(void) { | |
3193 | 282 | const char **impl_names = get_machine()->volk_32f_index_max_32u_impl_names; | |
3194 | 282 | const int *impl_deps = get_machine()->volk_32f_index_max_32u_impl_deps; | |
3195 | 282 | const bool *alignment = get_machine()->volk_32f_index_max_32u_impl_alignment; | |
3196 | 282 | const size_t n_impls = get_machine()->volk_32f_index_max_32u_n_impls; | |
3197 | 282 | volk_func_desc_t desc = { | |
3198 | impl_names, | ||
3199 | impl_deps, | ||
3200 | alignment, | ||
3201 | n_impls | ||
3202 | }; | ||
3203 | 282 | return desc; | |
3204 | } | ||
3205 | |||
3206 | |||
3207 | |||
3208 | ✗ | static inline void __volk_32f_index_min_16u_d(uint16_t* target, const float* source, uint32_t num_points) | |
3209 | { | ||
3210 | |||
3211 | ✗ | if (volk_is_aligned( | |
3212 | ✗ | VOLK_OR_PTR(target, | |
3213 | VOLK_OR_PTR(source, | ||
3214 | 0)) | ||
3215 | )){ | ||
3216 | ✗ | volk_32f_index_min_16u_a(target, source, num_points); | |
3217 | } | ||
3218 | else{ | ||
3219 | ✗ | volk_32f_index_min_16u_u(target, source, num_points); | |
3220 | } | ||
3221 | ✗ | } | |
3222 | |||
3223 | ✗ | static inline void __init_volk_32f_index_min_16u(void) | |
3224 | { | ||
3225 | ✗ | const char *name = get_machine()->volk_32f_index_min_16u_name; | |
3226 | ✗ | const char **impl_names = get_machine()->volk_32f_index_min_16u_impl_names; | |
3227 | ✗ | const int *impl_deps = get_machine()->volk_32f_index_min_16u_impl_deps; | |
3228 | ✗ | const bool *alignment = get_machine()->volk_32f_index_min_16u_impl_alignment; | |
3229 | ✗ | const size_t n_impls = get_machine()->volk_32f_index_min_16u_n_impls; | |
3230 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
3231 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
3232 | ✗ | volk_32f_index_min_16u_a = get_machine()->volk_32f_index_min_16u_impls[index_a]; | |
3233 | ✗ | volk_32f_index_min_16u_u = get_machine()->volk_32f_index_min_16u_impls[index_u]; | |
3234 | |||
3235 | ✗ | assert(volk_32f_index_min_16u_a); | |
3236 | ✗ | assert(volk_32f_index_min_16u_u); | |
3237 | |||
3238 | ✗ | volk_32f_index_min_16u = &__volk_32f_index_min_16u_d; | |
3239 | ✗ | } | |
3240 | |||
3241 | ✗ | static inline void __volk_32f_index_min_16u_a(uint16_t* target, const float* source, uint32_t num_points) | |
3242 | { | ||
3243 | ✗ | __init_volk_32f_index_min_16u(); | |
3244 | ✗ | volk_32f_index_min_16u_a(target, source, num_points); | |
3245 | ✗ | } | |
3246 | |||
3247 | ✗ | static inline void __volk_32f_index_min_16u_u(uint16_t* target, const float* source, uint32_t num_points) | |
3248 | { | ||
3249 | ✗ | __init_volk_32f_index_min_16u(); | |
3250 | ✗ | volk_32f_index_min_16u_u(target, source, num_points); | |
3251 | ✗ | } | |
3252 | |||
3253 | ✗ | static inline void __volk_32f_index_min_16u(uint16_t* target, const float* source, uint32_t num_points) | |
3254 | { | ||
3255 | ✗ | __init_volk_32f_index_min_16u(); | |
3256 | ✗ | volk_32f_index_min_16u(target, source, num_points); | |
3257 | ✗ | } | |
3258 | |||
3259 | p_32f_index_min_16u volk_32f_index_min_16u_a = &__volk_32f_index_min_16u_a; | ||
3260 | p_32f_index_min_16u volk_32f_index_min_16u_u = &__volk_32f_index_min_16u_u; | ||
3261 | p_32f_index_min_16u volk_32f_index_min_16u = &__volk_32f_index_min_16u; | ||
3262 | |||
3263 | 10 | void volk_32f_index_min_16u_manual(uint16_t* target, const float* source, uint32_t num_points, const char* impl_name) | |
3264 | { | ||
3265 | 10 | const int index = volk_get_index( | |
3266 | 10 | get_machine()->volk_32f_index_min_16u_impl_names, | |
3267 | 10 | get_machine()->volk_32f_index_min_16u_n_impls, | |
3268 | impl_name | ||
3269 | ); | ||
3270 | 10 | get_machine()->volk_32f_index_min_16u_impls[index]( | |
3271 | target, source, num_points | ||
3272 | ); | ||
3273 | 10 | } | |
3274 | |||
3275 | 282 | volk_func_desc_t volk_32f_index_min_16u_get_func_desc(void) { | |
3276 | 282 | const char **impl_names = get_machine()->volk_32f_index_min_16u_impl_names; | |
3277 | 282 | const int *impl_deps = get_machine()->volk_32f_index_min_16u_impl_deps; | |
3278 | 282 | const bool *alignment = get_machine()->volk_32f_index_min_16u_impl_alignment; | |
3279 | 282 | const size_t n_impls = get_machine()->volk_32f_index_min_16u_n_impls; | |
3280 | 282 | volk_func_desc_t desc = { | |
3281 | impl_names, | ||
3282 | impl_deps, | ||
3283 | alignment, | ||
3284 | n_impls | ||
3285 | }; | ||
3286 | 282 | return desc; | |
3287 | } | ||
3288 | |||
3289 | |||
3290 | |||
3291 | ✗ | static inline void __volk_32f_index_min_32u_d(uint32_t* target, const float* source, uint32_t num_points) | |
3292 | { | ||
3293 | |||
3294 | ✗ | if (volk_is_aligned( | |
3295 | ✗ | VOLK_OR_PTR(target, | |
3296 | VOLK_OR_PTR(source, | ||
3297 | 0)) | ||
3298 | )){ | ||
3299 | ✗ | volk_32f_index_min_32u_a(target, source, num_points); | |
3300 | } | ||
3301 | else{ | ||
3302 | ✗ | volk_32f_index_min_32u_u(target, source, num_points); | |
3303 | } | ||
3304 | ✗ | } | |
3305 | |||
3306 | ✗ | static inline void __init_volk_32f_index_min_32u(void) | |
3307 | { | ||
3308 | ✗ | const char *name = get_machine()->volk_32f_index_min_32u_name; | |
3309 | ✗ | const char **impl_names = get_machine()->volk_32f_index_min_32u_impl_names; | |
3310 | ✗ | const int *impl_deps = get_machine()->volk_32f_index_min_32u_impl_deps; | |
3311 | ✗ | const bool *alignment = get_machine()->volk_32f_index_min_32u_impl_alignment; | |
3312 | ✗ | const size_t n_impls = get_machine()->volk_32f_index_min_32u_n_impls; | |
3313 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
3314 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
3315 | ✗ | volk_32f_index_min_32u_a = get_machine()->volk_32f_index_min_32u_impls[index_a]; | |
3316 | ✗ | volk_32f_index_min_32u_u = get_machine()->volk_32f_index_min_32u_impls[index_u]; | |
3317 | |||
3318 | ✗ | assert(volk_32f_index_min_32u_a); | |
3319 | ✗ | assert(volk_32f_index_min_32u_u); | |
3320 | |||
3321 | ✗ | volk_32f_index_min_32u = &__volk_32f_index_min_32u_d; | |
3322 | ✗ | } | |
3323 | |||
3324 | ✗ | static inline void __volk_32f_index_min_32u_a(uint32_t* target, const float* source, uint32_t num_points) | |
3325 | { | ||
3326 | ✗ | __init_volk_32f_index_min_32u(); | |
3327 | ✗ | volk_32f_index_min_32u_a(target, source, num_points); | |
3328 | ✗ | } | |
3329 | |||
3330 | ✗ | static inline void __volk_32f_index_min_32u_u(uint32_t* target, const float* source, uint32_t num_points) | |
3331 | { | ||
3332 | ✗ | __init_volk_32f_index_min_32u(); | |
3333 | ✗ | volk_32f_index_min_32u_u(target, source, num_points); | |
3334 | ✗ | } | |
3335 | |||
3336 | ✗ | static inline void __volk_32f_index_min_32u(uint32_t* target, const float* source, uint32_t num_points) | |
3337 | { | ||
3338 | ✗ | __init_volk_32f_index_min_32u(); | |
3339 | ✗ | volk_32f_index_min_32u(target, source, num_points); | |
3340 | ✗ | } | |
3341 | |||
3342 | p_32f_index_min_32u volk_32f_index_min_32u_a = &__volk_32f_index_min_32u_a; | ||
3343 | p_32f_index_min_32u volk_32f_index_min_32u_u = &__volk_32f_index_min_32u_u; | ||
3344 | p_32f_index_min_32u volk_32f_index_min_32u = &__volk_32f_index_min_32u; | ||
3345 | |||
3346 | 14 | void volk_32f_index_min_32u_manual(uint32_t* target, const float* source, uint32_t num_points, const char* impl_name) | |
3347 | { | ||
3348 | 14 | const int index = volk_get_index( | |
3349 | 14 | get_machine()->volk_32f_index_min_32u_impl_names, | |
3350 | 14 | get_machine()->volk_32f_index_min_32u_n_impls, | |
3351 | impl_name | ||
3352 | ); | ||
3353 | 14 | get_machine()->volk_32f_index_min_32u_impls[index]( | |
3354 | target, source, num_points | ||
3355 | ); | ||
3356 | 14 | } | |
3357 | |||
3358 | 282 | volk_func_desc_t volk_32f_index_min_32u_get_func_desc(void) { | |
3359 | 282 | const char **impl_names = get_machine()->volk_32f_index_min_32u_impl_names; | |
3360 | 282 | const int *impl_deps = get_machine()->volk_32f_index_min_32u_impl_deps; | |
3361 | 282 | const bool *alignment = get_machine()->volk_32f_index_min_32u_impl_alignment; | |
3362 | 282 | const size_t n_impls = get_machine()->volk_32f_index_min_32u_n_impls; | |
3363 | 282 | volk_func_desc_t desc = { | |
3364 | impl_names, | ||
3365 | impl_deps, | ||
3366 | alignment, | ||
3367 | n_impls | ||
3368 | }; | ||
3369 | 282 | return desc; | |
3370 | } | ||
3371 | |||
3372 | |||
3373 | |||
3374 | ✗ | static inline void __volk_32f_invsqrt_32f_d(float* cVector, const float* aVector, unsigned int num_points) | |
3375 | { | ||
3376 | |||
3377 | ✗ | if (volk_is_aligned( | |
3378 | ✗ | VOLK_OR_PTR(cVector, | |
3379 | VOLK_OR_PTR(aVector, | ||
3380 | 0)) | ||
3381 | )){ | ||
3382 | ✗ | volk_32f_invsqrt_32f_a(cVector, aVector, num_points); | |
3383 | } | ||
3384 | else{ | ||
3385 | ✗ | volk_32f_invsqrt_32f_u(cVector, aVector, num_points); | |
3386 | } | ||
3387 | ✗ | } | |
3388 | |||
3389 | ✗ | static inline void __init_volk_32f_invsqrt_32f(void) | |
3390 | { | ||
3391 | ✗ | const char *name = get_machine()->volk_32f_invsqrt_32f_name; | |
3392 | ✗ | const char **impl_names = get_machine()->volk_32f_invsqrt_32f_impl_names; | |
3393 | ✗ | const int *impl_deps = get_machine()->volk_32f_invsqrt_32f_impl_deps; | |
3394 | ✗ | const bool *alignment = get_machine()->volk_32f_invsqrt_32f_impl_alignment; | |
3395 | ✗ | const size_t n_impls = get_machine()->volk_32f_invsqrt_32f_n_impls; | |
3396 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
3397 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
3398 | ✗ | volk_32f_invsqrt_32f_a = get_machine()->volk_32f_invsqrt_32f_impls[index_a]; | |
3399 | ✗ | volk_32f_invsqrt_32f_u = get_machine()->volk_32f_invsqrt_32f_impls[index_u]; | |
3400 | |||
3401 | ✗ | assert(volk_32f_invsqrt_32f_a); | |
3402 | ✗ | assert(volk_32f_invsqrt_32f_u); | |
3403 | |||
3404 | ✗ | volk_32f_invsqrt_32f = &__volk_32f_invsqrt_32f_d; | |
3405 | ✗ | } | |
3406 | |||
3407 | ✗ | static inline void __volk_32f_invsqrt_32f_a(float* cVector, const float* aVector, unsigned int num_points) | |
3408 | { | ||
3409 | ✗ | __init_volk_32f_invsqrt_32f(); | |
3410 | ✗ | volk_32f_invsqrt_32f_a(cVector, aVector, num_points); | |
3411 | ✗ | } | |
3412 | |||
3413 | ✗ | static inline void __volk_32f_invsqrt_32f_u(float* cVector, const float* aVector, unsigned int num_points) | |
3414 | { | ||
3415 | ✗ | __init_volk_32f_invsqrt_32f(); | |
3416 | ✗ | volk_32f_invsqrt_32f_u(cVector, aVector, num_points); | |
3417 | ✗ | } | |
3418 | |||
3419 | ✗ | static inline void __volk_32f_invsqrt_32f(float* cVector, const float* aVector, unsigned int num_points) | |
3420 | { | ||
3421 | ✗ | __init_volk_32f_invsqrt_32f(); | |
3422 | ✗ | volk_32f_invsqrt_32f(cVector, aVector, num_points); | |
3423 | ✗ | } | |
3424 | |||
3425 | p_32f_invsqrt_32f volk_32f_invsqrt_32f_a = &__volk_32f_invsqrt_32f_a; | ||
3426 | p_32f_invsqrt_32f volk_32f_invsqrt_32f_u = &__volk_32f_invsqrt_32f_u; | ||
3427 | p_32f_invsqrt_32f volk_32f_invsqrt_32f = &__volk_32f_invsqrt_32f; | ||
3428 | |||
3429 | ✗ | void volk_32f_invsqrt_32f_manual(float* cVector, const float* aVector, unsigned int num_points, const char* impl_name) | |
3430 | { | ||
3431 | ✗ | const int index = volk_get_index( | |
3432 | ✗ | get_machine()->volk_32f_invsqrt_32f_impl_names, | |
3433 | ✗ | get_machine()->volk_32f_invsqrt_32f_n_impls, | |
3434 | impl_name | ||
3435 | ); | ||
3436 | ✗ | get_machine()->volk_32f_invsqrt_32f_impls[index]( | |
3437 | cVector, aVector, num_points | ||
3438 | ); | ||
3439 | ✗ | } | |
3440 | |||
3441 | ✗ | volk_func_desc_t volk_32f_invsqrt_32f_get_func_desc(void) { | |
3442 | ✗ | const char **impl_names = get_machine()->volk_32f_invsqrt_32f_impl_names; | |
3443 | ✗ | const int *impl_deps = get_machine()->volk_32f_invsqrt_32f_impl_deps; | |
3444 | ✗ | const bool *alignment = get_machine()->volk_32f_invsqrt_32f_impl_alignment; | |
3445 | ✗ | const size_t n_impls = get_machine()->volk_32f_invsqrt_32f_n_impls; | |
3446 | ✗ | volk_func_desc_t desc = { | |
3447 | impl_names, | ||
3448 | impl_deps, | ||
3449 | alignment, | ||
3450 | n_impls | ||
3451 | }; | ||
3452 | ✗ | return desc; | |
3453 | } | ||
3454 | |||
3455 | |||
3456 | |||
3457 | 2 | static inline void __volk_32f_log2_32f_d(float* bVector, const float* aVector, unsigned int num_points) | |
3458 | { | ||
3459 | |||
3460 |
1/2✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
|
2 | if (volk_is_aligned( |
3461 | 2 | VOLK_OR_PTR(bVector, | |
3462 | VOLK_OR_PTR(aVector, | ||
3463 | 0)) | ||
3464 | )){ | ||
3465 | 2 | volk_32f_log2_32f_a(bVector, aVector, num_points); | |
3466 | } | ||
3467 | else{ | ||
3468 | ✗ | volk_32f_log2_32f_u(bVector, aVector, num_points); | |
3469 | } | ||
3470 | 2 | } | |
3471 | |||
3472 | 2 | static inline void __init_volk_32f_log2_32f(void) | |
3473 | { | ||
3474 | 2 | const char *name = get_machine()->volk_32f_log2_32f_name; | |
3475 | 2 | const char **impl_names = get_machine()->volk_32f_log2_32f_impl_names; | |
3476 | 2 | const int *impl_deps = get_machine()->volk_32f_log2_32f_impl_deps; | |
3477 | 2 | const bool *alignment = get_machine()->volk_32f_log2_32f_impl_alignment; | |
3478 | 2 | const size_t n_impls = get_machine()->volk_32f_log2_32f_n_impls; | |
3479 | 2 | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
3480 | 2 | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
3481 | 2 | volk_32f_log2_32f_a = get_machine()->volk_32f_log2_32f_impls[index_a]; | |
3482 | 2 | volk_32f_log2_32f_u = get_machine()->volk_32f_log2_32f_impls[index_u]; | |
3483 | |||
3484 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 2 times.
|
2 | assert(volk_32f_log2_32f_a); |
3485 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 2 times.
|
2 | assert(volk_32f_log2_32f_u); |
3486 | |||
3487 | 2 | volk_32f_log2_32f = &__volk_32f_log2_32f_d; | |
3488 | 2 | } | |
3489 | |||
3490 | ✗ | static inline void __volk_32f_log2_32f_a(float* bVector, const float* aVector, unsigned int num_points) | |
3491 | { | ||
3492 | ✗ | __init_volk_32f_log2_32f(); | |
3493 | ✗ | volk_32f_log2_32f_a(bVector, aVector, num_points); | |
3494 | ✗ | } | |
3495 | |||
3496 | ✗ | static inline void __volk_32f_log2_32f_u(float* bVector, const float* aVector, unsigned int num_points) | |
3497 | { | ||
3498 | ✗ | __init_volk_32f_log2_32f(); | |
3499 | ✗ | volk_32f_log2_32f_u(bVector, aVector, num_points); | |
3500 | ✗ | } | |
3501 | |||
3502 | 2 | static inline void __volk_32f_log2_32f(float* bVector, const float* aVector, unsigned int num_points) | |
3503 | { | ||
3504 | 2 | __init_volk_32f_log2_32f(); | |
3505 | 2 | volk_32f_log2_32f(bVector, aVector, num_points); | |
3506 | 2 | } | |
3507 | |||
3508 | p_32f_log2_32f volk_32f_log2_32f_a = &__volk_32f_log2_32f_a; | ||
3509 | p_32f_log2_32f volk_32f_log2_32f_u = &__volk_32f_log2_32f_u; | ||
3510 | p_32f_log2_32f volk_32f_log2_32f = &__volk_32f_log2_32f; | ||
3511 | |||
3512 | 16 | void volk_32f_log2_32f_manual(float* bVector, const float* aVector, unsigned int num_points, const char* impl_name) | |
3513 | { | ||
3514 | 16 | const int index = volk_get_index( | |
3515 | 16 | get_machine()->volk_32f_log2_32f_impl_names, | |
3516 | 16 | get_machine()->volk_32f_log2_32f_n_impls, | |
3517 | impl_name | ||
3518 | ); | ||
3519 | 16 | get_machine()->volk_32f_log2_32f_impls[index]( | |
3520 | bVector, aVector, num_points | ||
3521 | ); | ||
3522 | 16 | } | |
3523 | |||
3524 | 282 | volk_func_desc_t volk_32f_log2_32f_get_func_desc(void) { | |
3525 | 282 | const char **impl_names = get_machine()->volk_32f_log2_32f_impl_names; | |
3526 | 282 | const int *impl_deps = get_machine()->volk_32f_log2_32f_impl_deps; | |
3527 | 282 | const bool *alignment = get_machine()->volk_32f_log2_32f_impl_alignment; | |
3528 | 282 | const size_t n_impls = get_machine()->volk_32f_log2_32f_n_impls; | |
3529 | 282 | volk_func_desc_t desc = { | |
3530 | impl_names, | ||
3531 | impl_deps, | ||
3532 | alignment, | ||
3533 | n_impls | ||
3534 | }; | ||
3535 | 282 | return desc; | |
3536 | } | ||
3537 | |||
3538 | |||
3539 | |||
3540 | ✗ | static inline void __volk_32f_null_32f_d(float* bVector, const float* aVector, unsigned int num_points) | |
3541 | { | ||
3542 | |||
3543 | ✗ | if (volk_is_aligned( | |
3544 | ✗ | VOLK_OR_PTR(bVector, | |
3545 | VOLK_OR_PTR(aVector, | ||
3546 | 0)) | ||
3547 | )){ | ||
3548 | ✗ | volk_32f_null_32f_a(bVector, aVector, num_points); | |
3549 | } | ||
3550 | else{ | ||
3551 | ✗ | volk_32f_null_32f_u(bVector, aVector, num_points); | |
3552 | } | ||
3553 | ✗ | } | |
3554 | |||
3555 | ✗ | static inline void __init_volk_32f_null_32f(void) | |
3556 | { | ||
3557 | ✗ | const char *name = get_machine()->volk_32f_null_32f_name; | |
3558 | ✗ | const char **impl_names = get_machine()->volk_32f_null_32f_impl_names; | |
3559 | ✗ | const int *impl_deps = get_machine()->volk_32f_null_32f_impl_deps; | |
3560 | ✗ | const bool *alignment = get_machine()->volk_32f_null_32f_impl_alignment; | |
3561 | ✗ | const size_t n_impls = get_machine()->volk_32f_null_32f_n_impls; | |
3562 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
3563 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
3564 | ✗ | volk_32f_null_32f_a = get_machine()->volk_32f_null_32f_impls[index_a]; | |
3565 | ✗ | volk_32f_null_32f_u = get_machine()->volk_32f_null_32f_impls[index_u]; | |
3566 | |||
3567 | ✗ | assert(volk_32f_null_32f_a); | |
3568 | ✗ | assert(volk_32f_null_32f_u); | |
3569 | |||
3570 | ✗ | volk_32f_null_32f = &__volk_32f_null_32f_d; | |
3571 | ✗ | } | |
3572 | |||
3573 | ✗ | static inline void __volk_32f_null_32f_a(float* bVector, const float* aVector, unsigned int num_points) | |
3574 | { | ||
3575 | ✗ | __init_volk_32f_null_32f(); | |
3576 | ✗ | volk_32f_null_32f_a(bVector, aVector, num_points); | |
3577 | ✗ | } | |
3578 | |||
3579 | ✗ | static inline void __volk_32f_null_32f_u(float* bVector, const float* aVector, unsigned int num_points) | |
3580 | { | ||
3581 | ✗ | __init_volk_32f_null_32f(); | |
3582 | ✗ | volk_32f_null_32f_u(bVector, aVector, num_points); | |
3583 | ✗ | } | |
3584 | |||
3585 | ✗ | static inline void __volk_32f_null_32f(float* bVector, const float* aVector, unsigned int num_points) | |
3586 | { | ||
3587 | ✗ | __init_volk_32f_null_32f(); | |
3588 | ✗ | volk_32f_null_32f(bVector, aVector, num_points); | |
3589 | ✗ | } | |
3590 | |||
3591 | p_32f_null_32f volk_32f_null_32f_a = &__volk_32f_null_32f_a; | ||
3592 | p_32f_null_32f volk_32f_null_32f_u = &__volk_32f_null_32f_u; | ||
3593 | p_32f_null_32f volk_32f_null_32f = &__volk_32f_null_32f; | ||
3594 | |||
3595 | ✗ | void volk_32f_null_32f_manual(float* bVector, const float* aVector, unsigned int num_points, const char* impl_name) | |
3596 | { | ||
3597 | ✗ | const int index = volk_get_index( | |
3598 | ✗ | get_machine()->volk_32f_null_32f_impl_names, | |
3599 | ✗ | get_machine()->volk_32f_null_32f_n_impls, | |
3600 | impl_name | ||
3601 | ); | ||
3602 | ✗ | get_machine()->volk_32f_null_32f_impls[index]( | |
3603 | bVector, aVector, num_points | ||
3604 | ); | ||
3605 | ✗ | } | |
3606 | |||
3607 | ✗ | volk_func_desc_t volk_32f_null_32f_get_func_desc(void) { | |
3608 | ✗ | const char **impl_names = get_machine()->volk_32f_null_32f_impl_names; | |
3609 | ✗ | const int *impl_deps = get_machine()->volk_32f_null_32f_impl_deps; | |
3610 | ✗ | const bool *alignment = get_machine()->volk_32f_null_32f_impl_alignment; | |
3611 | ✗ | const size_t n_impls = get_machine()->volk_32f_null_32f_n_impls; | |
3612 | ✗ | volk_func_desc_t desc = { | |
3613 | impl_names, | ||
3614 | impl_deps, | ||
3615 | alignment, | ||
3616 | n_impls | ||
3617 | }; | ||
3618 | ✗ | return desc; | |
3619 | } | ||
3620 | |||
3621 | |||
3622 | |||
3623 | ✗ | static inline void __volk_32f_s32f_32f_fm_detect_32f_d(float* outputVector, const float* inputVector, const float bound, float* saveValue, unsigned int num_points) | |
3624 | { | ||
3625 | |||
3626 | ✗ | if (volk_is_aligned( | |
3627 | ✗ | VOLK_OR_PTR(outputVector, | |
3628 | VOLK_OR_PTR(inputVector, | ||
3629 | VOLK_OR_PTR(saveValue, | ||
3630 | 0))) | ||
3631 | )){ | ||
3632 | ✗ | volk_32f_s32f_32f_fm_detect_32f_a(outputVector, inputVector, bound, saveValue, num_points); | |
3633 | } | ||
3634 | else{ | ||
3635 | ✗ | volk_32f_s32f_32f_fm_detect_32f_u(outputVector, inputVector, bound, saveValue, num_points); | |
3636 | } | ||
3637 | ✗ | } | |
3638 | |||
3639 | ✗ | static inline void __init_volk_32f_s32f_32f_fm_detect_32f(void) | |
3640 | { | ||
3641 | ✗ | const char *name = get_machine()->volk_32f_s32f_32f_fm_detect_32f_name; | |
3642 | ✗ | const char **impl_names = get_machine()->volk_32f_s32f_32f_fm_detect_32f_impl_names; | |
3643 | ✗ | const int *impl_deps = get_machine()->volk_32f_s32f_32f_fm_detect_32f_impl_deps; | |
3644 | ✗ | const bool *alignment = get_machine()->volk_32f_s32f_32f_fm_detect_32f_impl_alignment; | |
3645 | ✗ | const size_t n_impls = get_machine()->volk_32f_s32f_32f_fm_detect_32f_n_impls; | |
3646 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
3647 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
3648 | ✗ | volk_32f_s32f_32f_fm_detect_32f_a = get_machine()->volk_32f_s32f_32f_fm_detect_32f_impls[index_a]; | |
3649 | ✗ | volk_32f_s32f_32f_fm_detect_32f_u = get_machine()->volk_32f_s32f_32f_fm_detect_32f_impls[index_u]; | |
3650 | |||
3651 | ✗ | assert(volk_32f_s32f_32f_fm_detect_32f_a); | |
3652 | ✗ | assert(volk_32f_s32f_32f_fm_detect_32f_u); | |
3653 | |||
3654 | ✗ | volk_32f_s32f_32f_fm_detect_32f = &__volk_32f_s32f_32f_fm_detect_32f_d; | |
3655 | ✗ | } | |
3656 | |||
3657 | ✗ | static inline void __volk_32f_s32f_32f_fm_detect_32f_a(float* outputVector, const float* inputVector, const float bound, float* saveValue, unsigned int num_points) | |
3658 | { | ||
3659 | ✗ | __init_volk_32f_s32f_32f_fm_detect_32f(); | |
3660 | ✗ | volk_32f_s32f_32f_fm_detect_32f_a(outputVector, inputVector, bound, saveValue, num_points); | |
3661 | ✗ | } | |
3662 | |||
3663 | ✗ | static inline void __volk_32f_s32f_32f_fm_detect_32f_u(float* outputVector, const float* inputVector, const float bound, float* saveValue, unsigned int num_points) | |
3664 | { | ||
3665 | ✗ | __init_volk_32f_s32f_32f_fm_detect_32f(); | |
3666 | ✗ | volk_32f_s32f_32f_fm_detect_32f_u(outputVector, inputVector, bound, saveValue, num_points); | |
3667 | ✗ | } | |
3668 | |||
3669 | ✗ | static inline void __volk_32f_s32f_32f_fm_detect_32f(float* outputVector, const float* inputVector, const float bound, float* saveValue, unsigned int num_points) | |
3670 | { | ||
3671 | ✗ | __init_volk_32f_s32f_32f_fm_detect_32f(); | |
3672 | ✗ | volk_32f_s32f_32f_fm_detect_32f(outputVector, inputVector, bound, saveValue, num_points); | |
3673 | ✗ | } | |
3674 | |||
3675 | p_32f_s32f_32f_fm_detect_32f volk_32f_s32f_32f_fm_detect_32f_a = &__volk_32f_s32f_32f_fm_detect_32f_a; | ||
3676 | p_32f_s32f_32f_fm_detect_32f volk_32f_s32f_32f_fm_detect_32f_u = &__volk_32f_s32f_32f_fm_detect_32f_u; | ||
3677 | p_32f_s32f_32f_fm_detect_32f volk_32f_s32f_32f_fm_detect_32f = &__volk_32f_s32f_32f_fm_detect_32f; | ||
3678 | |||
3679 | ✗ | void volk_32f_s32f_32f_fm_detect_32f_manual(float* outputVector, const float* inputVector, const float bound, float* saveValue, unsigned int num_points, const char* impl_name) | |
3680 | { | ||
3681 | ✗ | const int index = volk_get_index( | |
3682 | ✗ | get_machine()->volk_32f_s32f_32f_fm_detect_32f_impl_names, | |
3683 | ✗ | get_machine()->volk_32f_s32f_32f_fm_detect_32f_n_impls, | |
3684 | impl_name | ||
3685 | ); | ||
3686 | ✗ | get_machine()->volk_32f_s32f_32f_fm_detect_32f_impls[index]( | |
3687 | outputVector, inputVector, bound, saveValue, num_points | ||
3688 | ); | ||
3689 | ✗ | } | |
3690 | |||
3691 | ✗ | volk_func_desc_t volk_32f_s32f_32f_fm_detect_32f_get_func_desc(void) { | |
3692 | ✗ | const char **impl_names = get_machine()->volk_32f_s32f_32f_fm_detect_32f_impl_names; | |
3693 | ✗ | const int *impl_deps = get_machine()->volk_32f_s32f_32f_fm_detect_32f_impl_deps; | |
3694 | ✗ | const bool *alignment = get_machine()->volk_32f_s32f_32f_fm_detect_32f_impl_alignment; | |
3695 | ✗ | const size_t n_impls = get_machine()->volk_32f_s32f_32f_fm_detect_32f_n_impls; | |
3696 | ✗ | volk_func_desc_t desc = { | |
3697 | impl_names, | ||
3698 | impl_deps, | ||
3699 | alignment, | ||
3700 | n_impls | ||
3701 | }; | ||
3702 | ✗ | return desc; | |
3703 | } | ||
3704 | |||
3705 | |||
3706 | |||
3707 | ✗ | static inline void __volk_32f_s32f_add_32f_d(float* cVector, const float* aVector, const float scalar, unsigned int num_points) | |
3708 | { | ||
3709 | |||
3710 | ✗ | if (volk_is_aligned( | |
3711 | ✗ | VOLK_OR_PTR(cVector, | |
3712 | VOLK_OR_PTR(aVector, | ||
3713 | 0)) | ||
3714 | )){ | ||
3715 | ✗ | volk_32f_s32f_add_32f_a(cVector, aVector, scalar, num_points); | |
3716 | } | ||
3717 | else{ | ||
3718 | ✗ | volk_32f_s32f_add_32f_u(cVector, aVector, scalar, num_points); | |
3719 | } | ||
3720 | ✗ | } | |
3721 | |||
3722 | ✗ | static inline void __init_volk_32f_s32f_add_32f(void) | |
3723 | { | ||
3724 | ✗ | const char *name = get_machine()->volk_32f_s32f_add_32f_name; | |
3725 | ✗ | const char **impl_names = get_machine()->volk_32f_s32f_add_32f_impl_names; | |
3726 | ✗ | const int *impl_deps = get_machine()->volk_32f_s32f_add_32f_impl_deps; | |
3727 | ✗ | const bool *alignment = get_machine()->volk_32f_s32f_add_32f_impl_alignment; | |
3728 | ✗ | const size_t n_impls = get_machine()->volk_32f_s32f_add_32f_n_impls; | |
3729 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
3730 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
3731 | ✗ | volk_32f_s32f_add_32f_a = get_machine()->volk_32f_s32f_add_32f_impls[index_a]; | |
3732 | ✗ | volk_32f_s32f_add_32f_u = get_machine()->volk_32f_s32f_add_32f_impls[index_u]; | |
3733 | |||
3734 | ✗ | assert(volk_32f_s32f_add_32f_a); | |
3735 | ✗ | assert(volk_32f_s32f_add_32f_u); | |
3736 | |||
3737 | ✗ | volk_32f_s32f_add_32f = &__volk_32f_s32f_add_32f_d; | |
3738 | ✗ | } | |
3739 | |||
3740 | ✗ | static inline void __volk_32f_s32f_add_32f_a(float* cVector, const float* aVector, const float scalar, unsigned int num_points) | |
3741 | { | ||
3742 | ✗ | __init_volk_32f_s32f_add_32f(); | |
3743 | ✗ | volk_32f_s32f_add_32f_a(cVector, aVector, scalar, num_points); | |
3744 | ✗ | } | |
3745 | |||
3746 | ✗ | static inline void __volk_32f_s32f_add_32f_u(float* cVector, const float* aVector, const float scalar, unsigned int num_points) | |
3747 | { | ||
3748 | ✗ | __init_volk_32f_s32f_add_32f(); | |
3749 | ✗ | volk_32f_s32f_add_32f_u(cVector, aVector, scalar, num_points); | |
3750 | ✗ | } | |
3751 | |||
3752 | ✗ | static inline void __volk_32f_s32f_add_32f(float* cVector, const float* aVector, const float scalar, unsigned int num_points) | |
3753 | { | ||
3754 | ✗ | __init_volk_32f_s32f_add_32f(); | |
3755 | ✗ | volk_32f_s32f_add_32f(cVector, aVector, scalar, num_points); | |
3756 | ✗ | } | |
3757 | |||
3758 | p_32f_s32f_add_32f volk_32f_s32f_add_32f_a = &__volk_32f_s32f_add_32f_a; | ||
3759 | p_32f_s32f_add_32f volk_32f_s32f_add_32f_u = &__volk_32f_s32f_add_32f_u; | ||
3760 | p_32f_s32f_add_32f volk_32f_s32f_add_32f = &__volk_32f_s32f_add_32f; | ||
3761 | |||
3762 | 12 | void volk_32f_s32f_add_32f_manual(float* cVector, const float* aVector, const float scalar, unsigned int num_points, const char* impl_name) | |
3763 | { | ||
3764 | 12 | const int index = volk_get_index( | |
3765 | 12 | get_machine()->volk_32f_s32f_add_32f_impl_names, | |
3766 | 12 | get_machine()->volk_32f_s32f_add_32f_n_impls, | |
3767 | impl_name | ||
3768 | ); | ||
3769 | 12 | get_machine()->volk_32f_s32f_add_32f_impls[index]( | |
3770 | cVector, aVector, scalar, num_points | ||
3771 | ); | ||
3772 | 12 | } | |
3773 | |||
3774 | 282 | volk_func_desc_t volk_32f_s32f_add_32f_get_func_desc(void) { | |
3775 | 282 | const char **impl_names = get_machine()->volk_32f_s32f_add_32f_impl_names; | |
3776 | 282 | const int *impl_deps = get_machine()->volk_32f_s32f_add_32f_impl_deps; | |
3777 | 282 | const bool *alignment = get_machine()->volk_32f_s32f_add_32f_impl_alignment; | |
3778 | 282 | const size_t n_impls = get_machine()->volk_32f_s32f_add_32f_n_impls; | |
3779 | 282 | volk_func_desc_t desc = { | |
3780 | impl_names, | ||
3781 | impl_deps, | ||
3782 | alignment, | ||
3783 | n_impls | ||
3784 | }; | ||
3785 | 282 | return desc; | |
3786 | } | ||
3787 | |||
3788 | |||
3789 | |||
3790 | ✗ | static inline void __volk_32f_s32f_calc_spectral_noise_floor_32f_d(float* noiseFloorAmplitude, const float* realDataPoints, const float spectralExclusionValue, const unsigned int num_points) | |
3791 | { | ||
3792 | |||
3793 | ✗ | if (volk_is_aligned( | |
3794 | ✗ | VOLK_OR_PTR(noiseFloorAmplitude, | |
3795 | VOLK_OR_PTR(realDataPoints, | ||
3796 | 0)) | ||
3797 | )){ | ||
3798 | ✗ | volk_32f_s32f_calc_spectral_noise_floor_32f_a(noiseFloorAmplitude, realDataPoints, spectralExclusionValue, num_points); | |
3799 | } | ||
3800 | else{ | ||
3801 | ✗ | volk_32f_s32f_calc_spectral_noise_floor_32f_u(noiseFloorAmplitude, realDataPoints, spectralExclusionValue, num_points); | |
3802 | } | ||
3803 | ✗ | } | |
3804 | |||
3805 | ✗ | static inline void __init_volk_32f_s32f_calc_spectral_noise_floor_32f(void) | |
3806 | { | ||
3807 | ✗ | const char *name = get_machine()->volk_32f_s32f_calc_spectral_noise_floor_32f_name; | |
3808 | ✗ | const char **impl_names = get_machine()->volk_32f_s32f_calc_spectral_noise_floor_32f_impl_names; | |
3809 | ✗ | const int *impl_deps = get_machine()->volk_32f_s32f_calc_spectral_noise_floor_32f_impl_deps; | |
3810 | ✗ | const bool *alignment = get_machine()->volk_32f_s32f_calc_spectral_noise_floor_32f_impl_alignment; | |
3811 | ✗ | const size_t n_impls = get_machine()->volk_32f_s32f_calc_spectral_noise_floor_32f_n_impls; | |
3812 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
3813 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
3814 | ✗ | volk_32f_s32f_calc_spectral_noise_floor_32f_a = get_machine()->volk_32f_s32f_calc_spectral_noise_floor_32f_impls[index_a]; | |
3815 | ✗ | volk_32f_s32f_calc_spectral_noise_floor_32f_u = get_machine()->volk_32f_s32f_calc_spectral_noise_floor_32f_impls[index_u]; | |
3816 | |||
3817 | ✗ | assert(volk_32f_s32f_calc_spectral_noise_floor_32f_a); | |
3818 | ✗ | assert(volk_32f_s32f_calc_spectral_noise_floor_32f_u); | |
3819 | |||
3820 | ✗ | volk_32f_s32f_calc_spectral_noise_floor_32f = &__volk_32f_s32f_calc_spectral_noise_floor_32f_d; | |
3821 | ✗ | } | |
3822 | |||
3823 | ✗ | static inline void __volk_32f_s32f_calc_spectral_noise_floor_32f_a(float* noiseFloorAmplitude, const float* realDataPoints, const float spectralExclusionValue, const unsigned int num_points) | |
3824 | { | ||
3825 | ✗ | __init_volk_32f_s32f_calc_spectral_noise_floor_32f(); | |
3826 | ✗ | volk_32f_s32f_calc_spectral_noise_floor_32f_a(noiseFloorAmplitude, realDataPoints, spectralExclusionValue, num_points); | |
3827 | ✗ | } | |
3828 | |||
3829 | ✗ | static inline void __volk_32f_s32f_calc_spectral_noise_floor_32f_u(float* noiseFloorAmplitude, const float* realDataPoints, const float spectralExclusionValue, const unsigned int num_points) | |
3830 | { | ||
3831 | ✗ | __init_volk_32f_s32f_calc_spectral_noise_floor_32f(); | |
3832 | ✗ | volk_32f_s32f_calc_spectral_noise_floor_32f_u(noiseFloorAmplitude, realDataPoints, spectralExclusionValue, num_points); | |
3833 | ✗ | } | |
3834 | |||
3835 | ✗ | static inline void __volk_32f_s32f_calc_spectral_noise_floor_32f(float* noiseFloorAmplitude, const float* realDataPoints, const float spectralExclusionValue, const unsigned int num_points) | |
3836 | { | ||
3837 | ✗ | __init_volk_32f_s32f_calc_spectral_noise_floor_32f(); | |
3838 | ✗ | volk_32f_s32f_calc_spectral_noise_floor_32f(noiseFloorAmplitude, realDataPoints, spectralExclusionValue, num_points); | |
3839 | ✗ | } | |
3840 | |||
3841 | p_32f_s32f_calc_spectral_noise_floor_32f volk_32f_s32f_calc_spectral_noise_floor_32f_a = &__volk_32f_s32f_calc_spectral_noise_floor_32f_a; | ||
3842 | p_32f_s32f_calc_spectral_noise_floor_32f volk_32f_s32f_calc_spectral_noise_floor_32f_u = &__volk_32f_s32f_calc_spectral_noise_floor_32f_u; | ||
3843 | p_32f_s32f_calc_spectral_noise_floor_32f volk_32f_s32f_calc_spectral_noise_floor_32f = &__volk_32f_s32f_calc_spectral_noise_floor_32f; | ||
3844 | |||
3845 | 8 | void volk_32f_s32f_calc_spectral_noise_floor_32f_manual(float* noiseFloorAmplitude, const float* realDataPoints, const float spectralExclusionValue, const unsigned int num_points, const char* impl_name) | |
3846 | { | ||
3847 | 8 | const int index = volk_get_index( | |
3848 | 8 | get_machine()->volk_32f_s32f_calc_spectral_noise_floor_32f_impl_names, | |
3849 | 8 | get_machine()->volk_32f_s32f_calc_spectral_noise_floor_32f_n_impls, | |
3850 | impl_name | ||
3851 | ); | ||
3852 | 8 | get_machine()->volk_32f_s32f_calc_spectral_noise_floor_32f_impls[index]( | |
3853 | noiseFloorAmplitude, realDataPoints, spectralExclusionValue, num_points | ||
3854 | ); | ||
3855 | 8 | } | |
3856 | |||
3857 | 282 | volk_func_desc_t volk_32f_s32f_calc_spectral_noise_floor_32f_get_func_desc(void) { | |
3858 | 282 | const char **impl_names = get_machine()->volk_32f_s32f_calc_spectral_noise_floor_32f_impl_names; | |
3859 | 282 | const int *impl_deps = get_machine()->volk_32f_s32f_calc_spectral_noise_floor_32f_impl_deps; | |
3860 | 282 | const bool *alignment = get_machine()->volk_32f_s32f_calc_spectral_noise_floor_32f_impl_alignment; | |
3861 | 282 | const size_t n_impls = get_machine()->volk_32f_s32f_calc_spectral_noise_floor_32f_n_impls; | |
3862 | 282 | volk_func_desc_t desc = { | |
3863 | impl_names, | ||
3864 | impl_deps, | ||
3865 | alignment, | ||
3866 | n_impls | ||
3867 | }; | ||
3868 | 282 | return desc; | |
3869 | } | ||
3870 | |||
3871 | |||
3872 | |||
3873 | ✗ | static inline void __volk_32f_s32f_convert_16i_d(int16_t* outputVector, const float* inputVector, const float scalar, unsigned int num_points) | |
3874 | { | ||
3875 | |||
3876 | ✗ | if (volk_is_aligned( | |
3877 | ✗ | VOLK_OR_PTR(outputVector, | |
3878 | VOLK_OR_PTR(inputVector, | ||
3879 | 0)) | ||
3880 | )){ | ||
3881 | ✗ | volk_32f_s32f_convert_16i_a(outputVector, inputVector, scalar, num_points); | |
3882 | } | ||
3883 | else{ | ||
3884 | ✗ | volk_32f_s32f_convert_16i_u(outputVector, inputVector, scalar, num_points); | |
3885 | } | ||
3886 | ✗ | } | |
3887 | |||
3888 | ✗ | static inline void __init_volk_32f_s32f_convert_16i(void) | |
3889 | { | ||
3890 | ✗ | const char *name = get_machine()->volk_32f_s32f_convert_16i_name; | |
3891 | ✗ | const char **impl_names = get_machine()->volk_32f_s32f_convert_16i_impl_names; | |
3892 | ✗ | const int *impl_deps = get_machine()->volk_32f_s32f_convert_16i_impl_deps; | |
3893 | ✗ | const bool *alignment = get_machine()->volk_32f_s32f_convert_16i_impl_alignment; | |
3894 | ✗ | const size_t n_impls = get_machine()->volk_32f_s32f_convert_16i_n_impls; | |
3895 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
3896 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
3897 | ✗ | volk_32f_s32f_convert_16i_a = get_machine()->volk_32f_s32f_convert_16i_impls[index_a]; | |
3898 | ✗ | volk_32f_s32f_convert_16i_u = get_machine()->volk_32f_s32f_convert_16i_impls[index_u]; | |
3899 | |||
3900 | ✗ | assert(volk_32f_s32f_convert_16i_a); | |
3901 | ✗ | assert(volk_32f_s32f_convert_16i_u); | |
3902 | |||
3903 | ✗ | volk_32f_s32f_convert_16i = &__volk_32f_s32f_convert_16i_d; | |
3904 | ✗ | } | |
3905 | |||
3906 | ✗ | static inline void __volk_32f_s32f_convert_16i_a(int16_t* outputVector, const float* inputVector, const float scalar, unsigned int num_points) | |
3907 | { | ||
3908 | ✗ | __init_volk_32f_s32f_convert_16i(); | |
3909 | ✗ | volk_32f_s32f_convert_16i_a(outputVector, inputVector, scalar, num_points); | |
3910 | ✗ | } | |
3911 | |||
3912 | ✗ | static inline void __volk_32f_s32f_convert_16i_u(int16_t* outputVector, const float* inputVector, const float scalar, unsigned int num_points) | |
3913 | { | ||
3914 | ✗ | __init_volk_32f_s32f_convert_16i(); | |
3915 | ✗ | volk_32f_s32f_convert_16i_u(outputVector, inputVector, scalar, num_points); | |
3916 | ✗ | } | |
3917 | |||
3918 | ✗ | static inline void __volk_32f_s32f_convert_16i(int16_t* outputVector, const float* inputVector, const float scalar, unsigned int num_points) | |
3919 | { | ||
3920 | ✗ | __init_volk_32f_s32f_convert_16i(); | |
3921 | ✗ | volk_32f_s32f_convert_16i(outputVector, inputVector, scalar, num_points); | |
3922 | ✗ | } | |
3923 | |||
3924 | p_32f_s32f_convert_16i volk_32f_s32f_convert_16i_a = &__volk_32f_s32f_convert_16i_a; | ||
3925 | p_32f_s32f_convert_16i volk_32f_s32f_convert_16i_u = &__volk_32f_s32f_convert_16i_u; | ||
3926 | p_32f_s32f_convert_16i volk_32f_s32f_convert_16i = &__volk_32f_s32f_convert_16i; | ||
3927 | |||
3928 | 20 | void volk_32f_s32f_convert_16i_manual(int16_t* outputVector, const float* inputVector, const float scalar, unsigned int num_points, const char* impl_name) | |
3929 | { | ||
3930 | 20 | const int index = volk_get_index( | |
3931 | 20 | get_machine()->volk_32f_s32f_convert_16i_impl_names, | |
3932 | 20 | get_machine()->volk_32f_s32f_convert_16i_n_impls, | |
3933 | impl_name | ||
3934 | ); | ||
3935 | 20 | get_machine()->volk_32f_s32f_convert_16i_impls[index]( | |
3936 | outputVector, inputVector, scalar, num_points | ||
3937 | ); | ||
3938 | 20 | } | |
3939 | |||
3940 | 282 | volk_func_desc_t volk_32f_s32f_convert_16i_get_func_desc(void) { | |
3941 | 282 | const char **impl_names = get_machine()->volk_32f_s32f_convert_16i_impl_names; | |
3942 | 282 | const int *impl_deps = get_machine()->volk_32f_s32f_convert_16i_impl_deps; | |
3943 | 282 | const bool *alignment = get_machine()->volk_32f_s32f_convert_16i_impl_alignment; | |
3944 | 282 | const size_t n_impls = get_machine()->volk_32f_s32f_convert_16i_n_impls; | |
3945 | 282 | volk_func_desc_t desc = { | |
3946 | impl_names, | ||
3947 | impl_deps, | ||
3948 | alignment, | ||
3949 | n_impls | ||
3950 | }; | ||
3951 | 282 | return desc; | |
3952 | } | ||
3953 | |||
3954 | |||
3955 | |||
3956 | ✗ | static inline void __volk_32f_s32f_convert_32i_d(int32_t* outputVector, const float* inputVector, const float scalar, unsigned int num_points) | |
3957 | { | ||
3958 | |||
3959 | ✗ | if (volk_is_aligned( | |
3960 | ✗ | VOLK_OR_PTR(outputVector, | |
3961 | VOLK_OR_PTR(inputVector, | ||
3962 | 0)) | ||
3963 | )){ | ||
3964 | ✗ | volk_32f_s32f_convert_32i_a(outputVector, inputVector, scalar, num_points); | |
3965 | } | ||
3966 | else{ | ||
3967 | ✗ | volk_32f_s32f_convert_32i_u(outputVector, inputVector, scalar, num_points); | |
3968 | } | ||
3969 | ✗ | } | |
3970 | |||
3971 | ✗ | static inline void __init_volk_32f_s32f_convert_32i(void) | |
3972 | { | ||
3973 | ✗ | const char *name = get_machine()->volk_32f_s32f_convert_32i_name; | |
3974 | ✗ | const char **impl_names = get_machine()->volk_32f_s32f_convert_32i_impl_names; | |
3975 | ✗ | const int *impl_deps = get_machine()->volk_32f_s32f_convert_32i_impl_deps; | |
3976 | ✗ | const bool *alignment = get_machine()->volk_32f_s32f_convert_32i_impl_alignment; | |
3977 | ✗ | const size_t n_impls = get_machine()->volk_32f_s32f_convert_32i_n_impls; | |
3978 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
3979 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
3980 | ✗ | volk_32f_s32f_convert_32i_a = get_machine()->volk_32f_s32f_convert_32i_impls[index_a]; | |
3981 | ✗ | volk_32f_s32f_convert_32i_u = get_machine()->volk_32f_s32f_convert_32i_impls[index_u]; | |
3982 | |||
3983 | ✗ | assert(volk_32f_s32f_convert_32i_a); | |
3984 | ✗ | assert(volk_32f_s32f_convert_32i_u); | |
3985 | |||
3986 | ✗ | volk_32f_s32f_convert_32i = &__volk_32f_s32f_convert_32i_d; | |
3987 | ✗ | } | |
3988 | |||
3989 | ✗ | static inline void __volk_32f_s32f_convert_32i_a(int32_t* outputVector, const float* inputVector, const float scalar, unsigned int num_points) | |
3990 | { | ||
3991 | ✗ | __init_volk_32f_s32f_convert_32i(); | |
3992 | ✗ | volk_32f_s32f_convert_32i_a(outputVector, inputVector, scalar, num_points); | |
3993 | ✗ | } | |
3994 | |||
3995 | ✗ | static inline void __volk_32f_s32f_convert_32i_u(int32_t* outputVector, const float* inputVector, const float scalar, unsigned int num_points) | |
3996 | { | ||
3997 | ✗ | __init_volk_32f_s32f_convert_32i(); | |
3998 | ✗ | volk_32f_s32f_convert_32i_u(outputVector, inputVector, scalar, num_points); | |
3999 | ✗ | } | |
4000 | |||
4001 | ✗ | static inline void __volk_32f_s32f_convert_32i(int32_t* outputVector, const float* inputVector, const float scalar, unsigned int num_points) | |
4002 | { | ||
4003 | ✗ | __init_volk_32f_s32f_convert_32i(); | |
4004 | ✗ | volk_32f_s32f_convert_32i(outputVector, inputVector, scalar, num_points); | |
4005 | ✗ | } | |
4006 | |||
4007 | p_32f_s32f_convert_32i volk_32f_s32f_convert_32i_a = &__volk_32f_s32f_convert_32i_a; | ||
4008 | p_32f_s32f_convert_32i volk_32f_s32f_convert_32i_u = &__volk_32f_s32f_convert_32i_u; | ||
4009 | p_32f_s32f_convert_32i volk_32f_s32f_convert_32i = &__volk_32f_s32f_convert_32i; | ||
4010 | |||
4011 | 16 | void volk_32f_s32f_convert_32i_manual(int32_t* outputVector, const float* inputVector, const float scalar, unsigned int num_points, const char* impl_name) | |
4012 | { | ||
4013 | 16 | const int index = volk_get_index( | |
4014 | 16 | get_machine()->volk_32f_s32f_convert_32i_impl_names, | |
4015 | 16 | get_machine()->volk_32f_s32f_convert_32i_n_impls, | |
4016 | impl_name | ||
4017 | ); | ||
4018 | 16 | get_machine()->volk_32f_s32f_convert_32i_impls[index]( | |
4019 | outputVector, inputVector, scalar, num_points | ||
4020 | ); | ||
4021 | 16 | } | |
4022 | |||
4023 | 282 | volk_func_desc_t volk_32f_s32f_convert_32i_get_func_desc(void) { | |
4024 | 282 | const char **impl_names = get_machine()->volk_32f_s32f_convert_32i_impl_names; | |
4025 | 282 | const int *impl_deps = get_machine()->volk_32f_s32f_convert_32i_impl_deps; | |
4026 | 282 | const bool *alignment = get_machine()->volk_32f_s32f_convert_32i_impl_alignment; | |
4027 | 282 | const size_t n_impls = get_machine()->volk_32f_s32f_convert_32i_n_impls; | |
4028 | 282 | volk_func_desc_t desc = { | |
4029 | impl_names, | ||
4030 | impl_deps, | ||
4031 | alignment, | ||
4032 | n_impls | ||
4033 | }; | ||
4034 | 282 | return desc; | |
4035 | } | ||
4036 | |||
4037 | |||
4038 | |||
4039 | ✗ | static inline void __volk_32f_s32f_convert_8i_d(int8_t* outputVector, const float* inputVector, const float scalar, unsigned int num_points) | |
4040 | { | ||
4041 | |||
4042 | ✗ | if (volk_is_aligned( | |
4043 | ✗ | VOLK_OR_PTR(outputVector, | |
4044 | VOLK_OR_PTR(inputVector, | ||
4045 | 0)) | ||
4046 | )){ | ||
4047 | ✗ | volk_32f_s32f_convert_8i_a(outputVector, inputVector, scalar, num_points); | |
4048 | } | ||
4049 | else{ | ||
4050 | ✗ | volk_32f_s32f_convert_8i_u(outputVector, inputVector, scalar, num_points); | |
4051 | } | ||
4052 | ✗ | } | |
4053 | |||
4054 | ✗ | static inline void __init_volk_32f_s32f_convert_8i(void) | |
4055 | { | ||
4056 | ✗ | const char *name = get_machine()->volk_32f_s32f_convert_8i_name; | |
4057 | ✗ | const char **impl_names = get_machine()->volk_32f_s32f_convert_8i_impl_names; | |
4058 | ✗ | const int *impl_deps = get_machine()->volk_32f_s32f_convert_8i_impl_deps; | |
4059 | ✗ | const bool *alignment = get_machine()->volk_32f_s32f_convert_8i_impl_alignment; | |
4060 | ✗ | const size_t n_impls = get_machine()->volk_32f_s32f_convert_8i_n_impls; | |
4061 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
4062 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
4063 | ✗ | volk_32f_s32f_convert_8i_a = get_machine()->volk_32f_s32f_convert_8i_impls[index_a]; | |
4064 | ✗ | volk_32f_s32f_convert_8i_u = get_machine()->volk_32f_s32f_convert_8i_impls[index_u]; | |
4065 | |||
4066 | ✗ | assert(volk_32f_s32f_convert_8i_a); | |
4067 | ✗ | assert(volk_32f_s32f_convert_8i_u); | |
4068 | |||
4069 | ✗ | volk_32f_s32f_convert_8i = &__volk_32f_s32f_convert_8i_d; | |
4070 | ✗ | } | |
4071 | |||
4072 | ✗ | static inline void __volk_32f_s32f_convert_8i_a(int8_t* outputVector, const float* inputVector, const float scalar, unsigned int num_points) | |
4073 | { | ||
4074 | ✗ | __init_volk_32f_s32f_convert_8i(); | |
4075 | ✗ | volk_32f_s32f_convert_8i_a(outputVector, inputVector, scalar, num_points); | |
4076 | ✗ | } | |
4077 | |||
4078 | ✗ | static inline void __volk_32f_s32f_convert_8i_u(int8_t* outputVector, const float* inputVector, const float scalar, unsigned int num_points) | |
4079 | { | ||
4080 | ✗ | __init_volk_32f_s32f_convert_8i(); | |
4081 | ✗ | volk_32f_s32f_convert_8i_u(outputVector, inputVector, scalar, num_points); | |
4082 | ✗ | } | |
4083 | |||
4084 | ✗ | static inline void __volk_32f_s32f_convert_8i(int8_t* outputVector, const float* inputVector, const float scalar, unsigned int num_points) | |
4085 | { | ||
4086 | ✗ | __init_volk_32f_s32f_convert_8i(); | |
4087 | ✗ | volk_32f_s32f_convert_8i(outputVector, inputVector, scalar, num_points); | |
4088 | ✗ | } | |
4089 | |||
4090 | p_32f_s32f_convert_8i volk_32f_s32f_convert_8i_a = &__volk_32f_s32f_convert_8i_a; | ||
4091 | p_32f_s32f_convert_8i volk_32f_s32f_convert_8i_u = &__volk_32f_s32f_convert_8i_u; | ||
4092 | p_32f_s32f_convert_8i volk_32f_s32f_convert_8i = &__volk_32f_s32f_convert_8i; | ||
4093 | |||
4094 | 14 | void volk_32f_s32f_convert_8i_manual(int8_t* outputVector, const float* inputVector, const float scalar, unsigned int num_points, const char* impl_name) | |
4095 | { | ||
4096 | 14 | const int index = volk_get_index( | |
4097 | 14 | get_machine()->volk_32f_s32f_convert_8i_impl_names, | |
4098 | 14 | get_machine()->volk_32f_s32f_convert_8i_n_impls, | |
4099 | impl_name | ||
4100 | ); | ||
4101 | 14 | get_machine()->volk_32f_s32f_convert_8i_impls[index]( | |
4102 | outputVector, inputVector, scalar, num_points | ||
4103 | ); | ||
4104 | 14 | } | |
4105 | |||
4106 | 282 | volk_func_desc_t volk_32f_s32f_convert_8i_get_func_desc(void) { | |
4107 | 282 | const char **impl_names = get_machine()->volk_32f_s32f_convert_8i_impl_names; | |
4108 | 282 | const int *impl_deps = get_machine()->volk_32f_s32f_convert_8i_impl_deps; | |
4109 | 282 | const bool *alignment = get_machine()->volk_32f_s32f_convert_8i_impl_alignment; | |
4110 | 282 | const size_t n_impls = get_machine()->volk_32f_s32f_convert_8i_n_impls; | |
4111 | 282 | volk_func_desc_t desc = { | |
4112 | impl_names, | ||
4113 | impl_deps, | ||
4114 | alignment, | ||
4115 | n_impls | ||
4116 | }; | ||
4117 | 282 | return desc; | |
4118 | } | ||
4119 | |||
4120 | |||
4121 | |||
4122 | ✗ | static inline void __volk_32f_s32f_convertpuppet_8u_d(uint8_t* output, const float* input, float scale, unsigned int num_points) | |
4123 | { | ||
4124 | |||
4125 | ✗ | if (volk_is_aligned( | |
4126 | ✗ | VOLK_OR_PTR(output, | |
4127 | VOLK_OR_PTR(input, | ||
4128 | 0)) | ||
4129 | )){ | ||
4130 | ✗ | volk_32f_s32f_convertpuppet_8u_a(output, input, scale, num_points); | |
4131 | } | ||
4132 | else{ | ||
4133 | ✗ | volk_32f_s32f_convertpuppet_8u_u(output, input, scale, num_points); | |
4134 | } | ||
4135 | ✗ | } | |
4136 | |||
4137 | ✗ | static inline void __init_volk_32f_s32f_convertpuppet_8u(void) | |
4138 | { | ||
4139 | ✗ | const char *name = get_machine()->volk_32f_s32f_convertpuppet_8u_name; | |
4140 | ✗ | const char **impl_names = get_machine()->volk_32f_s32f_convertpuppet_8u_impl_names; | |
4141 | ✗ | const int *impl_deps = get_machine()->volk_32f_s32f_convertpuppet_8u_impl_deps; | |
4142 | ✗ | const bool *alignment = get_machine()->volk_32f_s32f_convertpuppet_8u_impl_alignment; | |
4143 | ✗ | const size_t n_impls = get_machine()->volk_32f_s32f_convertpuppet_8u_n_impls; | |
4144 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
4145 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
4146 | ✗ | volk_32f_s32f_convertpuppet_8u_a = get_machine()->volk_32f_s32f_convertpuppet_8u_impls[index_a]; | |
4147 | ✗ | volk_32f_s32f_convertpuppet_8u_u = get_machine()->volk_32f_s32f_convertpuppet_8u_impls[index_u]; | |
4148 | |||
4149 | ✗ | assert(volk_32f_s32f_convertpuppet_8u_a); | |
4150 | ✗ | assert(volk_32f_s32f_convertpuppet_8u_u); | |
4151 | |||
4152 | ✗ | volk_32f_s32f_convertpuppet_8u = &__volk_32f_s32f_convertpuppet_8u_d; | |
4153 | ✗ | } | |
4154 | |||
4155 | ✗ | static inline void __volk_32f_s32f_convertpuppet_8u_a(uint8_t* output, const float* input, float scale, unsigned int num_points) | |
4156 | { | ||
4157 | ✗ | __init_volk_32f_s32f_convertpuppet_8u(); | |
4158 | ✗ | volk_32f_s32f_convertpuppet_8u_a(output, input, scale, num_points); | |
4159 | ✗ | } | |
4160 | |||
4161 | ✗ | static inline void __volk_32f_s32f_convertpuppet_8u_u(uint8_t* output, const float* input, float scale, unsigned int num_points) | |
4162 | { | ||
4163 | ✗ | __init_volk_32f_s32f_convertpuppet_8u(); | |
4164 | ✗ | volk_32f_s32f_convertpuppet_8u_u(output, input, scale, num_points); | |
4165 | ✗ | } | |
4166 | |||
4167 | ✗ | static inline void __volk_32f_s32f_convertpuppet_8u(uint8_t* output, const float* input, float scale, unsigned int num_points) | |
4168 | { | ||
4169 | ✗ | __init_volk_32f_s32f_convertpuppet_8u(); | |
4170 | ✗ | volk_32f_s32f_convertpuppet_8u(output, input, scale, num_points); | |
4171 | ✗ | } | |
4172 | |||
4173 | p_32f_s32f_convertpuppet_8u volk_32f_s32f_convertpuppet_8u_a = &__volk_32f_s32f_convertpuppet_8u_a; | ||
4174 | p_32f_s32f_convertpuppet_8u volk_32f_s32f_convertpuppet_8u_u = &__volk_32f_s32f_convertpuppet_8u_u; | ||
4175 | p_32f_s32f_convertpuppet_8u volk_32f_s32f_convertpuppet_8u = &__volk_32f_s32f_convertpuppet_8u; | ||
4176 | |||
4177 | 18 | void volk_32f_s32f_convertpuppet_8u_manual(uint8_t* output, const float* input, float scale, unsigned int num_points, const char* impl_name) | |
4178 | { | ||
4179 | 18 | const int index = volk_get_index( | |
4180 | 18 | get_machine()->volk_32f_s32f_convertpuppet_8u_impl_names, | |
4181 | 18 | get_machine()->volk_32f_s32f_convertpuppet_8u_n_impls, | |
4182 | impl_name | ||
4183 | ); | ||
4184 | 18 | get_machine()->volk_32f_s32f_convertpuppet_8u_impls[index]( | |
4185 | output, input, scale, num_points | ||
4186 | ); | ||
4187 | 18 | } | |
4188 | |||
4189 | 282 | volk_func_desc_t volk_32f_s32f_convertpuppet_8u_get_func_desc(void) { | |
4190 | 282 | const char **impl_names = get_machine()->volk_32f_s32f_convertpuppet_8u_impl_names; | |
4191 | 282 | const int *impl_deps = get_machine()->volk_32f_s32f_convertpuppet_8u_impl_deps; | |
4192 | 282 | const bool *alignment = get_machine()->volk_32f_s32f_convertpuppet_8u_impl_alignment; | |
4193 | 282 | const size_t n_impls = get_machine()->volk_32f_s32f_convertpuppet_8u_n_impls; | |
4194 | 282 | volk_func_desc_t desc = { | |
4195 | impl_names, | ||
4196 | impl_deps, | ||
4197 | alignment, | ||
4198 | n_impls | ||
4199 | }; | ||
4200 | 282 | return desc; | |
4201 | } | ||
4202 | |||
4203 | |||
4204 | |||
4205 | ✗ | static inline void __volk_32f_s32f_mod_rangepuppet_32f_d(float* output, const float* input, float bound, unsigned int num_points) | |
4206 | { | ||
4207 | |||
4208 | ✗ | if (volk_is_aligned( | |
4209 | ✗ | VOLK_OR_PTR(output, | |
4210 | VOLK_OR_PTR(input, | ||
4211 | 0)) | ||
4212 | )){ | ||
4213 | ✗ | volk_32f_s32f_mod_rangepuppet_32f_a(output, input, bound, num_points); | |
4214 | } | ||
4215 | else{ | ||
4216 | ✗ | volk_32f_s32f_mod_rangepuppet_32f_u(output, input, bound, num_points); | |
4217 | } | ||
4218 | ✗ | } | |
4219 | |||
4220 | ✗ | static inline void __init_volk_32f_s32f_mod_rangepuppet_32f(void) | |
4221 | { | ||
4222 | ✗ | const char *name = get_machine()->volk_32f_s32f_mod_rangepuppet_32f_name; | |
4223 | ✗ | const char **impl_names = get_machine()->volk_32f_s32f_mod_rangepuppet_32f_impl_names; | |
4224 | ✗ | const int *impl_deps = get_machine()->volk_32f_s32f_mod_rangepuppet_32f_impl_deps; | |
4225 | ✗ | const bool *alignment = get_machine()->volk_32f_s32f_mod_rangepuppet_32f_impl_alignment; | |
4226 | ✗ | const size_t n_impls = get_machine()->volk_32f_s32f_mod_rangepuppet_32f_n_impls; | |
4227 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
4228 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
4229 | ✗ | volk_32f_s32f_mod_rangepuppet_32f_a = get_machine()->volk_32f_s32f_mod_rangepuppet_32f_impls[index_a]; | |
4230 | ✗ | volk_32f_s32f_mod_rangepuppet_32f_u = get_machine()->volk_32f_s32f_mod_rangepuppet_32f_impls[index_u]; | |
4231 | |||
4232 | ✗ | assert(volk_32f_s32f_mod_rangepuppet_32f_a); | |
4233 | ✗ | assert(volk_32f_s32f_mod_rangepuppet_32f_u); | |
4234 | |||
4235 | ✗ | volk_32f_s32f_mod_rangepuppet_32f = &__volk_32f_s32f_mod_rangepuppet_32f_d; | |
4236 | ✗ | } | |
4237 | |||
4238 | ✗ | static inline void __volk_32f_s32f_mod_rangepuppet_32f_a(float* output, const float* input, float bound, unsigned int num_points) | |
4239 | { | ||
4240 | ✗ | __init_volk_32f_s32f_mod_rangepuppet_32f(); | |
4241 | ✗ | volk_32f_s32f_mod_rangepuppet_32f_a(output, input, bound, num_points); | |
4242 | ✗ | } | |
4243 | |||
4244 | ✗ | static inline void __volk_32f_s32f_mod_rangepuppet_32f_u(float* output, const float* input, float bound, unsigned int num_points) | |
4245 | { | ||
4246 | ✗ | __init_volk_32f_s32f_mod_rangepuppet_32f(); | |
4247 | ✗ | volk_32f_s32f_mod_rangepuppet_32f_u(output, input, bound, num_points); | |
4248 | ✗ | } | |
4249 | |||
4250 | ✗ | static inline void __volk_32f_s32f_mod_rangepuppet_32f(float* output, const float* input, float bound, unsigned int num_points) | |
4251 | { | ||
4252 | ✗ | __init_volk_32f_s32f_mod_rangepuppet_32f(); | |
4253 | ✗ | volk_32f_s32f_mod_rangepuppet_32f(output, input, bound, num_points); | |
4254 | ✗ | } | |
4255 | |||
4256 | p_32f_s32f_mod_rangepuppet_32f volk_32f_s32f_mod_rangepuppet_32f_a = &__volk_32f_s32f_mod_rangepuppet_32f_a; | ||
4257 | p_32f_s32f_mod_rangepuppet_32f volk_32f_s32f_mod_rangepuppet_32f_u = &__volk_32f_s32f_mod_rangepuppet_32f_u; | ||
4258 | p_32f_s32f_mod_rangepuppet_32f volk_32f_s32f_mod_rangepuppet_32f = &__volk_32f_s32f_mod_rangepuppet_32f; | ||
4259 | |||
4260 | 14 | void volk_32f_s32f_mod_rangepuppet_32f_manual(float* output, const float* input, float bound, unsigned int num_points, const char* impl_name) | |
4261 | { | ||
4262 | 14 | const int index = volk_get_index( | |
4263 | 14 | get_machine()->volk_32f_s32f_mod_rangepuppet_32f_impl_names, | |
4264 | 14 | get_machine()->volk_32f_s32f_mod_rangepuppet_32f_n_impls, | |
4265 | impl_name | ||
4266 | ); | ||
4267 | 14 | get_machine()->volk_32f_s32f_mod_rangepuppet_32f_impls[index]( | |
4268 | output, input, bound, num_points | ||
4269 | ); | ||
4270 | 14 | } | |
4271 | |||
4272 | 282 | volk_func_desc_t volk_32f_s32f_mod_rangepuppet_32f_get_func_desc(void) { | |
4273 | 282 | const char **impl_names = get_machine()->volk_32f_s32f_mod_rangepuppet_32f_impl_names; | |
4274 | 282 | const int *impl_deps = get_machine()->volk_32f_s32f_mod_rangepuppet_32f_impl_deps; | |
4275 | 282 | const bool *alignment = get_machine()->volk_32f_s32f_mod_rangepuppet_32f_impl_alignment; | |
4276 | 282 | const size_t n_impls = get_machine()->volk_32f_s32f_mod_rangepuppet_32f_n_impls; | |
4277 | 282 | volk_func_desc_t desc = { | |
4278 | impl_names, | ||
4279 | impl_deps, | ||
4280 | alignment, | ||
4281 | n_impls | ||
4282 | }; | ||
4283 | 282 | return desc; | |
4284 | } | ||
4285 | |||
4286 | |||
4287 | |||
4288 | 4 | static inline void __volk_32f_s32f_multiply_32f_d(float* cVector, const float* aVector, const float scalar, unsigned int num_points) | |
4289 | { | ||
4290 | |||
4291 |
1/2✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
|
4 | if (volk_is_aligned( |
4292 | 4 | VOLK_OR_PTR(cVector, | |
4293 | VOLK_OR_PTR(aVector, | ||
4294 | 0)) | ||
4295 | )){ | ||
4296 | 4 | volk_32f_s32f_multiply_32f_a(cVector, aVector, scalar, num_points); | |
4297 | } | ||
4298 | else{ | ||
4299 | ✗ | volk_32f_s32f_multiply_32f_u(cVector, aVector, scalar, num_points); | |
4300 | } | ||
4301 | 4 | } | |
4302 | |||
4303 | 2 | static inline void __init_volk_32f_s32f_multiply_32f(void) | |
4304 | { | ||
4305 | 2 | const char *name = get_machine()->volk_32f_s32f_multiply_32f_name; | |
4306 | 2 | const char **impl_names = get_machine()->volk_32f_s32f_multiply_32f_impl_names; | |
4307 | 2 | const int *impl_deps = get_machine()->volk_32f_s32f_multiply_32f_impl_deps; | |
4308 | 2 | const bool *alignment = get_machine()->volk_32f_s32f_multiply_32f_impl_alignment; | |
4309 | 2 | const size_t n_impls = get_machine()->volk_32f_s32f_multiply_32f_n_impls; | |
4310 | 2 | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
4311 | 2 | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
4312 | 2 | volk_32f_s32f_multiply_32f_a = get_machine()->volk_32f_s32f_multiply_32f_impls[index_a]; | |
4313 | 2 | volk_32f_s32f_multiply_32f_u = get_machine()->volk_32f_s32f_multiply_32f_impls[index_u]; | |
4314 | |||
4315 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 2 times.
|
2 | assert(volk_32f_s32f_multiply_32f_a); |
4316 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 2 times.
|
2 | assert(volk_32f_s32f_multiply_32f_u); |
4317 | |||
4318 | 2 | volk_32f_s32f_multiply_32f = &__volk_32f_s32f_multiply_32f_d; | |
4319 | 2 | } | |
4320 | |||
4321 | ✗ | static inline void __volk_32f_s32f_multiply_32f_a(float* cVector, const float* aVector, const float scalar, unsigned int num_points) | |
4322 | { | ||
4323 | ✗ | __init_volk_32f_s32f_multiply_32f(); | |
4324 | ✗ | volk_32f_s32f_multiply_32f_a(cVector, aVector, scalar, num_points); | |
4325 | ✗ | } | |
4326 | |||
4327 | ✗ | static inline void __volk_32f_s32f_multiply_32f_u(float* cVector, const float* aVector, const float scalar, unsigned int num_points) | |
4328 | { | ||
4329 | ✗ | __init_volk_32f_s32f_multiply_32f(); | |
4330 | ✗ | volk_32f_s32f_multiply_32f_u(cVector, aVector, scalar, num_points); | |
4331 | ✗ | } | |
4332 | |||
4333 | 2 | static inline void __volk_32f_s32f_multiply_32f(float* cVector, const float* aVector, const float scalar, unsigned int num_points) | |
4334 | { | ||
4335 | 2 | __init_volk_32f_s32f_multiply_32f(); | |
4336 | 2 | volk_32f_s32f_multiply_32f(cVector, aVector, scalar, num_points); | |
4337 | 2 | } | |
4338 | |||
4339 | p_32f_s32f_multiply_32f volk_32f_s32f_multiply_32f_a = &__volk_32f_s32f_multiply_32f_a; | ||
4340 | p_32f_s32f_multiply_32f volk_32f_s32f_multiply_32f_u = &__volk_32f_s32f_multiply_32f_u; | ||
4341 | p_32f_s32f_multiply_32f volk_32f_s32f_multiply_32f = &__volk_32f_s32f_multiply_32f; | ||
4342 | |||
4343 | 14 | void volk_32f_s32f_multiply_32f_manual(float* cVector, const float* aVector, const float scalar, unsigned int num_points, const char* impl_name) | |
4344 | { | ||
4345 | 14 | const int index = volk_get_index( | |
4346 | 14 | get_machine()->volk_32f_s32f_multiply_32f_impl_names, | |
4347 | 14 | get_machine()->volk_32f_s32f_multiply_32f_n_impls, | |
4348 | impl_name | ||
4349 | ); | ||
4350 | 14 | get_machine()->volk_32f_s32f_multiply_32f_impls[index]( | |
4351 | cVector, aVector, scalar, num_points | ||
4352 | ); | ||
4353 | 14 | } | |
4354 | |||
4355 | 282 | volk_func_desc_t volk_32f_s32f_multiply_32f_get_func_desc(void) { | |
4356 | 282 | const char **impl_names = get_machine()->volk_32f_s32f_multiply_32f_impl_names; | |
4357 | 282 | const int *impl_deps = get_machine()->volk_32f_s32f_multiply_32f_impl_deps; | |
4358 | 282 | const bool *alignment = get_machine()->volk_32f_s32f_multiply_32f_impl_alignment; | |
4359 | 282 | const size_t n_impls = get_machine()->volk_32f_s32f_multiply_32f_n_impls; | |
4360 | 282 | volk_func_desc_t desc = { | |
4361 | impl_names, | ||
4362 | impl_deps, | ||
4363 | alignment, | ||
4364 | n_impls | ||
4365 | }; | ||
4366 | 282 | return desc; | |
4367 | } | ||
4368 | |||
4369 | |||
4370 | |||
4371 | ✗ | static inline void __volk_32f_s32f_normalize_d(float* vecBuffer, const float scalar, unsigned int num_points) | |
4372 | { | ||
4373 | |||
4374 | ✗ | if (volk_is_aligned( | |
4375 | VOLK_OR_PTR(vecBuffer, | ||
4376 | 0) | ||
4377 | )){ | ||
4378 | ✗ | volk_32f_s32f_normalize_a(vecBuffer, scalar, num_points); | |
4379 | } | ||
4380 | else{ | ||
4381 | ✗ | volk_32f_s32f_normalize_u(vecBuffer, scalar, num_points); | |
4382 | } | ||
4383 | ✗ | } | |
4384 | |||
4385 | ✗ | static inline void __init_volk_32f_s32f_normalize(void) | |
4386 | { | ||
4387 | ✗ | const char *name = get_machine()->volk_32f_s32f_normalize_name; | |
4388 | ✗ | const char **impl_names = get_machine()->volk_32f_s32f_normalize_impl_names; | |
4389 | ✗ | const int *impl_deps = get_machine()->volk_32f_s32f_normalize_impl_deps; | |
4390 | ✗ | const bool *alignment = get_machine()->volk_32f_s32f_normalize_impl_alignment; | |
4391 | ✗ | const size_t n_impls = get_machine()->volk_32f_s32f_normalize_n_impls; | |
4392 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
4393 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
4394 | ✗ | volk_32f_s32f_normalize_a = get_machine()->volk_32f_s32f_normalize_impls[index_a]; | |
4395 | ✗ | volk_32f_s32f_normalize_u = get_machine()->volk_32f_s32f_normalize_impls[index_u]; | |
4396 | |||
4397 | ✗ | assert(volk_32f_s32f_normalize_a); | |
4398 | ✗ | assert(volk_32f_s32f_normalize_u); | |
4399 | |||
4400 | ✗ | volk_32f_s32f_normalize = &__volk_32f_s32f_normalize_d; | |
4401 | ✗ | } | |
4402 | |||
4403 | ✗ | static inline void __volk_32f_s32f_normalize_a(float* vecBuffer, const float scalar, unsigned int num_points) | |
4404 | { | ||
4405 | ✗ | __init_volk_32f_s32f_normalize(); | |
4406 | ✗ | volk_32f_s32f_normalize_a(vecBuffer, scalar, num_points); | |
4407 | ✗ | } | |
4408 | |||
4409 | ✗ | static inline void __volk_32f_s32f_normalize_u(float* vecBuffer, const float scalar, unsigned int num_points) | |
4410 | { | ||
4411 | ✗ | __init_volk_32f_s32f_normalize(); | |
4412 | ✗ | volk_32f_s32f_normalize_u(vecBuffer, scalar, num_points); | |
4413 | ✗ | } | |
4414 | |||
4415 | ✗ | static inline void __volk_32f_s32f_normalize(float* vecBuffer, const float scalar, unsigned int num_points) | |
4416 | { | ||
4417 | ✗ | __init_volk_32f_s32f_normalize(); | |
4418 | ✗ | volk_32f_s32f_normalize(vecBuffer, scalar, num_points); | |
4419 | ✗ | } | |
4420 | |||
4421 | p_32f_s32f_normalize volk_32f_s32f_normalize_a = &__volk_32f_s32f_normalize_a; | ||
4422 | p_32f_s32f_normalize volk_32f_s32f_normalize_u = &__volk_32f_s32f_normalize_u; | ||
4423 | p_32f_s32f_normalize volk_32f_s32f_normalize = &__volk_32f_s32f_normalize; | ||
4424 | |||
4425 | 10 | void volk_32f_s32f_normalize_manual(float* vecBuffer, const float scalar, unsigned int num_points, const char* impl_name) | |
4426 | { | ||
4427 | 10 | const int index = volk_get_index( | |
4428 | 10 | get_machine()->volk_32f_s32f_normalize_impl_names, | |
4429 | 10 | get_machine()->volk_32f_s32f_normalize_n_impls, | |
4430 | impl_name | ||
4431 | ); | ||
4432 | 10 | get_machine()->volk_32f_s32f_normalize_impls[index]( | |
4433 | vecBuffer, scalar, num_points | ||
4434 | ); | ||
4435 | 10 | } | |
4436 | |||
4437 | 282 | volk_func_desc_t volk_32f_s32f_normalize_get_func_desc(void) { | |
4438 | 282 | const char **impl_names = get_machine()->volk_32f_s32f_normalize_impl_names; | |
4439 | 282 | const int *impl_deps = get_machine()->volk_32f_s32f_normalize_impl_deps; | |
4440 | 282 | const bool *alignment = get_machine()->volk_32f_s32f_normalize_impl_alignment; | |
4441 | 282 | const size_t n_impls = get_machine()->volk_32f_s32f_normalize_n_impls; | |
4442 | 282 | volk_func_desc_t desc = { | |
4443 | impl_names, | ||
4444 | impl_deps, | ||
4445 | alignment, | ||
4446 | n_impls | ||
4447 | }; | ||
4448 | 282 | return desc; | |
4449 | } | ||
4450 | |||
4451 | |||
4452 | |||
4453 | ✗ | static inline void __volk_32f_s32f_power_32f_d(float* cVector, const float* aVector, const float power, unsigned int num_points) | |
4454 | { | ||
4455 | |||
4456 | ✗ | if (volk_is_aligned( | |
4457 | ✗ | VOLK_OR_PTR(cVector, | |
4458 | VOLK_OR_PTR(aVector, | ||
4459 | 0)) | ||
4460 | )){ | ||
4461 | ✗ | volk_32f_s32f_power_32f_a(cVector, aVector, power, num_points); | |
4462 | } | ||
4463 | else{ | ||
4464 | ✗ | volk_32f_s32f_power_32f_u(cVector, aVector, power, num_points); | |
4465 | } | ||
4466 | ✗ | } | |
4467 | |||
4468 | ✗ | static inline void __init_volk_32f_s32f_power_32f(void) | |
4469 | { | ||
4470 | ✗ | const char *name = get_machine()->volk_32f_s32f_power_32f_name; | |
4471 | ✗ | const char **impl_names = get_machine()->volk_32f_s32f_power_32f_impl_names; | |
4472 | ✗ | const int *impl_deps = get_machine()->volk_32f_s32f_power_32f_impl_deps; | |
4473 | ✗ | const bool *alignment = get_machine()->volk_32f_s32f_power_32f_impl_alignment; | |
4474 | ✗ | const size_t n_impls = get_machine()->volk_32f_s32f_power_32f_n_impls; | |
4475 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
4476 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
4477 | ✗ | volk_32f_s32f_power_32f_a = get_machine()->volk_32f_s32f_power_32f_impls[index_a]; | |
4478 | ✗ | volk_32f_s32f_power_32f_u = get_machine()->volk_32f_s32f_power_32f_impls[index_u]; | |
4479 | |||
4480 | ✗ | assert(volk_32f_s32f_power_32f_a); | |
4481 | ✗ | assert(volk_32f_s32f_power_32f_u); | |
4482 | |||
4483 | ✗ | volk_32f_s32f_power_32f = &__volk_32f_s32f_power_32f_d; | |
4484 | ✗ | } | |
4485 | |||
4486 | ✗ | static inline void __volk_32f_s32f_power_32f_a(float* cVector, const float* aVector, const float power, unsigned int num_points) | |
4487 | { | ||
4488 | ✗ | __init_volk_32f_s32f_power_32f(); | |
4489 | ✗ | volk_32f_s32f_power_32f_a(cVector, aVector, power, num_points); | |
4490 | ✗ | } | |
4491 | |||
4492 | ✗ | static inline void __volk_32f_s32f_power_32f_u(float* cVector, const float* aVector, const float power, unsigned int num_points) | |
4493 | { | ||
4494 | ✗ | __init_volk_32f_s32f_power_32f(); | |
4495 | ✗ | volk_32f_s32f_power_32f_u(cVector, aVector, power, num_points); | |
4496 | ✗ | } | |
4497 | |||
4498 | ✗ | static inline void __volk_32f_s32f_power_32f(float* cVector, const float* aVector, const float power, unsigned int num_points) | |
4499 | { | ||
4500 | ✗ | __init_volk_32f_s32f_power_32f(); | |
4501 | ✗ | volk_32f_s32f_power_32f(cVector, aVector, power, num_points); | |
4502 | ✗ | } | |
4503 | |||
4504 | p_32f_s32f_power_32f volk_32f_s32f_power_32f_a = &__volk_32f_s32f_power_32f_a; | ||
4505 | p_32f_s32f_power_32f volk_32f_s32f_power_32f_u = &__volk_32f_s32f_power_32f_u; | ||
4506 | p_32f_s32f_power_32f volk_32f_s32f_power_32f = &__volk_32f_s32f_power_32f; | ||
4507 | |||
4508 | 6 | void volk_32f_s32f_power_32f_manual(float* cVector, const float* aVector, const float power, unsigned int num_points, const char* impl_name) | |
4509 | { | ||
4510 | 6 | const int index = volk_get_index( | |
4511 | 6 | get_machine()->volk_32f_s32f_power_32f_impl_names, | |
4512 | 6 | get_machine()->volk_32f_s32f_power_32f_n_impls, | |
4513 | impl_name | ||
4514 | ); | ||
4515 | 6 | get_machine()->volk_32f_s32f_power_32f_impls[index]( | |
4516 | cVector, aVector, power, num_points | ||
4517 | ); | ||
4518 | 6 | } | |
4519 | |||
4520 | 282 | volk_func_desc_t volk_32f_s32f_power_32f_get_func_desc(void) { | |
4521 | 282 | const char **impl_names = get_machine()->volk_32f_s32f_power_32f_impl_names; | |
4522 | 282 | const int *impl_deps = get_machine()->volk_32f_s32f_power_32f_impl_deps; | |
4523 | 282 | const bool *alignment = get_machine()->volk_32f_s32f_power_32f_impl_alignment; | |
4524 | 282 | const size_t n_impls = get_machine()->volk_32f_s32f_power_32f_n_impls; | |
4525 | 282 | volk_func_desc_t desc = { | |
4526 | impl_names, | ||
4527 | impl_deps, | ||
4528 | alignment, | ||
4529 | n_impls | ||
4530 | }; | ||
4531 | 282 | return desc; | |
4532 | } | ||
4533 | |||
4534 | |||
4535 | |||
4536 | ✗ | static inline void __volk_32f_s32f_s32f_mod_range_32f_d(float* outputVector, const float* inputVector, const float lower_bound, const float upper_bound, unsigned int num_points) | |
4537 | { | ||
4538 | |||
4539 | ✗ | if (volk_is_aligned( | |
4540 | ✗ | VOLK_OR_PTR(outputVector, | |
4541 | VOLK_OR_PTR(inputVector, | ||
4542 | 0)) | ||
4543 | )){ | ||
4544 | ✗ | volk_32f_s32f_s32f_mod_range_32f_a(outputVector, inputVector, lower_bound, upper_bound, num_points); | |
4545 | } | ||
4546 | else{ | ||
4547 | ✗ | volk_32f_s32f_s32f_mod_range_32f_u(outputVector, inputVector, lower_bound, upper_bound, num_points); | |
4548 | } | ||
4549 | ✗ | } | |
4550 | |||
4551 | ✗ | static inline void __init_volk_32f_s32f_s32f_mod_range_32f(void) | |
4552 | { | ||
4553 | ✗ | const char *name = get_machine()->volk_32f_s32f_s32f_mod_range_32f_name; | |
4554 | ✗ | const char **impl_names = get_machine()->volk_32f_s32f_s32f_mod_range_32f_impl_names; | |
4555 | ✗ | const int *impl_deps = get_machine()->volk_32f_s32f_s32f_mod_range_32f_impl_deps; | |
4556 | ✗ | const bool *alignment = get_machine()->volk_32f_s32f_s32f_mod_range_32f_impl_alignment; | |
4557 | ✗ | const size_t n_impls = get_machine()->volk_32f_s32f_s32f_mod_range_32f_n_impls; | |
4558 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
4559 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
4560 | ✗ | volk_32f_s32f_s32f_mod_range_32f_a = get_machine()->volk_32f_s32f_s32f_mod_range_32f_impls[index_a]; | |
4561 | ✗ | volk_32f_s32f_s32f_mod_range_32f_u = get_machine()->volk_32f_s32f_s32f_mod_range_32f_impls[index_u]; | |
4562 | |||
4563 | ✗ | assert(volk_32f_s32f_s32f_mod_range_32f_a); | |
4564 | ✗ | assert(volk_32f_s32f_s32f_mod_range_32f_u); | |
4565 | |||
4566 | ✗ | volk_32f_s32f_s32f_mod_range_32f = &__volk_32f_s32f_s32f_mod_range_32f_d; | |
4567 | ✗ | } | |
4568 | |||
4569 | ✗ | static inline void __volk_32f_s32f_s32f_mod_range_32f_a(float* outputVector, const float* inputVector, const float lower_bound, const float upper_bound, unsigned int num_points) | |
4570 | { | ||
4571 | ✗ | __init_volk_32f_s32f_s32f_mod_range_32f(); | |
4572 | ✗ | volk_32f_s32f_s32f_mod_range_32f_a(outputVector, inputVector, lower_bound, upper_bound, num_points); | |
4573 | ✗ | } | |
4574 | |||
4575 | ✗ | static inline void __volk_32f_s32f_s32f_mod_range_32f_u(float* outputVector, const float* inputVector, const float lower_bound, const float upper_bound, unsigned int num_points) | |
4576 | { | ||
4577 | ✗ | __init_volk_32f_s32f_s32f_mod_range_32f(); | |
4578 | ✗ | volk_32f_s32f_s32f_mod_range_32f_u(outputVector, inputVector, lower_bound, upper_bound, num_points); | |
4579 | ✗ | } | |
4580 | |||
4581 | ✗ | static inline void __volk_32f_s32f_s32f_mod_range_32f(float* outputVector, const float* inputVector, const float lower_bound, const float upper_bound, unsigned int num_points) | |
4582 | { | ||
4583 | ✗ | __init_volk_32f_s32f_s32f_mod_range_32f(); | |
4584 | ✗ | volk_32f_s32f_s32f_mod_range_32f(outputVector, inputVector, lower_bound, upper_bound, num_points); | |
4585 | ✗ | } | |
4586 | |||
4587 | p_32f_s32f_s32f_mod_range_32f volk_32f_s32f_s32f_mod_range_32f_a = &__volk_32f_s32f_s32f_mod_range_32f_a; | ||
4588 | p_32f_s32f_s32f_mod_range_32f volk_32f_s32f_s32f_mod_range_32f_u = &__volk_32f_s32f_s32f_mod_range_32f_u; | ||
4589 | p_32f_s32f_s32f_mod_range_32f volk_32f_s32f_s32f_mod_range_32f = &__volk_32f_s32f_s32f_mod_range_32f; | ||
4590 | |||
4591 | ✗ | void volk_32f_s32f_s32f_mod_range_32f_manual(float* outputVector, const float* inputVector, const float lower_bound, const float upper_bound, unsigned int num_points, const char* impl_name) | |
4592 | { | ||
4593 | ✗ | const int index = volk_get_index( | |
4594 | ✗ | get_machine()->volk_32f_s32f_s32f_mod_range_32f_impl_names, | |
4595 | ✗ | get_machine()->volk_32f_s32f_s32f_mod_range_32f_n_impls, | |
4596 | impl_name | ||
4597 | ); | ||
4598 | ✗ | get_machine()->volk_32f_s32f_s32f_mod_range_32f_impls[index]( | |
4599 | outputVector, inputVector, lower_bound, upper_bound, num_points | ||
4600 | ); | ||
4601 | ✗ | } | |
4602 | |||
4603 | ✗ | volk_func_desc_t volk_32f_s32f_s32f_mod_range_32f_get_func_desc(void) { | |
4604 | ✗ | const char **impl_names = get_machine()->volk_32f_s32f_s32f_mod_range_32f_impl_names; | |
4605 | ✗ | const int *impl_deps = get_machine()->volk_32f_s32f_s32f_mod_range_32f_impl_deps; | |
4606 | ✗ | const bool *alignment = get_machine()->volk_32f_s32f_s32f_mod_range_32f_impl_alignment; | |
4607 | ✗ | const size_t n_impls = get_machine()->volk_32f_s32f_s32f_mod_range_32f_n_impls; | |
4608 | ✗ | volk_func_desc_t desc = { | |
4609 | impl_names, | ||
4610 | impl_deps, | ||
4611 | alignment, | ||
4612 | n_impls | ||
4613 | }; | ||
4614 | ✗ | return desc; | |
4615 | } | ||
4616 | |||
4617 | |||
4618 | |||
4619 | ✗ | static inline void __volk_32f_s32f_stddev_32f_d(float* stddev, const float* inputBuffer, const float mean, unsigned int num_points) | |
4620 | { | ||
4621 | |||
4622 | ✗ | if (volk_is_aligned( | |
4623 | ✗ | VOLK_OR_PTR(stddev, | |
4624 | VOLK_OR_PTR(inputBuffer, | ||
4625 | 0)) | ||
4626 | )){ | ||
4627 | ✗ | volk_32f_s32f_stddev_32f_a(stddev, inputBuffer, mean, num_points); | |
4628 | } | ||
4629 | else{ | ||
4630 | ✗ | volk_32f_s32f_stddev_32f_u(stddev, inputBuffer, mean, num_points); | |
4631 | } | ||
4632 | ✗ | } | |
4633 | |||
4634 | ✗ | static inline void __init_volk_32f_s32f_stddev_32f(void) | |
4635 | { | ||
4636 | ✗ | const char *name = get_machine()->volk_32f_s32f_stddev_32f_name; | |
4637 | ✗ | const char **impl_names = get_machine()->volk_32f_s32f_stddev_32f_impl_names; | |
4638 | ✗ | const int *impl_deps = get_machine()->volk_32f_s32f_stddev_32f_impl_deps; | |
4639 | ✗ | const bool *alignment = get_machine()->volk_32f_s32f_stddev_32f_impl_alignment; | |
4640 | ✗ | const size_t n_impls = get_machine()->volk_32f_s32f_stddev_32f_n_impls; | |
4641 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
4642 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
4643 | ✗ | volk_32f_s32f_stddev_32f_a = get_machine()->volk_32f_s32f_stddev_32f_impls[index_a]; | |
4644 | ✗ | volk_32f_s32f_stddev_32f_u = get_machine()->volk_32f_s32f_stddev_32f_impls[index_u]; | |
4645 | |||
4646 | ✗ | assert(volk_32f_s32f_stddev_32f_a); | |
4647 | ✗ | assert(volk_32f_s32f_stddev_32f_u); | |
4648 | |||
4649 | ✗ | volk_32f_s32f_stddev_32f = &__volk_32f_s32f_stddev_32f_d; | |
4650 | ✗ | } | |
4651 | |||
4652 | ✗ | static inline void __volk_32f_s32f_stddev_32f_a(float* stddev, const float* inputBuffer, const float mean, unsigned int num_points) | |
4653 | { | ||
4654 | ✗ | __init_volk_32f_s32f_stddev_32f(); | |
4655 | ✗ | volk_32f_s32f_stddev_32f_a(stddev, inputBuffer, mean, num_points); | |
4656 | ✗ | } | |
4657 | |||
4658 | ✗ | static inline void __volk_32f_s32f_stddev_32f_u(float* stddev, const float* inputBuffer, const float mean, unsigned int num_points) | |
4659 | { | ||
4660 | ✗ | __init_volk_32f_s32f_stddev_32f(); | |
4661 | ✗ | volk_32f_s32f_stddev_32f_u(stddev, inputBuffer, mean, num_points); | |
4662 | ✗ | } | |
4663 | |||
4664 | ✗ | static inline void __volk_32f_s32f_stddev_32f(float* stddev, const float* inputBuffer, const float mean, unsigned int num_points) | |
4665 | { | ||
4666 | ✗ | __init_volk_32f_s32f_stddev_32f(); | |
4667 | ✗ | volk_32f_s32f_stddev_32f(stddev, inputBuffer, mean, num_points); | |
4668 | ✗ | } | |
4669 | |||
4670 | p_32f_s32f_stddev_32f volk_32f_s32f_stddev_32f_a = &__volk_32f_s32f_stddev_32f_a; | ||
4671 | p_32f_s32f_stddev_32f volk_32f_s32f_stddev_32f_u = &__volk_32f_s32f_stddev_32f_u; | ||
4672 | p_32f_s32f_stddev_32f volk_32f_s32f_stddev_32f = &__volk_32f_s32f_stddev_32f; | ||
4673 | |||
4674 | 10 | void volk_32f_s32f_stddev_32f_manual(float* stddev, const float* inputBuffer, const float mean, unsigned int num_points, const char* impl_name) | |
4675 | { | ||
4676 | 10 | const int index = volk_get_index( | |
4677 | 10 | get_machine()->volk_32f_s32f_stddev_32f_impl_names, | |
4678 | 10 | get_machine()->volk_32f_s32f_stddev_32f_n_impls, | |
4679 | impl_name | ||
4680 | ); | ||
4681 | 10 | get_machine()->volk_32f_s32f_stddev_32f_impls[index]( | |
4682 | stddev, inputBuffer, mean, num_points | ||
4683 | ); | ||
4684 | 10 | } | |
4685 | |||
4686 | 282 | volk_func_desc_t volk_32f_s32f_stddev_32f_get_func_desc(void) { | |
4687 | 282 | const char **impl_names = get_machine()->volk_32f_s32f_stddev_32f_impl_names; | |
4688 | 282 | const int *impl_deps = get_machine()->volk_32f_s32f_stddev_32f_impl_deps; | |
4689 | 282 | const bool *alignment = get_machine()->volk_32f_s32f_stddev_32f_impl_alignment; | |
4690 | 282 | const size_t n_impls = get_machine()->volk_32f_s32f_stddev_32f_n_impls; | |
4691 | 282 | volk_func_desc_t desc = { | |
4692 | impl_names, | ||
4693 | impl_deps, | ||
4694 | alignment, | ||
4695 | n_impls | ||
4696 | }; | ||
4697 | 282 | return desc; | |
4698 | } | ||
4699 | |||
4700 | |||
4701 | |||
4702 | ✗ | static inline void __volk_32f_s32f_x2_convert_8u_d(uint8_t* outputVector, const float* inputVector, const float scale, const float bias, unsigned int num_points) | |
4703 | { | ||
4704 | |||
4705 | ✗ | if (volk_is_aligned( | |
4706 | ✗ | VOLK_OR_PTR(outputVector, | |
4707 | VOLK_OR_PTR(inputVector, | ||
4708 | 0)) | ||
4709 | )){ | ||
4710 | ✗ | volk_32f_s32f_x2_convert_8u_a(outputVector, inputVector, scale, bias, num_points); | |
4711 | } | ||
4712 | else{ | ||
4713 | ✗ | volk_32f_s32f_x2_convert_8u_u(outputVector, inputVector, scale, bias, num_points); | |
4714 | } | ||
4715 | ✗ | } | |
4716 | |||
4717 | ✗ | static inline void __init_volk_32f_s32f_x2_convert_8u(void) | |
4718 | { | ||
4719 | ✗ | const char *name = get_machine()->volk_32f_s32f_x2_convert_8u_name; | |
4720 | ✗ | const char **impl_names = get_machine()->volk_32f_s32f_x2_convert_8u_impl_names; | |
4721 | ✗ | const int *impl_deps = get_machine()->volk_32f_s32f_x2_convert_8u_impl_deps; | |
4722 | ✗ | const bool *alignment = get_machine()->volk_32f_s32f_x2_convert_8u_impl_alignment; | |
4723 | ✗ | const size_t n_impls = get_machine()->volk_32f_s32f_x2_convert_8u_n_impls; | |
4724 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
4725 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
4726 | ✗ | volk_32f_s32f_x2_convert_8u_a = get_machine()->volk_32f_s32f_x2_convert_8u_impls[index_a]; | |
4727 | ✗ | volk_32f_s32f_x2_convert_8u_u = get_machine()->volk_32f_s32f_x2_convert_8u_impls[index_u]; | |
4728 | |||
4729 | ✗ | assert(volk_32f_s32f_x2_convert_8u_a); | |
4730 | ✗ | assert(volk_32f_s32f_x2_convert_8u_u); | |
4731 | |||
4732 | ✗ | volk_32f_s32f_x2_convert_8u = &__volk_32f_s32f_x2_convert_8u_d; | |
4733 | ✗ | } | |
4734 | |||
4735 | ✗ | static inline void __volk_32f_s32f_x2_convert_8u_a(uint8_t* outputVector, const float* inputVector, const float scale, const float bias, unsigned int num_points) | |
4736 | { | ||
4737 | ✗ | __init_volk_32f_s32f_x2_convert_8u(); | |
4738 | ✗ | volk_32f_s32f_x2_convert_8u_a(outputVector, inputVector, scale, bias, num_points); | |
4739 | ✗ | } | |
4740 | |||
4741 | ✗ | static inline void __volk_32f_s32f_x2_convert_8u_u(uint8_t* outputVector, const float* inputVector, const float scale, const float bias, unsigned int num_points) | |
4742 | { | ||
4743 | ✗ | __init_volk_32f_s32f_x2_convert_8u(); | |
4744 | ✗ | volk_32f_s32f_x2_convert_8u_u(outputVector, inputVector, scale, bias, num_points); | |
4745 | ✗ | } | |
4746 | |||
4747 | ✗ | static inline void __volk_32f_s32f_x2_convert_8u(uint8_t* outputVector, const float* inputVector, const float scale, const float bias, unsigned int num_points) | |
4748 | { | ||
4749 | ✗ | __init_volk_32f_s32f_x2_convert_8u(); | |
4750 | ✗ | volk_32f_s32f_x2_convert_8u(outputVector, inputVector, scale, bias, num_points); | |
4751 | ✗ | } | |
4752 | |||
4753 | p_32f_s32f_x2_convert_8u volk_32f_s32f_x2_convert_8u_a = &__volk_32f_s32f_x2_convert_8u_a; | ||
4754 | p_32f_s32f_x2_convert_8u volk_32f_s32f_x2_convert_8u_u = &__volk_32f_s32f_x2_convert_8u_u; | ||
4755 | p_32f_s32f_x2_convert_8u volk_32f_s32f_x2_convert_8u = &__volk_32f_s32f_x2_convert_8u; | ||
4756 | |||
4757 | ✗ | void volk_32f_s32f_x2_convert_8u_manual(uint8_t* outputVector, const float* inputVector, const float scale, const float bias, unsigned int num_points, const char* impl_name) | |
4758 | { | ||
4759 | ✗ | const int index = volk_get_index( | |
4760 | ✗ | get_machine()->volk_32f_s32f_x2_convert_8u_impl_names, | |
4761 | ✗ | get_machine()->volk_32f_s32f_x2_convert_8u_n_impls, | |
4762 | impl_name | ||
4763 | ); | ||
4764 | ✗ | get_machine()->volk_32f_s32f_x2_convert_8u_impls[index]( | |
4765 | outputVector, inputVector, scale, bias, num_points | ||
4766 | ); | ||
4767 | ✗ | } | |
4768 | |||
4769 | ✗ | volk_func_desc_t volk_32f_s32f_x2_convert_8u_get_func_desc(void) { | |
4770 | ✗ | const char **impl_names = get_machine()->volk_32f_s32f_x2_convert_8u_impl_names; | |
4771 | ✗ | const int *impl_deps = get_machine()->volk_32f_s32f_x2_convert_8u_impl_deps; | |
4772 | ✗ | const bool *alignment = get_machine()->volk_32f_s32f_x2_convert_8u_impl_alignment; | |
4773 | ✗ | const size_t n_impls = get_machine()->volk_32f_s32f_x2_convert_8u_n_impls; | |
4774 | ✗ | volk_func_desc_t desc = { | |
4775 | impl_names, | ||
4776 | impl_deps, | ||
4777 | alignment, | ||
4778 | n_impls | ||
4779 | }; | ||
4780 | ✗ | return desc; | |
4781 | } | ||
4782 | |||
4783 | |||
4784 | |||
4785 | ✗ | static inline void __volk_32f_sin_32f_d(float* sinVector, const float* inVector, unsigned int num_points) | |
4786 | { | ||
4787 | |||
4788 | ✗ | if (volk_is_aligned( | |
4789 | ✗ | VOLK_OR_PTR(sinVector, | |
4790 | VOLK_OR_PTR(inVector, | ||
4791 | 0)) | ||
4792 | )){ | ||
4793 | ✗ | volk_32f_sin_32f_a(sinVector, inVector, num_points); | |
4794 | } | ||
4795 | else{ | ||
4796 | ✗ | volk_32f_sin_32f_u(sinVector, inVector, num_points); | |
4797 | } | ||
4798 | ✗ | } | |
4799 | |||
4800 | ✗ | static inline void __init_volk_32f_sin_32f(void) | |
4801 | { | ||
4802 | ✗ | const char *name = get_machine()->volk_32f_sin_32f_name; | |
4803 | ✗ | const char **impl_names = get_machine()->volk_32f_sin_32f_impl_names; | |
4804 | ✗ | const int *impl_deps = get_machine()->volk_32f_sin_32f_impl_deps; | |
4805 | ✗ | const bool *alignment = get_machine()->volk_32f_sin_32f_impl_alignment; | |
4806 | ✗ | const size_t n_impls = get_machine()->volk_32f_sin_32f_n_impls; | |
4807 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
4808 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
4809 | ✗ | volk_32f_sin_32f_a = get_machine()->volk_32f_sin_32f_impls[index_a]; | |
4810 | ✗ | volk_32f_sin_32f_u = get_machine()->volk_32f_sin_32f_impls[index_u]; | |
4811 | |||
4812 | ✗ | assert(volk_32f_sin_32f_a); | |
4813 | ✗ | assert(volk_32f_sin_32f_u); | |
4814 | |||
4815 | ✗ | volk_32f_sin_32f = &__volk_32f_sin_32f_d; | |
4816 | ✗ | } | |
4817 | |||
4818 | ✗ | static inline void __volk_32f_sin_32f_a(float* sinVector, const float* inVector, unsigned int num_points) | |
4819 | { | ||
4820 | ✗ | __init_volk_32f_sin_32f(); | |
4821 | ✗ | volk_32f_sin_32f_a(sinVector, inVector, num_points); | |
4822 | ✗ | } | |
4823 | |||
4824 | ✗ | static inline void __volk_32f_sin_32f_u(float* sinVector, const float* inVector, unsigned int num_points) | |
4825 | { | ||
4826 | ✗ | __init_volk_32f_sin_32f(); | |
4827 | ✗ | volk_32f_sin_32f_u(sinVector, inVector, num_points); | |
4828 | ✗ | } | |
4829 | |||
4830 | ✗ | static inline void __volk_32f_sin_32f(float* sinVector, const float* inVector, unsigned int num_points) | |
4831 | { | ||
4832 | ✗ | __init_volk_32f_sin_32f(); | |
4833 | ✗ | volk_32f_sin_32f(sinVector, inVector, num_points); | |
4834 | ✗ | } | |
4835 | |||
4836 | p_32f_sin_32f volk_32f_sin_32f_a = &__volk_32f_sin_32f_a; | ||
4837 | p_32f_sin_32f volk_32f_sin_32f_u = &__volk_32f_sin_32f_u; | ||
4838 | p_32f_sin_32f volk_32f_sin_32f = &__volk_32f_sin_32f; | ||
4839 | |||
4840 | 14 | void volk_32f_sin_32f_manual(float* sinVector, const float* inVector, unsigned int num_points, const char* impl_name) | |
4841 | { | ||
4842 | 14 | const int index = volk_get_index( | |
4843 | 14 | get_machine()->volk_32f_sin_32f_impl_names, | |
4844 | 14 | get_machine()->volk_32f_sin_32f_n_impls, | |
4845 | impl_name | ||
4846 | ); | ||
4847 | 14 | get_machine()->volk_32f_sin_32f_impls[index]( | |
4848 | sinVector, inVector, num_points | ||
4849 | ); | ||
4850 | 14 | } | |
4851 | |||
4852 | 282 | volk_func_desc_t volk_32f_sin_32f_get_func_desc(void) { | |
4853 | 282 | const char **impl_names = get_machine()->volk_32f_sin_32f_impl_names; | |
4854 | 282 | const int *impl_deps = get_machine()->volk_32f_sin_32f_impl_deps; | |
4855 | 282 | const bool *alignment = get_machine()->volk_32f_sin_32f_impl_alignment; | |
4856 | 282 | const size_t n_impls = get_machine()->volk_32f_sin_32f_n_impls; | |
4857 | 282 | volk_func_desc_t desc = { | |
4858 | impl_names, | ||
4859 | impl_deps, | ||
4860 | alignment, | ||
4861 | n_impls | ||
4862 | }; | ||
4863 | 282 | return desc; | |
4864 | } | ||
4865 | |||
4866 | |||
4867 | |||
4868 | ✗ | static inline void __volk_32f_sqrt_32f_d(float* cVector, const float* aVector, unsigned int num_points) | |
4869 | { | ||
4870 | |||
4871 | ✗ | if (volk_is_aligned( | |
4872 | ✗ | VOLK_OR_PTR(cVector, | |
4873 | VOLK_OR_PTR(aVector, | ||
4874 | 0)) | ||
4875 | )){ | ||
4876 | ✗ | volk_32f_sqrt_32f_a(cVector, aVector, num_points); | |
4877 | } | ||
4878 | else{ | ||
4879 | ✗ | volk_32f_sqrt_32f_u(cVector, aVector, num_points); | |
4880 | } | ||
4881 | ✗ | } | |
4882 | |||
4883 | ✗ | static inline void __init_volk_32f_sqrt_32f(void) | |
4884 | { | ||
4885 | ✗ | const char *name = get_machine()->volk_32f_sqrt_32f_name; | |
4886 | ✗ | const char **impl_names = get_machine()->volk_32f_sqrt_32f_impl_names; | |
4887 | ✗ | const int *impl_deps = get_machine()->volk_32f_sqrt_32f_impl_deps; | |
4888 | ✗ | const bool *alignment = get_machine()->volk_32f_sqrt_32f_impl_alignment; | |
4889 | ✗ | const size_t n_impls = get_machine()->volk_32f_sqrt_32f_n_impls; | |
4890 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
4891 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
4892 | ✗ | volk_32f_sqrt_32f_a = get_machine()->volk_32f_sqrt_32f_impls[index_a]; | |
4893 | ✗ | volk_32f_sqrt_32f_u = get_machine()->volk_32f_sqrt_32f_impls[index_u]; | |
4894 | |||
4895 | ✗ | assert(volk_32f_sqrt_32f_a); | |
4896 | ✗ | assert(volk_32f_sqrt_32f_u); | |
4897 | |||
4898 | ✗ | volk_32f_sqrt_32f = &__volk_32f_sqrt_32f_d; | |
4899 | ✗ | } | |
4900 | |||
4901 | ✗ | static inline void __volk_32f_sqrt_32f_a(float* cVector, const float* aVector, unsigned int num_points) | |
4902 | { | ||
4903 | ✗ | __init_volk_32f_sqrt_32f(); | |
4904 | ✗ | volk_32f_sqrt_32f_a(cVector, aVector, num_points); | |
4905 | ✗ | } | |
4906 | |||
4907 | ✗ | static inline void __volk_32f_sqrt_32f_u(float* cVector, const float* aVector, unsigned int num_points) | |
4908 | { | ||
4909 | ✗ | __init_volk_32f_sqrt_32f(); | |
4910 | ✗ | volk_32f_sqrt_32f_u(cVector, aVector, num_points); | |
4911 | ✗ | } | |
4912 | |||
4913 | ✗ | static inline void __volk_32f_sqrt_32f(float* cVector, const float* aVector, unsigned int num_points) | |
4914 | { | ||
4915 | ✗ | __init_volk_32f_sqrt_32f(); | |
4916 | ✗ | volk_32f_sqrt_32f(cVector, aVector, num_points); | |
4917 | ✗ | } | |
4918 | |||
4919 | p_32f_sqrt_32f volk_32f_sqrt_32f_a = &__volk_32f_sqrt_32f_a; | ||
4920 | p_32f_sqrt_32f volk_32f_sqrt_32f_u = &__volk_32f_sqrt_32f_u; | ||
4921 | p_32f_sqrt_32f volk_32f_sqrt_32f = &__volk_32f_sqrt_32f; | ||
4922 | |||
4923 | 8 | void volk_32f_sqrt_32f_manual(float* cVector, const float* aVector, unsigned int num_points, const char* impl_name) | |
4924 | { | ||
4925 | 8 | const int index = volk_get_index( | |
4926 | 8 | get_machine()->volk_32f_sqrt_32f_impl_names, | |
4927 | 8 | get_machine()->volk_32f_sqrt_32f_n_impls, | |
4928 | impl_name | ||
4929 | ); | ||
4930 | 8 | get_machine()->volk_32f_sqrt_32f_impls[index]( | |
4931 | cVector, aVector, num_points | ||
4932 | ); | ||
4933 | 8 | } | |
4934 | |||
4935 | 282 | volk_func_desc_t volk_32f_sqrt_32f_get_func_desc(void) { | |
4936 | 282 | const char **impl_names = get_machine()->volk_32f_sqrt_32f_impl_names; | |
4937 | 282 | const int *impl_deps = get_machine()->volk_32f_sqrt_32f_impl_deps; | |
4938 | 282 | const bool *alignment = get_machine()->volk_32f_sqrt_32f_impl_alignment; | |
4939 | 282 | const size_t n_impls = get_machine()->volk_32f_sqrt_32f_n_impls; | |
4940 | 282 | volk_func_desc_t desc = { | |
4941 | impl_names, | ||
4942 | impl_deps, | ||
4943 | alignment, | ||
4944 | n_impls | ||
4945 | }; | ||
4946 | 282 | return desc; | |
4947 | } | ||
4948 | |||
4949 | |||
4950 | |||
4951 | ✗ | static inline void __volk_32f_stddev_and_mean_32f_x2_d(float* stddev, float* mean, const float* inputBuffer, unsigned int num_points) | |
4952 | { | ||
4953 | |||
4954 | ✗ | if (volk_is_aligned( | |
4955 | ✗ | VOLK_OR_PTR(stddev, | |
4956 | VOLK_OR_PTR(mean, | ||
4957 | VOLK_OR_PTR(inputBuffer, | ||
4958 | 0))) | ||
4959 | )){ | ||
4960 | ✗ | volk_32f_stddev_and_mean_32f_x2_a(stddev, mean, inputBuffer, num_points); | |
4961 | } | ||
4962 | else{ | ||
4963 | ✗ | volk_32f_stddev_and_mean_32f_x2_u(stddev, mean, inputBuffer, num_points); | |
4964 | } | ||
4965 | ✗ | } | |
4966 | |||
4967 | ✗ | static inline void __init_volk_32f_stddev_and_mean_32f_x2(void) | |
4968 | { | ||
4969 | ✗ | const char *name = get_machine()->volk_32f_stddev_and_mean_32f_x2_name; | |
4970 | ✗ | const char **impl_names = get_machine()->volk_32f_stddev_and_mean_32f_x2_impl_names; | |
4971 | ✗ | const int *impl_deps = get_machine()->volk_32f_stddev_and_mean_32f_x2_impl_deps; | |
4972 | ✗ | const bool *alignment = get_machine()->volk_32f_stddev_and_mean_32f_x2_impl_alignment; | |
4973 | ✗ | const size_t n_impls = get_machine()->volk_32f_stddev_and_mean_32f_x2_n_impls; | |
4974 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
4975 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
4976 | ✗ | volk_32f_stddev_and_mean_32f_x2_a = get_machine()->volk_32f_stddev_and_mean_32f_x2_impls[index_a]; | |
4977 | ✗ | volk_32f_stddev_and_mean_32f_x2_u = get_machine()->volk_32f_stddev_and_mean_32f_x2_impls[index_u]; | |
4978 | |||
4979 | ✗ | assert(volk_32f_stddev_and_mean_32f_x2_a); | |
4980 | ✗ | assert(volk_32f_stddev_and_mean_32f_x2_u); | |
4981 | |||
4982 | ✗ | volk_32f_stddev_and_mean_32f_x2 = &__volk_32f_stddev_and_mean_32f_x2_d; | |
4983 | ✗ | } | |
4984 | |||
4985 | ✗ | static inline void __volk_32f_stddev_and_mean_32f_x2_a(float* stddev, float* mean, const float* inputBuffer, unsigned int num_points) | |
4986 | { | ||
4987 | ✗ | __init_volk_32f_stddev_and_mean_32f_x2(); | |
4988 | ✗ | volk_32f_stddev_and_mean_32f_x2_a(stddev, mean, inputBuffer, num_points); | |
4989 | ✗ | } | |
4990 | |||
4991 | ✗ | static inline void __volk_32f_stddev_and_mean_32f_x2_u(float* stddev, float* mean, const float* inputBuffer, unsigned int num_points) | |
4992 | { | ||
4993 | ✗ | __init_volk_32f_stddev_and_mean_32f_x2(); | |
4994 | ✗ | volk_32f_stddev_and_mean_32f_x2_u(stddev, mean, inputBuffer, num_points); | |
4995 | ✗ | } | |
4996 | |||
4997 | ✗ | static inline void __volk_32f_stddev_and_mean_32f_x2(float* stddev, float* mean, const float* inputBuffer, unsigned int num_points) | |
4998 | { | ||
4999 | ✗ | __init_volk_32f_stddev_and_mean_32f_x2(); | |
5000 | ✗ | volk_32f_stddev_and_mean_32f_x2(stddev, mean, inputBuffer, num_points); | |
5001 | ✗ | } | |
5002 | |||
5003 | p_32f_stddev_and_mean_32f_x2 volk_32f_stddev_and_mean_32f_x2_a = &__volk_32f_stddev_and_mean_32f_x2_a; | ||
5004 | p_32f_stddev_and_mean_32f_x2 volk_32f_stddev_and_mean_32f_x2_u = &__volk_32f_stddev_and_mean_32f_x2_u; | ||
5005 | p_32f_stddev_and_mean_32f_x2 volk_32f_stddev_and_mean_32f_x2 = &__volk_32f_stddev_and_mean_32f_x2; | ||
5006 | |||
5007 | 10 | void volk_32f_stddev_and_mean_32f_x2_manual(float* stddev, float* mean, const float* inputBuffer, unsigned int num_points, const char* impl_name) | |
5008 | { | ||
5009 | 10 | const int index = volk_get_index( | |
5010 | 10 | get_machine()->volk_32f_stddev_and_mean_32f_x2_impl_names, | |
5011 | 10 | get_machine()->volk_32f_stddev_and_mean_32f_x2_n_impls, | |
5012 | impl_name | ||
5013 | ); | ||
5014 | 10 | get_machine()->volk_32f_stddev_and_mean_32f_x2_impls[index]( | |
5015 | stddev, mean, inputBuffer, num_points | ||
5016 | ); | ||
5017 | 10 | } | |
5018 | |||
5019 | 282 | volk_func_desc_t volk_32f_stddev_and_mean_32f_x2_get_func_desc(void) { | |
5020 | 282 | const char **impl_names = get_machine()->volk_32f_stddev_and_mean_32f_x2_impl_names; | |
5021 | 282 | const int *impl_deps = get_machine()->volk_32f_stddev_and_mean_32f_x2_impl_deps; | |
5022 | 282 | const bool *alignment = get_machine()->volk_32f_stddev_and_mean_32f_x2_impl_alignment; | |
5023 | 282 | const size_t n_impls = get_machine()->volk_32f_stddev_and_mean_32f_x2_n_impls; | |
5024 | 282 | volk_func_desc_t desc = { | |
5025 | impl_names, | ||
5026 | impl_deps, | ||
5027 | alignment, | ||
5028 | n_impls | ||
5029 | }; | ||
5030 | 282 | return desc; | |
5031 | } | ||
5032 | |||
5033 | |||
5034 | |||
5035 | ✗ | static inline void __volk_32f_tan_32f_d(float* bVector, const float* aVector, unsigned int num_points) | |
5036 | { | ||
5037 | |||
5038 | ✗ | if (volk_is_aligned( | |
5039 | ✗ | VOLK_OR_PTR(bVector, | |
5040 | VOLK_OR_PTR(aVector, | ||
5041 | 0)) | ||
5042 | )){ | ||
5043 | ✗ | volk_32f_tan_32f_a(bVector, aVector, num_points); | |
5044 | } | ||
5045 | else{ | ||
5046 | ✗ | volk_32f_tan_32f_u(bVector, aVector, num_points); | |
5047 | } | ||
5048 | ✗ | } | |
5049 | |||
5050 | ✗ | static inline void __init_volk_32f_tan_32f(void) | |
5051 | { | ||
5052 | ✗ | const char *name = get_machine()->volk_32f_tan_32f_name; | |
5053 | ✗ | const char **impl_names = get_machine()->volk_32f_tan_32f_impl_names; | |
5054 | ✗ | const int *impl_deps = get_machine()->volk_32f_tan_32f_impl_deps; | |
5055 | ✗ | const bool *alignment = get_machine()->volk_32f_tan_32f_impl_alignment; | |
5056 | ✗ | const size_t n_impls = get_machine()->volk_32f_tan_32f_n_impls; | |
5057 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
5058 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
5059 | ✗ | volk_32f_tan_32f_a = get_machine()->volk_32f_tan_32f_impls[index_a]; | |
5060 | ✗ | volk_32f_tan_32f_u = get_machine()->volk_32f_tan_32f_impls[index_u]; | |
5061 | |||
5062 | ✗ | assert(volk_32f_tan_32f_a); | |
5063 | ✗ | assert(volk_32f_tan_32f_u); | |
5064 | |||
5065 | ✗ | volk_32f_tan_32f = &__volk_32f_tan_32f_d; | |
5066 | ✗ | } | |
5067 | |||
5068 | ✗ | static inline void __volk_32f_tan_32f_a(float* bVector, const float* aVector, unsigned int num_points) | |
5069 | { | ||
5070 | ✗ | __init_volk_32f_tan_32f(); | |
5071 | ✗ | volk_32f_tan_32f_a(bVector, aVector, num_points); | |
5072 | ✗ | } | |
5073 | |||
5074 | ✗ | static inline void __volk_32f_tan_32f_u(float* bVector, const float* aVector, unsigned int num_points) | |
5075 | { | ||
5076 | ✗ | __init_volk_32f_tan_32f(); | |
5077 | ✗ | volk_32f_tan_32f_u(bVector, aVector, num_points); | |
5078 | ✗ | } | |
5079 | |||
5080 | ✗ | static inline void __volk_32f_tan_32f(float* bVector, const float* aVector, unsigned int num_points) | |
5081 | { | ||
5082 | ✗ | __init_volk_32f_tan_32f(); | |
5083 | ✗ | volk_32f_tan_32f(bVector, aVector, num_points); | |
5084 | ✗ | } | |
5085 | |||
5086 | p_32f_tan_32f volk_32f_tan_32f_a = &__volk_32f_tan_32f_a; | ||
5087 | p_32f_tan_32f volk_32f_tan_32f_u = &__volk_32f_tan_32f_u; | ||
5088 | p_32f_tan_32f volk_32f_tan_32f = &__volk_32f_tan_32f; | ||
5089 | |||
5090 | 14 | void volk_32f_tan_32f_manual(float* bVector, const float* aVector, unsigned int num_points, const char* impl_name) | |
5091 | { | ||
5092 | 14 | const int index = volk_get_index( | |
5093 | 14 | get_machine()->volk_32f_tan_32f_impl_names, | |
5094 | 14 | get_machine()->volk_32f_tan_32f_n_impls, | |
5095 | impl_name | ||
5096 | ); | ||
5097 | 14 | get_machine()->volk_32f_tan_32f_impls[index]( | |
5098 | bVector, aVector, num_points | ||
5099 | ); | ||
5100 | 14 | } | |
5101 | |||
5102 | 282 | volk_func_desc_t volk_32f_tan_32f_get_func_desc(void) { | |
5103 | 282 | const char **impl_names = get_machine()->volk_32f_tan_32f_impl_names; | |
5104 | 282 | const int *impl_deps = get_machine()->volk_32f_tan_32f_impl_deps; | |
5105 | 282 | const bool *alignment = get_machine()->volk_32f_tan_32f_impl_alignment; | |
5106 | 282 | const size_t n_impls = get_machine()->volk_32f_tan_32f_n_impls; | |
5107 | 282 | volk_func_desc_t desc = { | |
5108 | impl_names, | ||
5109 | impl_deps, | ||
5110 | alignment, | ||
5111 | n_impls | ||
5112 | }; | ||
5113 | 282 | return desc; | |
5114 | } | ||
5115 | |||
5116 | |||
5117 | |||
5118 | ✗ | static inline void __volk_32f_tanh_32f_d(float* cVector, const float* aVector, unsigned int num_points) | |
5119 | { | ||
5120 | |||
5121 | ✗ | if (volk_is_aligned( | |
5122 | ✗ | VOLK_OR_PTR(cVector, | |
5123 | VOLK_OR_PTR(aVector, | ||
5124 | 0)) | ||
5125 | )){ | ||
5126 | ✗ | volk_32f_tanh_32f_a(cVector, aVector, num_points); | |
5127 | } | ||
5128 | else{ | ||
5129 | ✗ | volk_32f_tanh_32f_u(cVector, aVector, num_points); | |
5130 | } | ||
5131 | ✗ | } | |
5132 | |||
5133 | ✗ | static inline void __init_volk_32f_tanh_32f(void) | |
5134 | { | ||
5135 | ✗ | const char *name = get_machine()->volk_32f_tanh_32f_name; | |
5136 | ✗ | const char **impl_names = get_machine()->volk_32f_tanh_32f_impl_names; | |
5137 | ✗ | const int *impl_deps = get_machine()->volk_32f_tanh_32f_impl_deps; | |
5138 | ✗ | const bool *alignment = get_machine()->volk_32f_tanh_32f_impl_alignment; | |
5139 | ✗ | const size_t n_impls = get_machine()->volk_32f_tanh_32f_n_impls; | |
5140 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
5141 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
5142 | ✗ | volk_32f_tanh_32f_a = get_machine()->volk_32f_tanh_32f_impls[index_a]; | |
5143 | ✗ | volk_32f_tanh_32f_u = get_machine()->volk_32f_tanh_32f_impls[index_u]; | |
5144 | |||
5145 | ✗ | assert(volk_32f_tanh_32f_a); | |
5146 | ✗ | assert(volk_32f_tanh_32f_u); | |
5147 | |||
5148 | ✗ | volk_32f_tanh_32f = &__volk_32f_tanh_32f_d; | |
5149 | ✗ | } | |
5150 | |||
5151 | ✗ | static inline void __volk_32f_tanh_32f_a(float* cVector, const float* aVector, unsigned int num_points) | |
5152 | { | ||
5153 | ✗ | __init_volk_32f_tanh_32f(); | |
5154 | ✗ | volk_32f_tanh_32f_a(cVector, aVector, num_points); | |
5155 | ✗ | } | |
5156 | |||
5157 | ✗ | static inline void __volk_32f_tanh_32f_u(float* cVector, const float* aVector, unsigned int num_points) | |
5158 | { | ||
5159 | ✗ | __init_volk_32f_tanh_32f(); | |
5160 | ✗ | volk_32f_tanh_32f_u(cVector, aVector, num_points); | |
5161 | ✗ | } | |
5162 | |||
5163 | ✗ | static inline void __volk_32f_tanh_32f(float* cVector, const float* aVector, unsigned int num_points) | |
5164 | { | ||
5165 | ✗ | __init_volk_32f_tanh_32f(); | |
5166 | ✗ | volk_32f_tanh_32f(cVector, aVector, num_points); | |
5167 | ✗ | } | |
5168 | |||
5169 | p_32f_tanh_32f volk_32f_tanh_32f_a = &__volk_32f_tanh_32f_a; | ||
5170 | p_32f_tanh_32f volk_32f_tanh_32f_u = &__volk_32f_tanh_32f_u; | ||
5171 | p_32f_tanh_32f volk_32f_tanh_32f = &__volk_32f_tanh_32f; | ||
5172 | |||
5173 | 16 | void volk_32f_tanh_32f_manual(float* cVector, const float* aVector, unsigned int num_points, const char* impl_name) | |
5174 | { | ||
5175 | 16 | const int index = volk_get_index( | |
5176 | 16 | get_machine()->volk_32f_tanh_32f_impl_names, | |
5177 | 16 | get_machine()->volk_32f_tanh_32f_n_impls, | |
5178 | impl_name | ||
5179 | ); | ||
5180 | 16 | get_machine()->volk_32f_tanh_32f_impls[index]( | |
5181 | cVector, aVector, num_points | ||
5182 | ); | ||
5183 | 16 | } | |
5184 | |||
5185 | 282 | volk_func_desc_t volk_32f_tanh_32f_get_func_desc(void) { | |
5186 | 282 | const char **impl_names = get_machine()->volk_32f_tanh_32f_impl_names; | |
5187 | 282 | const int *impl_deps = get_machine()->volk_32f_tanh_32f_impl_deps; | |
5188 | 282 | const bool *alignment = get_machine()->volk_32f_tanh_32f_impl_alignment; | |
5189 | 282 | const size_t n_impls = get_machine()->volk_32f_tanh_32f_n_impls; | |
5190 | 282 | volk_func_desc_t desc = { | |
5191 | impl_names, | ||
5192 | impl_deps, | ||
5193 | alignment, | ||
5194 | n_impls | ||
5195 | }; | ||
5196 | 282 | return desc; | |
5197 | } | ||
5198 | |||
5199 | |||
5200 | |||
5201 | ✗ | static inline void __volk_32f_x2_add_32f_d(float* cVector, const float* aVector, const float* bVector, unsigned int num_points) | |
5202 | { | ||
5203 | |||
5204 | ✗ | if (volk_is_aligned( | |
5205 | ✗ | VOLK_OR_PTR(cVector, | |
5206 | VOLK_OR_PTR(aVector, | ||
5207 | VOLK_OR_PTR(bVector, | ||
5208 | 0))) | ||
5209 | )){ | ||
5210 | ✗ | volk_32f_x2_add_32f_a(cVector, aVector, bVector, num_points); | |
5211 | } | ||
5212 | else{ | ||
5213 | ✗ | volk_32f_x2_add_32f_u(cVector, aVector, bVector, num_points); | |
5214 | } | ||
5215 | ✗ | } | |
5216 | |||
5217 | ✗ | static inline void __init_volk_32f_x2_add_32f(void) | |
5218 | { | ||
5219 | ✗ | const char *name = get_machine()->volk_32f_x2_add_32f_name; | |
5220 | ✗ | const char **impl_names = get_machine()->volk_32f_x2_add_32f_impl_names; | |
5221 | ✗ | const int *impl_deps = get_machine()->volk_32f_x2_add_32f_impl_deps; | |
5222 | ✗ | const bool *alignment = get_machine()->volk_32f_x2_add_32f_impl_alignment; | |
5223 | ✗ | const size_t n_impls = get_machine()->volk_32f_x2_add_32f_n_impls; | |
5224 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
5225 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
5226 | ✗ | volk_32f_x2_add_32f_a = get_machine()->volk_32f_x2_add_32f_impls[index_a]; | |
5227 | ✗ | volk_32f_x2_add_32f_u = get_machine()->volk_32f_x2_add_32f_impls[index_u]; | |
5228 | |||
5229 | ✗ | assert(volk_32f_x2_add_32f_a); | |
5230 | ✗ | assert(volk_32f_x2_add_32f_u); | |
5231 | |||
5232 | ✗ | volk_32f_x2_add_32f = &__volk_32f_x2_add_32f_d; | |
5233 | ✗ | } | |
5234 | |||
5235 | ✗ | static inline void __volk_32f_x2_add_32f_a(float* cVector, const float* aVector, const float* bVector, unsigned int num_points) | |
5236 | { | ||
5237 | ✗ | __init_volk_32f_x2_add_32f(); | |
5238 | ✗ | volk_32f_x2_add_32f_a(cVector, aVector, bVector, num_points); | |
5239 | ✗ | } | |
5240 | |||
5241 | ✗ | static inline void __volk_32f_x2_add_32f_u(float* cVector, const float* aVector, const float* bVector, unsigned int num_points) | |
5242 | { | ||
5243 | ✗ | __init_volk_32f_x2_add_32f(); | |
5244 | ✗ | volk_32f_x2_add_32f_u(cVector, aVector, bVector, num_points); | |
5245 | ✗ | } | |
5246 | |||
5247 | ✗ | static inline void __volk_32f_x2_add_32f(float* cVector, const float* aVector, const float* bVector, unsigned int num_points) | |
5248 | { | ||
5249 | ✗ | __init_volk_32f_x2_add_32f(); | |
5250 | ✗ | volk_32f_x2_add_32f(cVector, aVector, bVector, num_points); | |
5251 | ✗ | } | |
5252 | |||
5253 | p_32f_x2_add_32f volk_32f_x2_add_32f_a = &__volk_32f_x2_add_32f_a; | ||
5254 | p_32f_x2_add_32f volk_32f_x2_add_32f_u = &__volk_32f_x2_add_32f_u; | ||
5255 | p_32f_x2_add_32f volk_32f_x2_add_32f = &__volk_32f_x2_add_32f; | ||
5256 | |||
5257 | 14 | void volk_32f_x2_add_32f_manual(float* cVector, const float* aVector, const float* bVector, unsigned int num_points, const char* impl_name) | |
5258 | { | ||
5259 | 14 | const int index = volk_get_index( | |
5260 | 14 | get_machine()->volk_32f_x2_add_32f_impl_names, | |
5261 | 14 | get_machine()->volk_32f_x2_add_32f_n_impls, | |
5262 | impl_name | ||
5263 | ); | ||
5264 | 14 | get_machine()->volk_32f_x2_add_32f_impls[index]( | |
5265 | cVector, aVector, bVector, num_points | ||
5266 | ); | ||
5267 | 14 | } | |
5268 | |||
5269 | 282 | volk_func_desc_t volk_32f_x2_add_32f_get_func_desc(void) { | |
5270 | 282 | const char **impl_names = get_machine()->volk_32f_x2_add_32f_impl_names; | |
5271 | 282 | const int *impl_deps = get_machine()->volk_32f_x2_add_32f_impl_deps; | |
5272 | 282 | const bool *alignment = get_machine()->volk_32f_x2_add_32f_impl_alignment; | |
5273 | 282 | const size_t n_impls = get_machine()->volk_32f_x2_add_32f_n_impls; | |
5274 | 282 | volk_func_desc_t desc = { | |
5275 | impl_names, | ||
5276 | impl_deps, | ||
5277 | alignment, | ||
5278 | n_impls | ||
5279 | }; | ||
5280 | 282 | return desc; | |
5281 | } | ||
5282 | |||
5283 | |||
5284 | |||
5285 | ✗ | static inline void __volk_32f_x2_divide_32f_d(float* cVector, const float* aVector, const float* bVector, unsigned int num_points) | |
5286 | { | ||
5287 | |||
5288 | ✗ | if (volk_is_aligned( | |
5289 | ✗ | VOLK_OR_PTR(cVector, | |
5290 | VOLK_OR_PTR(aVector, | ||
5291 | VOLK_OR_PTR(bVector, | ||
5292 | 0))) | ||
5293 | )){ | ||
5294 | ✗ | volk_32f_x2_divide_32f_a(cVector, aVector, bVector, num_points); | |
5295 | } | ||
5296 | else{ | ||
5297 | ✗ | volk_32f_x2_divide_32f_u(cVector, aVector, bVector, num_points); | |
5298 | } | ||
5299 | ✗ | } | |
5300 | |||
5301 | ✗ | static inline void __init_volk_32f_x2_divide_32f(void) | |
5302 | { | ||
5303 | ✗ | const char *name = get_machine()->volk_32f_x2_divide_32f_name; | |
5304 | ✗ | const char **impl_names = get_machine()->volk_32f_x2_divide_32f_impl_names; | |
5305 | ✗ | const int *impl_deps = get_machine()->volk_32f_x2_divide_32f_impl_deps; | |
5306 | ✗ | const bool *alignment = get_machine()->volk_32f_x2_divide_32f_impl_alignment; | |
5307 | ✗ | const size_t n_impls = get_machine()->volk_32f_x2_divide_32f_n_impls; | |
5308 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
5309 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
5310 | ✗ | volk_32f_x2_divide_32f_a = get_machine()->volk_32f_x2_divide_32f_impls[index_a]; | |
5311 | ✗ | volk_32f_x2_divide_32f_u = get_machine()->volk_32f_x2_divide_32f_impls[index_u]; | |
5312 | |||
5313 | ✗ | assert(volk_32f_x2_divide_32f_a); | |
5314 | ✗ | assert(volk_32f_x2_divide_32f_u); | |
5315 | |||
5316 | ✗ | volk_32f_x2_divide_32f = &__volk_32f_x2_divide_32f_d; | |
5317 | ✗ | } | |
5318 | |||
5319 | ✗ | static inline void __volk_32f_x2_divide_32f_a(float* cVector, const float* aVector, const float* bVector, unsigned int num_points) | |
5320 | { | ||
5321 | ✗ | __init_volk_32f_x2_divide_32f(); | |
5322 | ✗ | volk_32f_x2_divide_32f_a(cVector, aVector, bVector, num_points); | |
5323 | ✗ | } | |
5324 | |||
5325 | ✗ | static inline void __volk_32f_x2_divide_32f_u(float* cVector, const float* aVector, const float* bVector, unsigned int num_points) | |
5326 | { | ||
5327 | ✗ | __init_volk_32f_x2_divide_32f(); | |
5328 | ✗ | volk_32f_x2_divide_32f_u(cVector, aVector, bVector, num_points); | |
5329 | ✗ | } | |
5330 | |||
5331 | ✗ | static inline void __volk_32f_x2_divide_32f(float* cVector, const float* aVector, const float* bVector, unsigned int num_points) | |
5332 | { | ||
5333 | ✗ | __init_volk_32f_x2_divide_32f(); | |
5334 | ✗ | volk_32f_x2_divide_32f(cVector, aVector, bVector, num_points); | |
5335 | ✗ | } | |
5336 | |||
5337 | p_32f_x2_divide_32f volk_32f_x2_divide_32f_a = &__volk_32f_x2_divide_32f_a; | ||
5338 | p_32f_x2_divide_32f volk_32f_x2_divide_32f_u = &__volk_32f_x2_divide_32f_u; | ||
5339 | p_32f_x2_divide_32f volk_32f_x2_divide_32f = &__volk_32f_x2_divide_32f; | ||
5340 | |||
5341 | 10 | void volk_32f_x2_divide_32f_manual(float* cVector, const float* aVector, const float* bVector, unsigned int num_points, const char* impl_name) | |
5342 | { | ||
5343 | 10 | const int index = volk_get_index( | |
5344 | 10 | get_machine()->volk_32f_x2_divide_32f_impl_names, | |
5345 | 10 | get_machine()->volk_32f_x2_divide_32f_n_impls, | |
5346 | impl_name | ||
5347 | ); | ||
5348 | 10 | get_machine()->volk_32f_x2_divide_32f_impls[index]( | |
5349 | cVector, aVector, bVector, num_points | ||
5350 | ); | ||
5351 | 10 | } | |
5352 | |||
5353 | 282 | volk_func_desc_t volk_32f_x2_divide_32f_get_func_desc(void) { | |
5354 | 282 | const char **impl_names = get_machine()->volk_32f_x2_divide_32f_impl_names; | |
5355 | 282 | const int *impl_deps = get_machine()->volk_32f_x2_divide_32f_impl_deps; | |
5356 | 282 | const bool *alignment = get_machine()->volk_32f_x2_divide_32f_impl_alignment; | |
5357 | 282 | const size_t n_impls = get_machine()->volk_32f_x2_divide_32f_n_impls; | |
5358 | 282 | volk_func_desc_t desc = { | |
5359 | impl_names, | ||
5360 | impl_deps, | ||
5361 | alignment, | ||
5362 | n_impls | ||
5363 | }; | ||
5364 | 282 | return desc; | |
5365 | } | ||
5366 | |||
5367 | |||
5368 | |||
5369 | ✗ | static inline void __volk_32f_x2_dot_prod_16i_d(int16_t* result, const float* input, const float* taps, unsigned int num_points) | |
5370 | { | ||
5371 | |||
5372 | ✗ | if (volk_is_aligned( | |
5373 | ✗ | VOLK_OR_PTR(result, | |
5374 | VOLK_OR_PTR(input, | ||
5375 | VOLK_OR_PTR(taps, | ||
5376 | 0))) | ||
5377 | )){ | ||
5378 | ✗ | volk_32f_x2_dot_prod_16i_a(result, input, taps, num_points); | |
5379 | } | ||
5380 | else{ | ||
5381 | ✗ | volk_32f_x2_dot_prod_16i_u(result, input, taps, num_points); | |
5382 | } | ||
5383 | ✗ | } | |
5384 | |||
5385 | ✗ | static inline void __init_volk_32f_x2_dot_prod_16i(void) | |
5386 | { | ||
5387 | ✗ | const char *name = get_machine()->volk_32f_x2_dot_prod_16i_name; | |
5388 | ✗ | const char **impl_names = get_machine()->volk_32f_x2_dot_prod_16i_impl_names; | |
5389 | ✗ | const int *impl_deps = get_machine()->volk_32f_x2_dot_prod_16i_impl_deps; | |
5390 | ✗ | const bool *alignment = get_machine()->volk_32f_x2_dot_prod_16i_impl_alignment; | |
5391 | ✗ | const size_t n_impls = get_machine()->volk_32f_x2_dot_prod_16i_n_impls; | |
5392 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
5393 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
5394 | ✗ | volk_32f_x2_dot_prod_16i_a = get_machine()->volk_32f_x2_dot_prod_16i_impls[index_a]; | |
5395 | ✗ | volk_32f_x2_dot_prod_16i_u = get_machine()->volk_32f_x2_dot_prod_16i_impls[index_u]; | |
5396 | |||
5397 | ✗ | assert(volk_32f_x2_dot_prod_16i_a); | |
5398 | ✗ | assert(volk_32f_x2_dot_prod_16i_u); | |
5399 | |||
5400 | ✗ | volk_32f_x2_dot_prod_16i = &__volk_32f_x2_dot_prod_16i_d; | |
5401 | ✗ | } | |
5402 | |||
5403 | ✗ | static inline void __volk_32f_x2_dot_prod_16i_a(int16_t* result, const float* input, const float* taps, unsigned int num_points) | |
5404 | { | ||
5405 | ✗ | __init_volk_32f_x2_dot_prod_16i(); | |
5406 | ✗ | volk_32f_x2_dot_prod_16i_a(result, input, taps, num_points); | |
5407 | ✗ | } | |
5408 | |||
5409 | ✗ | static inline void __volk_32f_x2_dot_prod_16i_u(int16_t* result, const float* input, const float* taps, unsigned int num_points) | |
5410 | { | ||
5411 | ✗ | __init_volk_32f_x2_dot_prod_16i(); | |
5412 | ✗ | volk_32f_x2_dot_prod_16i_u(result, input, taps, num_points); | |
5413 | ✗ | } | |
5414 | |||
5415 | ✗ | static inline void __volk_32f_x2_dot_prod_16i(int16_t* result, const float* input, const float* taps, unsigned int num_points) | |
5416 | { | ||
5417 | ✗ | __init_volk_32f_x2_dot_prod_16i(); | |
5418 | ✗ | volk_32f_x2_dot_prod_16i(result, input, taps, num_points); | |
5419 | ✗ | } | |
5420 | |||
5421 | p_32f_x2_dot_prod_16i volk_32f_x2_dot_prod_16i_a = &__volk_32f_x2_dot_prod_16i_a; | ||
5422 | p_32f_x2_dot_prod_16i volk_32f_x2_dot_prod_16i_u = &__volk_32f_x2_dot_prod_16i_u; | ||
5423 | p_32f_x2_dot_prod_16i volk_32f_x2_dot_prod_16i = &__volk_32f_x2_dot_prod_16i; | ||
5424 | |||
5425 | 14 | void volk_32f_x2_dot_prod_16i_manual(int16_t* result, const float* input, const float* taps, unsigned int num_points, const char* impl_name) | |
5426 | { | ||
5427 | 14 | const int index = volk_get_index( | |
5428 | 14 | get_machine()->volk_32f_x2_dot_prod_16i_impl_names, | |
5429 | 14 | get_machine()->volk_32f_x2_dot_prod_16i_n_impls, | |
5430 | impl_name | ||
5431 | ); | ||
5432 | 14 | get_machine()->volk_32f_x2_dot_prod_16i_impls[index]( | |
5433 | result, input, taps, num_points | ||
5434 | ); | ||
5435 | 14 | } | |
5436 | |||
5437 | 282 | volk_func_desc_t volk_32f_x2_dot_prod_16i_get_func_desc(void) { | |
5438 | 282 | const char **impl_names = get_machine()->volk_32f_x2_dot_prod_16i_impl_names; | |
5439 | 282 | const int *impl_deps = get_machine()->volk_32f_x2_dot_prod_16i_impl_deps; | |
5440 | 282 | const bool *alignment = get_machine()->volk_32f_x2_dot_prod_16i_impl_alignment; | |
5441 | 282 | const size_t n_impls = get_machine()->volk_32f_x2_dot_prod_16i_n_impls; | |
5442 | 282 | volk_func_desc_t desc = { | |
5443 | impl_names, | ||
5444 | impl_deps, | ||
5445 | alignment, | ||
5446 | n_impls | ||
5447 | }; | ||
5448 | 282 | return desc; | |
5449 | } | ||
5450 | |||
5451 | |||
5452 | |||
5453 | ✗ | static inline void __volk_32f_x2_dot_prod_32f_d(float* result, const float* input, const float* taps, unsigned int num_points) | |
5454 | { | ||
5455 | |||
5456 | ✗ | if (volk_is_aligned( | |
5457 | ✗ | VOLK_OR_PTR(result, | |
5458 | VOLK_OR_PTR(input, | ||
5459 | VOLK_OR_PTR(taps, | ||
5460 | 0))) | ||
5461 | )){ | ||
5462 | ✗ | volk_32f_x2_dot_prod_32f_a(result, input, taps, num_points); | |
5463 | } | ||
5464 | else{ | ||
5465 | ✗ | volk_32f_x2_dot_prod_32f_u(result, input, taps, num_points); | |
5466 | } | ||
5467 | ✗ | } | |
5468 | |||
5469 | ✗ | static inline void __init_volk_32f_x2_dot_prod_32f(void) | |
5470 | { | ||
5471 | ✗ | const char *name = get_machine()->volk_32f_x2_dot_prod_32f_name; | |
5472 | ✗ | const char **impl_names = get_machine()->volk_32f_x2_dot_prod_32f_impl_names; | |
5473 | ✗ | const int *impl_deps = get_machine()->volk_32f_x2_dot_prod_32f_impl_deps; | |
5474 | ✗ | const bool *alignment = get_machine()->volk_32f_x2_dot_prod_32f_impl_alignment; | |
5475 | ✗ | const size_t n_impls = get_machine()->volk_32f_x2_dot_prod_32f_n_impls; | |
5476 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
5477 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
5478 | ✗ | volk_32f_x2_dot_prod_32f_a = get_machine()->volk_32f_x2_dot_prod_32f_impls[index_a]; | |
5479 | ✗ | volk_32f_x2_dot_prod_32f_u = get_machine()->volk_32f_x2_dot_prod_32f_impls[index_u]; | |
5480 | |||
5481 | ✗ | assert(volk_32f_x2_dot_prod_32f_a); | |
5482 | ✗ | assert(volk_32f_x2_dot_prod_32f_u); | |
5483 | |||
5484 | ✗ | volk_32f_x2_dot_prod_32f = &__volk_32f_x2_dot_prod_32f_d; | |
5485 | ✗ | } | |
5486 | |||
5487 | ✗ | static inline void __volk_32f_x2_dot_prod_32f_a(float* result, const float* input, const float* taps, unsigned int num_points) | |
5488 | { | ||
5489 | ✗ | __init_volk_32f_x2_dot_prod_32f(); | |
5490 | ✗ | volk_32f_x2_dot_prod_32f_a(result, input, taps, num_points); | |
5491 | ✗ | } | |
5492 | |||
5493 | ✗ | static inline void __volk_32f_x2_dot_prod_32f_u(float* result, const float* input, const float* taps, unsigned int num_points) | |
5494 | { | ||
5495 | ✗ | __init_volk_32f_x2_dot_prod_32f(); | |
5496 | ✗ | volk_32f_x2_dot_prod_32f_u(result, input, taps, num_points); | |
5497 | ✗ | } | |
5498 | |||
5499 | ✗ | static inline void __volk_32f_x2_dot_prod_32f(float* result, const float* input, const float* taps, unsigned int num_points) | |
5500 | { | ||
5501 | ✗ | __init_volk_32f_x2_dot_prod_32f(); | |
5502 | ✗ | volk_32f_x2_dot_prod_32f(result, input, taps, num_points); | |
5503 | ✗ | } | |
5504 | |||
5505 | p_32f_x2_dot_prod_32f volk_32f_x2_dot_prod_32f_a = &__volk_32f_x2_dot_prod_32f_a; | ||
5506 | p_32f_x2_dot_prod_32f volk_32f_x2_dot_prod_32f_u = &__volk_32f_x2_dot_prod_32f_u; | ||
5507 | p_32f_x2_dot_prod_32f volk_32f_x2_dot_prod_32f = &__volk_32f_x2_dot_prod_32f; | ||
5508 | |||
5509 | 24 | void volk_32f_x2_dot_prod_32f_manual(float* result, const float* input, const float* taps, unsigned int num_points, const char* impl_name) | |
5510 | { | ||
5511 | 24 | const int index = volk_get_index( | |
5512 | 24 | get_machine()->volk_32f_x2_dot_prod_32f_impl_names, | |
5513 | 24 | get_machine()->volk_32f_x2_dot_prod_32f_n_impls, | |
5514 | impl_name | ||
5515 | ); | ||
5516 | 24 | get_machine()->volk_32f_x2_dot_prod_32f_impls[index]( | |
5517 | result, input, taps, num_points | ||
5518 | ); | ||
5519 | 24 | } | |
5520 | |||
5521 | 282 | volk_func_desc_t volk_32f_x2_dot_prod_32f_get_func_desc(void) { | |
5522 | 282 | const char **impl_names = get_machine()->volk_32f_x2_dot_prod_32f_impl_names; | |
5523 | 282 | const int *impl_deps = get_machine()->volk_32f_x2_dot_prod_32f_impl_deps; | |
5524 | 282 | const bool *alignment = get_machine()->volk_32f_x2_dot_prod_32f_impl_alignment; | |
5525 | 282 | const size_t n_impls = get_machine()->volk_32f_x2_dot_prod_32f_n_impls; | |
5526 | 282 | volk_func_desc_t desc = { | |
5527 | impl_names, | ||
5528 | impl_deps, | ||
5529 | alignment, | ||
5530 | n_impls | ||
5531 | }; | ||
5532 | 282 | return desc; | |
5533 | } | ||
5534 | |||
5535 | |||
5536 | |||
5537 | ✗ | static inline void __volk_32f_x2_fm_detectpuppet_32f_d(float* outputVector, const float* inputVector, float* saveValue, unsigned int num_points) | |
5538 | { | ||
5539 | |||
5540 | ✗ | if (volk_is_aligned( | |
5541 | ✗ | VOLK_OR_PTR(outputVector, | |
5542 | VOLK_OR_PTR(inputVector, | ||
5543 | VOLK_OR_PTR(saveValue, | ||
5544 | 0))) | ||
5545 | )){ | ||
5546 | ✗ | volk_32f_x2_fm_detectpuppet_32f_a(outputVector, inputVector, saveValue, num_points); | |
5547 | } | ||
5548 | else{ | ||
5549 | ✗ | volk_32f_x2_fm_detectpuppet_32f_u(outputVector, inputVector, saveValue, num_points); | |
5550 | } | ||
5551 | ✗ | } | |
5552 | |||
5553 | ✗ | static inline void __init_volk_32f_x2_fm_detectpuppet_32f(void) | |
5554 | { | ||
5555 | ✗ | const char *name = get_machine()->volk_32f_x2_fm_detectpuppet_32f_name; | |
5556 | ✗ | const char **impl_names = get_machine()->volk_32f_x2_fm_detectpuppet_32f_impl_names; | |
5557 | ✗ | const int *impl_deps = get_machine()->volk_32f_x2_fm_detectpuppet_32f_impl_deps; | |
5558 | ✗ | const bool *alignment = get_machine()->volk_32f_x2_fm_detectpuppet_32f_impl_alignment; | |
5559 | ✗ | const size_t n_impls = get_machine()->volk_32f_x2_fm_detectpuppet_32f_n_impls; | |
5560 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
5561 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
5562 | ✗ | volk_32f_x2_fm_detectpuppet_32f_a = get_machine()->volk_32f_x2_fm_detectpuppet_32f_impls[index_a]; | |
5563 | ✗ | volk_32f_x2_fm_detectpuppet_32f_u = get_machine()->volk_32f_x2_fm_detectpuppet_32f_impls[index_u]; | |
5564 | |||
5565 | ✗ | assert(volk_32f_x2_fm_detectpuppet_32f_a); | |
5566 | ✗ | assert(volk_32f_x2_fm_detectpuppet_32f_u); | |
5567 | |||
5568 | ✗ | volk_32f_x2_fm_detectpuppet_32f = &__volk_32f_x2_fm_detectpuppet_32f_d; | |
5569 | ✗ | } | |
5570 | |||
5571 | ✗ | static inline void __volk_32f_x2_fm_detectpuppet_32f_a(float* outputVector, const float* inputVector, float* saveValue, unsigned int num_points) | |
5572 | { | ||
5573 | ✗ | __init_volk_32f_x2_fm_detectpuppet_32f(); | |
5574 | ✗ | volk_32f_x2_fm_detectpuppet_32f_a(outputVector, inputVector, saveValue, num_points); | |
5575 | ✗ | } | |
5576 | |||
5577 | ✗ | static inline void __volk_32f_x2_fm_detectpuppet_32f_u(float* outputVector, const float* inputVector, float* saveValue, unsigned int num_points) | |
5578 | { | ||
5579 | ✗ | __init_volk_32f_x2_fm_detectpuppet_32f(); | |
5580 | ✗ | volk_32f_x2_fm_detectpuppet_32f_u(outputVector, inputVector, saveValue, num_points); | |
5581 | ✗ | } | |
5582 | |||
5583 | ✗ | static inline void __volk_32f_x2_fm_detectpuppet_32f(float* outputVector, const float* inputVector, float* saveValue, unsigned int num_points) | |
5584 | { | ||
5585 | ✗ | __init_volk_32f_x2_fm_detectpuppet_32f(); | |
5586 | ✗ | volk_32f_x2_fm_detectpuppet_32f(outputVector, inputVector, saveValue, num_points); | |
5587 | ✗ | } | |
5588 | |||
5589 | p_32f_x2_fm_detectpuppet_32f volk_32f_x2_fm_detectpuppet_32f_a = &__volk_32f_x2_fm_detectpuppet_32f_a; | ||
5590 | p_32f_x2_fm_detectpuppet_32f volk_32f_x2_fm_detectpuppet_32f_u = &__volk_32f_x2_fm_detectpuppet_32f_u; | ||
5591 | p_32f_x2_fm_detectpuppet_32f volk_32f_x2_fm_detectpuppet_32f = &__volk_32f_x2_fm_detectpuppet_32f; | ||
5592 | |||
5593 | 8 | void volk_32f_x2_fm_detectpuppet_32f_manual(float* outputVector, const float* inputVector, float* saveValue, unsigned int num_points, const char* impl_name) | |
5594 | { | ||
5595 | 8 | const int index = volk_get_index( | |
5596 | 8 | get_machine()->volk_32f_x2_fm_detectpuppet_32f_impl_names, | |
5597 | 8 | get_machine()->volk_32f_x2_fm_detectpuppet_32f_n_impls, | |
5598 | impl_name | ||
5599 | ); | ||
5600 | 8 | get_machine()->volk_32f_x2_fm_detectpuppet_32f_impls[index]( | |
5601 | outputVector, inputVector, saveValue, num_points | ||
5602 | ); | ||
5603 | 8 | } | |
5604 | |||
5605 | 282 | volk_func_desc_t volk_32f_x2_fm_detectpuppet_32f_get_func_desc(void) { | |
5606 | 282 | const char **impl_names = get_machine()->volk_32f_x2_fm_detectpuppet_32f_impl_names; | |
5607 | 282 | const int *impl_deps = get_machine()->volk_32f_x2_fm_detectpuppet_32f_impl_deps; | |
5608 | 282 | const bool *alignment = get_machine()->volk_32f_x2_fm_detectpuppet_32f_impl_alignment; | |
5609 | 282 | const size_t n_impls = get_machine()->volk_32f_x2_fm_detectpuppet_32f_n_impls; | |
5610 | 282 | volk_func_desc_t desc = { | |
5611 | impl_names, | ||
5612 | impl_deps, | ||
5613 | alignment, | ||
5614 | n_impls | ||
5615 | }; | ||
5616 | 282 | return desc; | |
5617 | } | ||
5618 | |||
5619 | |||
5620 | |||
5621 | ✗ | static inline void __volk_32f_x2_interleave_32fc_d(lv_32fc_t* complexVector, const float* iBuffer, const float* qBuffer, unsigned int num_points) | |
5622 | { | ||
5623 | |||
5624 | ✗ | if (volk_is_aligned( | |
5625 | ✗ | VOLK_OR_PTR(complexVector, | |
5626 | VOLK_OR_PTR(iBuffer, | ||
5627 | VOLK_OR_PTR(qBuffer, | ||
5628 | 0))) | ||
5629 | )){ | ||
5630 | ✗ | volk_32f_x2_interleave_32fc_a(complexVector, iBuffer, qBuffer, num_points); | |
5631 | } | ||
5632 | else{ | ||
5633 | ✗ | volk_32f_x2_interleave_32fc_u(complexVector, iBuffer, qBuffer, num_points); | |
5634 | } | ||
5635 | ✗ | } | |
5636 | |||
5637 | ✗ | static inline void __init_volk_32f_x2_interleave_32fc(void) | |
5638 | { | ||
5639 | ✗ | const char *name = get_machine()->volk_32f_x2_interleave_32fc_name; | |
5640 | ✗ | const char **impl_names = get_machine()->volk_32f_x2_interleave_32fc_impl_names; | |
5641 | ✗ | const int *impl_deps = get_machine()->volk_32f_x2_interleave_32fc_impl_deps; | |
5642 | ✗ | const bool *alignment = get_machine()->volk_32f_x2_interleave_32fc_impl_alignment; | |
5643 | ✗ | const size_t n_impls = get_machine()->volk_32f_x2_interleave_32fc_n_impls; | |
5644 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
5645 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
5646 | ✗ | volk_32f_x2_interleave_32fc_a = get_machine()->volk_32f_x2_interleave_32fc_impls[index_a]; | |
5647 | ✗ | volk_32f_x2_interleave_32fc_u = get_machine()->volk_32f_x2_interleave_32fc_impls[index_u]; | |
5648 | |||
5649 | ✗ | assert(volk_32f_x2_interleave_32fc_a); | |
5650 | ✗ | assert(volk_32f_x2_interleave_32fc_u); | |
5651 | |||
5652 | ✗ | volk_32f_x2_interleave_32fc = &__volk_32f_x2_interleave_32fc_d; | |
5653 | ✗ | } | |
5654 | |||
5655 | ✗ | static inline void __volk_32f_x2_interleave_32fc_a(lv_32fc_t* complexVector, const float* iBuffer, const float* qBuffer, unsigned int num_points) | |
5656 | { | ||
5657 | ✗ | __init_volk_32f_x2_interleave_32fc(); | |
5658 | ✗ | volk_32f_x2_interleave_32fc_a(complexVector, iBuffer, qBuffer, num_points); | |
5659 | ✗ | } | |
5660 | |||
5661 | ✗ | static inline void __volk_32f_x2_interleave_32fc_u(lv_32fc_t* complexVector, const float* iBuffer, const float* qBuffer, unsigned int num_points) | |
5662 | { | ||
5663 | ✗ | __init_volk_32f_x2_interleave_32fc(); | |
5664 | ✗ | volk_32f_x2_interleave_32fc_u(complexVector, iBuffer, qBuffer, num_points); | |
5665 | ✗ | } | |
5666 | |||
5667 | ✗ | static inline void __volk_32f_x2_interleave_32fc(lv_32fc_t* complexVector, const float* iBuffer, const float* qBuffer, unsigned int num_points) | |
5668 | { | ||
5669 | ✗ | __init_volk_32f_x2_interleave_32fc(); | |
5670 | ✗ | volk_32f_x2_interleave_32fc(complexVector, iBuffer, qBuffer, num_points); | |
5671 | ✗ | } | |
5672 | |||
5673 | p_32f_x2_interleave_32fc volk_32f_x2_interleave_32fc_a = &__volk_32f_x2_interleave_32fc_a; | ||
5674 | p_32f_x2_interleave_32fc volk_32f_x2_interleave_32fc_u = &__volk_32f_x2_interleave_32fc_u; | ||
5675 | p_32f_x2_interleave_32fc volk_32f_x2_interleave_32fc = &__volk_32f_x2_interleave_32fc; | ||
5676 | |||
5677 | 8 | void volk_32f_x2_interleave_32fc_manual(lv_32fc_t* complexVector, const float* iBuffer, const float* qBuffer, unsigned int num_points, const char* impl_name) | |
5678 | { | ||
5679 | 8 | const int index = volk_get_index( | |
5680 | 8 | get_machine()->volk_32f_x2_interleave_32fc_impl_names, | |
5681 | 8 | get_machine()->volk_32f_x2_interleave_32fc_n_impls, | |
5682 | impl_name | ||
5683 | ); | ||
5684 | 8 | get_machine()->volk_32f_x2_interleave_32fc_impls[index]( | |
5685 | complexVector, iBuffer, qBuffer, num_points | ||
5686 | ); | ||
5687 | 8 | } | |
5688 | |||
5689 | 282 | volk_func_desc_t volk_32f_x2_interleave_32fc_get_func_desc(void) { | |
5690 | 282 | const char **impl_names = get_machine()->volk_32f_x2_interleave_32fc_impl_names; | |
5691 | 282 | const int *impl_deps = get_machine()->volk_32f_x2_interleave_32fc_impl_deps; | |
5692 | 282 | const bool *alignment = get_machine()->volk_32f_x2_interleave_32fc_impl_alignment; | |
5693 | 282 | const size_t n_impls = get_machine()->volk_32f_x2_interleave_32fc_n_impls; | |
5694 | 282 | volk_func_desc_t desc = { | |
5695 | impl_names, | ||
5696 | impl_deps, | ||
5697 | alignment, | ||
5698 | n_impls | ||
5699 | }; | ||
5700 | 282 | return desc; | |
5701 | } | ||
5702 | |||
5703 | |||
5704 | |||
5705 | ✗ | static inline void __volk_32f_x2_max_32f_d(float* cVector, const float* aVector, const float* bVector, unsigned int num_points) | |
5706 | { | ||
5707 | |||
5708 | ✗ | if (volk_is_aligned( | |
5709 | ✗ | VOLK_OR_PTR(cVector, | |
5710 | VOLK_OR_PTR(aVector, | ||
5711 | VOLK_OR_PTR(bVector, | ||
5712 | 0))) | ||
5713 | )){ | ||
5714 | ✗ | volk_32f_x2_max_32f_a(cVector, aVector, bVector, num_points); | |
5715 | } | ||
5716 | else{ | ||
5717 | ✗ | volk_32f_x2_max_32f_u(cVector, aVector, bVector, num_points); | |
5718 | } | ||
5719 | ✗ | } | |
5720 | |||
5721 | ✗ | static inline void __init_volk_32f_x2_max_32f(void) | |
5722 | { | ||
5723 | ✗ | const char *name = get_machine()->volk_32f_x2_max_32f_name; | |
5724 | ✗ | const char **impl_names = get_machine()->volk_32f_x2_max_32f_impl_names; | |
5725 | ✗ | const int *impl_deps = get_machine()->volk_32f_x2_max_32f_impl_deps; | |
5726 | ✗ | const bool *alignment = get_machine()->volk_32f_x2_max_32f_impl_alignment; | |
5727 | ✗ | const size_t n_impls = get_machine()->volk_32f_x2_max_32f_n_impls; | |
5728 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
5729 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
5730 | ✗ | volk_32f_x2_max_32f_a = get_machine()->volk_32f_x2_max_32f_impls[index_a]; | |
5731 | ✗ | volk_32f_x2_max_32f_u = get_machine()->volk_32f_x2_max_32f_impls[index_u]; | |
5732 | |||
5733 | ✗ | assert(volk_32f_x2_max_32f_a); | |
5734 | ✗ | assert(volk_32f_x2_max_32f_u); | |
5735 | |||
5736 | ✗ | volk_32f_x2_max_32f = &__volk_32f_x2_max_32f_d; | |
5737 | ✗ | } | |
5738 | |||
5739 | ✗ | static inline void __volk_32f_x2_max_32f_a(float* cVector, const float* aVector, const float* bVector, unsigned int num_points) | |
5740 | { | ||
5741 | ✗ | __init_volk_32f_x2_max_32f(); | |
5742 | ✗ | volk_32f_x2_max_32f_a(cVector, aVector, bVector, num_points); | |
5743 | ✗ | } | |
5744 | |||
5745 | ✗ | static inline void __volk_32f_x2_max_32f_u(float* cVector, const float* aVector, const float* bVector, unsigned int num_points) | |
5746 | { | ||
5747 | ✗ | __init_volk_32f_x2_max_32f(); | |
5748 | ✗ | volk_32f_x2_max_32f_u(cVector, aVector, bVector, num_points); | |
5749 | ✗ | } | |
5750 | |||
5751 | ✗ | static inline void __volk_32f_x2_max_32f(float* cVector, const float* aVector, const float* bVector, unsigned int num_points) | |
5752 | { | ||
5753 | ✗ | __init_volk_32f_x2_max_32f(); | |
5754 | ✗ | volk_32f_x2_max_32f(cVector, aVector, bVector, num_points); | |
5755 | ✗ | } | |
5756 | |||
5757 | p_32f_x2_max_32f volk_32f_x2_max_32f_a = &__volk_32f_x2_max_32f_a; | ||
5758 | p_32f_x2_max_32f volk_32f_x2_max_32f_u = &__volk_32f_x2_max_32f_u; | ||
5759 | p_32f_x2_max_32f volk_32f_x2_max_32f = &__volk_32f_x2_max_32f; | ||
5760 | |||
5761 | 10 | void volk_32f_x2_max_32f_manual(float* cVector, const float* aVector, const float* bVector, unsigned int num_points, const char* impl_name) | |
5762 | { | ||
5763 | 10 | const int index = volk_get_index( | |
5764 | 10 | get_machine()->volk_32f_x2_max_32f_impl_names, | |
5765 | 10 | get_machine()->volk_32f_x2_max_32f_n_impls, | |
5766 | impl_name | ||
5767 | ); | ||
5768 | 10 | get_machine()->volk_32f_x2_max_32f_impls[index]( | |
5769 | cVector, aVector, bVector, num_points | ||
5770 | ); | ||
5771 | 10 | } | |
5772 | |||
5773 | 282 | volk_func_desc_t volk_32f_x2_max_32f_get_func_desc(void) { | |
5774 | 282 | const char **impl_names = get_machine()->volk_32f_x2_max_32f_impl_names; | |
5775 | 282 | const int *impl_deps = get_machine()->volk_32f_x2_max_32f_impl_deps; | |
5776 | 282 | const bool *alignment = get_machine()->volk_32f_x2_max_32f_impl_alignment; | |
5777 | 282 | const size_t n_impls = get_machine()->volk_32f_x2_max_32f_n_impls; | |
5778 | 282 | volk_func_desc_t desc = { | |
5779 | impl_names, | ||
5780 | impl_deps, | ||
5781 | alignment, | ||
5782 | n_impls | ||
5783 | }; | ||
5784 | 282 | return desc; | |
5785 | } | ||
5786 | |||
5787 | |||
5788 | |||
5789 | ✗ | static inline void __volk_32f_x2_min_32f_d(float* cVector, const float* aVector, const float* bVector, unsigned int num_points) | |
5790 | { | ||
5791 | |||
5792 | ✗ | if (volk_is_aligned( | |
5793 | ✗ | VOLK_OR_PTR(cVector, | |
5794 | VOLK_OR_PTR(aVector, | ||
5795 | VOLK_OR_PTR(bVector, | ||
5796 | 0))) | ||
5797 | )){ | ||
5798 | ✗ | volk_32f_x2_min_32f_a(cVector, aVector, bVector, num_points); | |
5799 | } | ||
5800 | else{ | ||
5801 | ✗ | volk_32f_x2_min_32f_u(cVector, aVector, bVector, num_points); | |
5802 | } | ||
5803 | ✗ | } | |
5804 | |||
5805 | ✗ | static inline void __init_volk_32f_x2_min_32f(void) | |
5806 | { | ||
5807 | ✗ | const char *name = get_machine()->volk_32f_x2_min_32f_name; | |
5808 | ✗ | const char **impl_names = get_machine()->volk_32f_x2_min_32f_impl_names; | |
5809 | ✗ | const int *impl_deps = get_machine()->volk_32f_x2_min_32f_impl_deps; | |
5810 | ✗ | const bool *alignment = get_machine()->volk_32f_x2_min_32f_impl_alignment; | |
5811 | ✗ | const size_t n_impls = get_machine()->volk_32f_x2_min_32f_n_impls; | |
5812 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
5813 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
5814 | ✗ | volk_32f_x2_min_32f_a = get_machine()->volk_32f_x2_min_32f_impls[index_a]; | |
5815 | ✗ | volk_32f_x2_min_32f_u = get_machine()->volk_32f_x2_min_32f_impls[index_u]; | |
5816 | |||
5817 | ✗ | assert(volk_32f_x2_min_32f_a); | |
5818 | ✗ | assert(volk_32f_x2_min_32f_u); | |
5819 | |||
5820 | ✗ | volk_32f_x2_min_32f = &__volk_32f_x2_min_32f_d; | |
5821 | ✗ | } | |
5822 | |||
5823 | ✗ | static inline void __volk_32f_x2_min_32f_a(float* cVector, const float* aVector, const float* bVector, unsigned int num_points) | |
5824 | { | ||
5825 | ✗ | __init_volk_32f_x2_min_32f(); | |
5826 | ✗ | volk_32f_x2_min_32f_a(cVector, aVector, bVector, num_points); | |
5827 | ✗ | } | |
5828 | |||
5829 | ✗ | static inline void __volk_32f_x2_min_32f_u(float* cVector, const float* aVector, const float* bVector, unsigned int num_points) | |
5830 | { | ||
5831 | ✗ | __init_volk_32f_x2_min_32f(); | |
5832 | ✗ | volk_32f_x2_min_32f_u(cVector, aVector, bVector, num_points); | |
5833 | ✗ | } | |
5834 | |||
5835 | ✗ | static inline void __volk_32f_x2_min_32f(float* cVector, const float* aVector, const float* bVector, unsigned int num_points) | |
5836 | { | ||
5837 | ✗ | __init_volk_32f_x2_min_32f(); | |
5838 | ✗ | volk_32f_x2_min_32f(cVector, aVector, bVector, num_points); | |
5839 | ✗ | } | |
5840 | |||
5841 | p_32f_x2_min_32f volk_32f_x2_min_32f_a = &__volk_32f_x2_min_32f_a; | ||
5842 | p_32f_x2_min_32f volk_32f_x2_min_32f_u = &__volk_32f_x2_min_32f_u; | ||
5843 | p_32f_x2_min_32f volk_32f_x2_min_32f = &__volk_32f_x2_min_32f; | ||
5844 | |||
5845 | 10 | void volk_32f_x2_min_32f_manual(float* cVector, const float* aVector, const float* bVector, unsigned int num_points, const char* impl_name) | |
5846 | { | ||
5847 | 10 | const int index = volk_get_index( | |
5848 | 10 | get_machine()->volk_32f_x2_min_32f_impl_names, | |
5849 | 10 | get_machine()->volk_32f_x2_min_32f_n_impls, | |
5850 | impl_name | ||
5851 | ); | ||
5852 | 10 | get_machine()->volk_32f_x2_min_32f_impls[index]( | |
5853 | cVector, aVector, bVector, num_points | ||
5854 | ); | ||
5855 | 10 | } | |
5856 | |||
5857 | 282 | volk_func_desc_t volk_32f_x2_min_32f_get_func_desc(void) { | |
5858 | 282 | const char **impl_names = get_machine()->volk_32f_x2_min_32f_impl_names; | |
5859 | 282 | const int *impl_deps = get_machine()->volk_32f_x2_min_32f_impl_deps; | |
5860 | 282 | const bool *alignment = get_machine()->volk_32f_x2_min_32f_impl_alignment; | |
5861 | 282 | const size_t n_impls = get_machine()->volk_32f_x2_min_32f_n_impls; | |
5862 | 282 | volk_func_desc_t desc = { | |
5863 | impl_names, | ||
5864 | impl_deps, | ||
5865 | alignment, | ||
5866 | n_impls | ||
5867 | }; | ||
5868 | 282 | return desc; | |
5869 | } | ||
5870 | |||
5871 | |||
5872 | |||
5873 | ✗ | static inline void __volk_32f_x2_multiply_32f_d(float* cVector, const float* aVector, const float* bVector, unsigned int num_points) | |
5874 | { | ||
5875 | |||
5876 | ✗ | if (volk_is_aligned( | |
5877 | ✗ | VOLK_OR_PTR(cVector, | |
5878 | VOLK_OR_PTR(aVector, | ||
5879 | VOLK_OR_PTR(bVector, | ||
5880 | 0))) | ||
5881 | )){ | ||
5882 | ✗ | volk_32f_x2_multiply_32f_a(cVector, aVector, bVector, num_points); | |
5883 | } | ||
5884 | else{ | ||
5885 | ✗ | volk_32f_x2_multiply_32f_u(cVector, aVector, bVector, num_points); | |
5886 | } | ||
5887 | ✗ | } | |
5888 | |||
5889 | ✗ | static inline void __init_volk_32f_x2_multiply_32f(void) | |
5890 | { | ||
5891 | ✗ | const char *name = get_machine()->volk_32f_x2_multiply_32f_name; | |
5892 | ✗ | const char **impl_names = get_machine()->volk_32f_x2_multiply_32f_impl_names; | |
5893 | ✗ | const int *impl_deps = get_machine()->volk_32f_x2_multiply_32f_impl_deps; | |
5894 | ✗ | const bool *alignment = get_machine()->volk_32f_x2_multiply_32f_impl_alignment; | |
5895 | ✗ | const size_t n_impls = get_machine()->volk_32f_x2_multiply_32f_n_impls; | |
5896 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
5897 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
5898 | ✗ | volk_32f_x2_multiply_32f_a = get_machine()->volk_32f_x2_multiply_32f_impls[index_a]; | |
5899 | ✗ | volk_32f_x2_multiply_32f_u = get_machine()->volk_32f_x2_multiply_32f_impls[index_u]; | |
5900 | |||
5901 | ✗ | assert(volk_32f_x2_multiply_32f_a); | |
5902 | ✗ | assert(volk_32f_x2_multiply_32f_u); | |
5903 | |||
5904 | ✗ | volk_32f_x2_multiply_32f = &__volk_32f_x2_multiply_32f_d; | |
5905 | ✗ | } | |
5906 | |||
5907 | ✗ | static inline void __volk_32f_x2_multiply_32f_a(float* cVector, const float* aVector, const float* bVector, unsigned int num_points) | |
5908 | { | ||
5909 | ✗ | __init_volk_32f_x2_multiply_32f(); | |
5910 | ✗ | volk_32f_x2_multiply_32f_a(cVector, aVector, bVector, num_points); | |
5911 | ✗ | } | |
5912 | |||
5913 | ✗ | static inline void __volk_32f_x2_multiply_32f_u(float* cVector, const float* aVector, const float* bVector, unsigned int num_points) | |
5914 | { | ||
5915 | ✗ | __init_volk_32f_x2_multiply_32f(); | |
5916 | ✗ | volk_32f_x2_multiply_32f_u(cVector, aVector, bVector, num_points); | |
5917 | ✗ | } | |
5918 | |||
5919 | ✗ | static inline void __volk_32f_x2_multiply_32f(float* cVector, const float* aVector, const float* bVector, unsigned int num_points) | |
5920 | { | ||
5921 | ✗ | __init_volk_32f_x2_multiply_32f(); | |
5922 | ✗ | volk_32f_x2_multiply_32f(cVector, aVector, bVector, num_points); | |
5923 | ✗ | } | |
5924 | |||
5925 | p_32f_x2_multiply_32f volk_32f_x2_multiply_32f_a = &__volk_32f_x2_multiply_32f_a; | ||
5926 | p_32f_x2_multiply_32f volk_32f_x2_multiply_32f_u = &__volk_32f_x2_multiply_32f_u; | ||
5927 | p_32f_x2_multiply_32f volk_32f_x2_multiply_32f = &__volk_32f_x2_multiply_32f; | ||
5928 | |||
5929 | 14 | void volk_32f_x2_multiply_32f_manual(float* cVector, const float* aVector, const float* bVector, unsigned int num_points, const char* impl_name) | |
5930 | { | ||
5931 | 14 | const int index = volk_get_index( | |
5932 | 14 | get_machine()->volk_32f_x2_multiply_32f_impl_names, | |
5933 | 14 | get_machine()->volk_32f_x2_multiply_32f_n_impls, | |
5934 | impl_name | ||
5935 | ); | ||
5936 | 14 | get_machine()->volk_32f_x2_multiply_32f_impls[index]( | |
5937 | cVector, aVector, bVector, num_points | ||
5938 | ); | ||
5939 | 14 | } | |
5940 | |||
5941 | 282 | volk_func_desc_t volk_32f_x2_multiply_32f_get_func_desc(void) { | |
5942 | 282 | const char **impl_names = get_machine()->volk_32f_x2_multiply_32f_impl_names; | |
5943 | 282 | const int *impl_deps = get_machine()->volk_32f_x2_multiply_32f_impl_deps; | |
5944 | 282 | const bool *alignment = get_machine()->volk_32f_x2_multiply_32f_impl_alignment; | |
5945 | 282 | const size_t n_impls = get_machine()->volk_32f_x2_multiply_32f_n_impls; | |
5946 | 282 | volk_func_desc_t desc = { | |
5947 | impl_names, | ||
5948 | impl_deps, | ||
5949 | alignment, | ||
5950 | n_impls | ||
5951 | }; | ||
5952 | 282 | return desc; | |
5953 | } | ||
5954 | |||
5955 | |||
5956 | |||
5957 | ✗ | static inline void __volk_32f_x2_pow_32f_d(float* cVector, const float* bVector, const float* aVector, unsigned int num_points) | |
5958 | { | ||
5959 | |||
5960 | ✗ | if (volk_is_aligned( | |
5961 | ✗ | VOLK_OR_PTR(cVector, | |
5962 | VOLK_OR_PTR(bVector, | ||
5963 | VOLK_OR_PTR(aVector, | ||
5964 | 0))) | ||
5965 | )){ | ||
5966 | ✗ | volk_32f_x2_pow_32f_a(cVector, bVector, aVector, num_points); | |
5967 | } | ||
5968 | else{ | ||
5969 | ✗ | volk_32f_x2_pow_32f_u(cVector, bVector, aVector, num_points); | |
5970 | } | ||
5971 | ✗ | } | |
5972 | |||
5973 | ✗ | static inline void __init_volk_32f_x2_pow_32f(void) | |
5974 | { | ||
5975 | ✗ | const char *name = get_machine()->volk_32f_x2_pow_32f_name; | |
5976 | ✗ | const char **impl_names = get_machine()->volk_32f_x2_pow_32f_impl_names; | |
5977 | ✗ | const int *impl_deps = get_machine()->volk_32f_x2_pow_32f_impl_deps; | |
5978 | ✗ | const bool *alignment = get_machine()->volk_32f_x2_pow_32f_impl_alignment; | |
5979 | ✗ | const size_t n_impls = get_machine()->volk_32f_x2_pow_32f_n_impls; | |
5980 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
5981 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
5982 | ✗ | volk_32f_x2_pow_32f_a = get_machine()->volk_32f_x2_pow_32f_impls[index_a]; | |
5983 | ✗ | volk_32f_x2_pow_32f_u = get_machine()->volk_32f_x2_pow_32f_impls[index_u]; | |
5984 | |||
5985 | ✗ | assert(volk_32f_x2_pow_32f_a); | |
5986 | ✗ | assert(volk_32f_x2_pow_32f_u); | |
5987 | |||
5988 | ✗ | volk_32f_x2_pow_32f = &__volk_32f_x2_pow_32f_d; | |
5989 | ✗ | } | |
5990 | |||
5991 | ✗ | static inline void __volk_32f_x2_pow_32f_a(float* cVector, const float* bVector, const float* aVector, unsigned int num_points) | |
5992 | { | ||
5993 | ✗ | __init_volk_32f_x2_pow_32f(); | |
5994 | ✗ | volk_32f_x2_pow_32f_a(cVector, bVector, aVector, num_points); | |
5995 | ✗ | } | |
5996 | |||
5997 | ✗ | static inline void __volk_32f_x2_pow_32f_u(float* cVector, const float* bVector, const float* aVector, unsigned int num_points) | |
5998 | { | ||
5999 | ✗ | __init_volk_32f_x2_pow_32f(); | |
6000 | ✗ | volk_32f_x2_pow_32f_u(cVector, bVector, aVector, num_points); | |
6001 | ✗ | } | |
6002 | |||
6003 | ✗ | static inline void __volk_32f_x2_pow_32f(float* cVector, const float* bVector, const float* aVector, unsigned int num_points) | |
6004 | { | ||
6005 | ✗ | __init_volk_32f_x2_pow_32f(); | |
6006 | ✗ | volk_32f_x2_pow_32f(cVector, bVector, aVector, num_points); | |
6007 | ✗ | } | |
6008 | |||
6009 | p_32f_x2_pow_32f volk_32f_x2_pow_32f_a = &__volk_32f_x2_pow_32f_a; | ||
6010 | p_32f_x2_pow_32f volk_32f_x2_pow_32f_u = &__volk_32f_x2_pow_32f_u; | ||
6011 | p_32f_x2_pow_32f volk_32f_x2_pow_32f = &__volk_32f_x2_pow_32f; | ||
6012 | |||
6013 | 14 | void volk_32f_x2_pow_32f_manual(float* cVector, const float* bVector, const float* aVector, unsigned int num_points, const char* impl_name) | |
6014 | { | ||
6015 | 14 | const int index = volk_get_index( | |
6016 | 14 | get_machine()->volk_32f_x2_pow_32f_impl_names, | |
6017 | 14 | get_machine()->volk_32f_x2_pow_32f_n_impls, | |
6018 | impl_name | ||
6019 | ); | ||
6020 | 14 | get_machine()->volk_32f_x2_pow_32f_impls[index]( | |
6021 | cVector, bVector, aVector, num_points | ||
6022 | ); | ||
6023 | 14 | } | |
6024 | |||
6025 | 282 | volk_func_desc_t volk_32f_x2_pow_32f_get_func_desc(void) { | |
6026 | 282 | const char **impl_names = get_machine()->volk_32f_x2_pow_32f_impl_names; | |
6027 | 282 | const int *impl_deps = get_machine()->volk_32f_x2_pow_32f_impl_deps; | |
6028 | 282 | const bool *alignment = get_machine()->volk_32f_x2_pow_32f_impl_alignment; | |
6029 | 282 | const size_t n_impls = get_machine()->volk_32f_x2_pow_32f_n_impls; | |
6030 | 282 | volk_func_desc_t desc = { | |
6031 | impl_names, | ||
6032 | impl_deps, | ||
6033 | alignment, | ||
6034 | n_impls | ||
6035 | }; | ||
6036 | 282 | return desc; | |
6037 | } | ||
6038 | |||
6039 | |||
6040 | |||
6041 | ✗ | static inline void __volk_32f_x2_s32f_interleave_16ic_d(lv_16sc_t* complexVector, const float* iBuffer, const float* qBuffer, const float scalar, unsigned int num_points) | |
6042 | { | ||
6043 | |||
6044 | ✗ | if (volk_is_aligned( | |
6045 | ✗ | VOLK_OR_PTR(complexVector, | |
6046 | VOLK_OR_PTR(iBuffer, | ||
6047 | VOLK_OR_PTR(qBuffer, | ||
6048 | 0))) | ||
6049 | )){ | ||
6050 | ✗ | volk_32f_x2_s32f_interleave_16ic_a(complexVector, iBuffer, qBuffer, scalar, num_points); | |
6051 | } | ||
6052 | else{ | ||
6053 | ✗ | volk_32f_x2_s32f_interleave_16ic_u(complexVector, iBuffer, qBuffer, scalar, num_points); | |
6054 | } | ||
6055 | ✗ | } | |
6056 | |||
6057 | ✗ | static inline void __init_volk_32f_x2_s32f_interleave_16ic(void) | |
6058 | { | ||
6059 | ✗ | const char *name = get_machine()->volk_32f_x2_s32f_interleave_16ic_name; | |
6060 | ✗ | const char **impl_names = get_machine()->volk_32f_x2_s32f_interleave_16ic_impl_names; | |
6061 | ✗ | const int *impl_deps = get_machine()->volk_32f_x2_s32f_interleave_16ic_impl_deps; | |
6062 | ✗ | const bool *alignment = get_machine()->volk_32f_x2_s32f_interleave_16ic_impl_alignment; | |
6063 | ✗ | const size_t n_impls = get_machine()->volk_32f_x2_s32f_interleave_16ic_n_impls; | |
6064 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
6065 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
6066 | ✗ | volk_32f_x2_s32f_interleave_16ic_a = get_machine()->volk_32f_x2_s32f_interleave_16ic_impls[index_a]; | |
6067 | ✗ | volk_32f_x2_s32f_interleave_16ic_u = get_machine()->volk_32f_x2_s32f_interleave_16ic_impls[index_u]; | |
6068 | |||
6069 | ✗ | assert(volk_32f_x2_s32f_interleave_16ic_a); | |
6070 | ✗ | assert(volk_32f_x2_s32f_interleave_16ic_u); | |
6071 | |||
6072 | ✗ | volk_32f_x2_s32f_interleave_16ic = &__volk_32f_x2_s32f_interleave_16ic_d; | |
6073 | ✗ | } | |
6074 | |||
6075 | ✗ | static inline void __volk_32f_x2_s32f_interleave_16ic_a(lv_16sc_t* complexVector, const float* iBuffer, const float* qBuffer, const float scalar, unsigned int num_points) | |
6076 | { | ||
6077 | ✗ | __init_volk_32f_x2_s32f_interleave_16ic(); | |
6078 | ✗ | volk_32f_x2_s32f_interleave_16ic_a(complexVector, iBuffer, qBuffer, scalar, num_points); | |
6079 | ✗ | } | |
6080 | |||
6081 | ✗ | static inline void __volk_32f_x2_s32f_interleave_16ic_u(lv_16sc_t* complexVector, const float* iBuffer, const float* qBuffer, const float scalar, unsigned int num_points) | |
6082 | { | ||
6083 | ✗ | __init_volk_32f_x2_s32f_interleave_16ic(); | |
6084 | ✗ | volk_32f_x2_s32f_interleave_16ic_u(complexVector, iBuffer, qBuffer, scalar, num_points); | |
6085 | ✗ | } | |
6086 | |||
6087 | ✗ | static inline void __volk_32f_x2_s32f_interleave_16ic(lv_16sc_t* complexVector, const float* iBuffer, const float* qBuffer, const float scalar, unsigned int num_points) | |
6088 | { | ||
6089 | ✗ | __init_volk_32f_x2_s32f_interleave_16ic(); | |
6090 | ✗ | volk_32f_x2_s32f_interleave_16ic(complexVector, iBuffer, qBuffer, scalar, num_points); | |
6091 | ✗ | } | |
6092 | |||
6093 | p_32f_x2_s32f_interleave_16ic volk_32f_x2_s32f_interleave_16ic_a = &__volk_32f_x2_s32f_interleave_16ic_a; | ||
6094 | p_32f_x2_s32f_interleave_16ic volk_32f_x2_s32f_interleave_16ic_u = &__volk_32f_x2_s32f_interleave_16ic_u; | ||
6095 | p_32f_x2_s32f_interleave_16ic volk_32f_x2_s32f_interleave_16ic = &__volk_32f_x2_s32f_interleave_16ic; | ||
6096 | |||
6097 | 10 | void volk_32f_x2_s32f_interleave_16ic_manual(lv_16sc_t* complexVector, const float* iBuffer, const float* qBuffer, const float scalar, unsigned int num_points, const char* impl_name) | |
6098 | { | ||
6099 | 10 | const int index = volk_get_index( | |
6100 | 10 | get_machine()->volk_32f_x2_s32f_interleave_16ic_impl_names, | |
6101 | 10 | get_machine()->volk_32f_x2_s32f_interleave_16ic_n_impls, | |
6102 | impl_name | ||
6103 | ); | ||
6104 | 10 | get_machine()->volk_32f_x2_s32f_interleave_16ic_impls[index]( | |
6105 | complexVector, iBuffer, qBuffer, scalar, num_points | ||
6106 | ); | ||
6107 | 10 | } | |
6108 | |||
6109 | 282 | volk_func_desc_t volk_32f_x2_s32f_interleave_16ic_get_func_desc(void) { | |
6110 | 282 | const char **impl_names = get_machine()->volk_32f_x2_s32f_interleave_16ic_impl_names; | |
6111 | 282 | const int *impl_deps = get_machine()->volk_32f_x2_s32f_interleave_16ic_impl_deps; | |
6112 | 282 | const bool *alignment = get_machine()->volk_32f_x2_s32f_interleave_16ic_impl_alignment; | |
6113 | 282 | const size_t n_impls = get_machine()->volk_32f_x2_s32f_interleave_16ic_n_impls; | |
6114 | 282 | volk_func_desc_t desc = { | |
6115 | impl_names, | ||
6116 | impl_deps, | ||
6117 | alignment, | ||
6118 | n_impls | ||
6119 | }; | ||
6120 | 282 | return desc; | |
6121 | } | ||
6122 | |||
6123 | |||
6124 | |||
6125 | ✗ | static inline void __volk_32f_x2_subtract_32f_d(float* cVector, const float* aVector, const float* bVector, unsigned int num_points) | |
6126 | { | ||
6127 | |||
6128 | ✗ | if (volk_is_aligned( | |
6129 | ✗ | VOLK_OR_PTR(cVector, | |
6130 | VOLK_OR_PTR(aVector, | ||
6131 | VOLK_OR_PTR(bVector, | ||
6132 | 0))) | ||
6133 | )){ | ||
6134 | ✗ | volk_32f_x2_subtract_32f_a(cVector, aVector, bVector, num_points); | |
6135 | } | ||
6136 | else{ | ||
6137 | ✗ | volk_32f_x2_subtract_32f_u(cVector, aVector, bVector, num_points); | |
6138 | } | ||
6139 | ✗ | } | |
6140 | |||
6141 | ✗ | static inline void __init_volk_32f_x2_subtract_32f(void) | |
6142 | { | ||
6143 | ✗ | const char *name = get_machine()->volk_32f_x2_subtract_32f_name; | |
6144 | ✗ | const char **impl_names = get_machine()->volk_32f_x2_subtract_32f_impl_names; | |
6145 | ✗ | const int *impl_deps = get_machine()->volk_32f_x2_subtract_32f_impl_deps; | |
6146 | ✗ | const bool *alignment = get_machine()->volk_32f_x2_subtract_32f_impl_alignment; | |
6147 | ✗ | const size_t n_impls = get_machine()->volk_32f_x2_subtract_32f_n_impls; | |
6148 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
6149 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
6150 | ✗ | volk_32f_x2_subtract_32f_a = get_machine()->volk_32f_x2_subtract_32f_impls[index_a]; | |
6151 | ✗ | volk_32f_x2_subtract_32f_u = get_machine()->volk_32f_x2_subtract_32f_impls[index_u]; | |
6152 | |||
6153 | ✗ | assert(volk_32f_x2_subtract_32f_a); | |
6154 | ✗ | assert(volk_32f_x2_subtract_32f_u); | |
6155 | |||
6156 | ✗ | volk_32f_x2_subtract_32f = &__volk_32f_x2_subtract_32f_d; | |
6157 | ✗ | } | |
6158 | |||
6159 | ✗ | static inline void __volk_32f_x2_subtract_32f_a(float* cVector, const float* aVector, const float* bVector, unsigned int num_points) | |
6160 | { | ||
6161 | ✗ | __init_volk_32f_x2_subtract_32f(); | |
6162 | ✗ | volk_32f_x2_subtract_32f_a(cVector, aVector, bVector, num_points); | |
6163 | ✗ | } | |
6164 | |||
6165 | ✗ | static inline void __volk_32f_x2_subtract_32f_u(float* cVector, const float* aVector, const float* bVector, unsigned int num_points) | |
6166 | { | ||
6167 | ✗ | __init_volk_32f_x2_subtract_32f(); | |
6168 | ✗ | volk_32f_x2_subtract_32f_u(cVector, aVector, bVector, num_points); | |
6169 | ✗ | } | |
6170 | |||
6171 | ✗ | static inline void __volk_32f_x2_subtract_32f(float* cVector, const float* aVector, const float* bVector, unsigned int num_points) | |
6172 | { | ||
6173 | ✗ | __init_volk_32f_x2_subtract_32f(); | |
6174 | ✗ | volk_32f_x2_subtract_32f(cVector, aVector, bVector, num_points); | |
6175 | ✗ | } | |
6176 | |||
6177 | p_32f_x2_subtract_32f volk_32f_x2_subtract_32f_a = &__volk_32f_x2_subtract_32f_a; | ||
6178 | p_32f_x2_subtract_32f volk_32f_x2_subtract_32f_u = &__volk_32f_x2_subtract_32f_u; | ||
6179 | p_32f_x2_subtract_32f volk_32f_x2_subtract_32f = &__volk_32f_x2_subtract_32f; | ||
6180 | |||
6181 | 10 | void volk_32f_x2_subtract_32f_manual(float* cVector, const float* aVector, const float* bVector, unsigned int num_points, const char* impl_name) | |
6182 | { | ||
6183 | 10 | const int index = volk_get_index( | |
6184 | 10 | get_machine()->volk_32f_x2_subtract_32f_impl_names, | |
6185 | 10 | get_machine()->volk_32f_x2_subtract_32f_n_impls, | |
6186 | impl_name | ||
6187 | ); | ||
6188 | 10 | get_machine()->volk_32f_x2_subtract_32f_impls[index]( | |
6189 | cVector, aVector, bVector, num_points | ||
6190 | ); | ||
6191 | 10 | } | |
6192 | |||
6193 | 282 | volk_func_desc_t volk_32f_x2_subtract_32f_get_func_desc(void) { | |
6194 | 282 | const char **impl_names = get_machine()->volk_32f_x2_subtract_32f_impl_names; | |
6195 | 282 | const int *impl_deps = get_machine()->volk_32f_x2_subtract_32f_impl_deps; | |
6196 | 282 | const bool *alignment = get_machine()->volk_32f_x2_subtract_32f_impl_alignment; | |
6197 | 282 | const size_t n_impls = get_machine()->volk_32f_x2_subtract_32f_n_impls; | |
6198 | 282 | volk_func_desc_t desc = { | |
6199 | impl_names, | ||
6200 | impl_deps, | ||
6201 | alignment, | ||
6202 | n_impls | ||
6203 | }; | ||
6204 | 282 | return desc; | |
6205 | } | ||
6206 | |||
6207 | |||
6208 | |||
6209 | ✗ | static inline void __volk_32f_x3_sum_of_poly_32f_d(float* target, float* src0, float* center_point_array, float* cutoff, unsigned int num_points) | |
6210 | { | ||
6211 | |||
6212 | ✗ | if (volk_is_aligned( | |
6213 | ✗ | VOLK_OR_PTR(target, | |
6214 | VOLK_OR_PTR(src0, | ||
6215 | VOLK_OR_PTR(center_point_array, | ||
6216 | VOLK_OR_PTR(cutoff, | ||
6217 | 0)))) | ||
6218 | )){ | ||
6219 | ✗ | volk_32f_x3_sum_of_poly_32f_a(target, src0, center_point_array, cutoff, num_points); | |
6220 | } | ||
6221 | else{ | ||
6222 | ✗ | volk_32f_x3_sum_of_poly_32f_u(target, src0, center_point_array, cutoff, num_points); | |
6223 | } | ||
6224 | ✗ | } | |
6225 | |||
6226 | ✗ | static inline void __init_volk_32f_x3_sum_of_poly_32f(void) | |
6227 | { | ||
6228 | ✗ | const char *name = get_machine()->volk_32f_x3_sum_of_poly_32f_name; | |
6229 | ✗ | const char **impl_names = get_machine()->volk_32f_x3_sum_of_poly_32f_impl_names; | |
6230 | ✗ | const int *impl_deps = get_machine()->volk_32f_x3_sum_of_poly_32f_impl_deps; | |
6231 | ✗ | const bool *alignment = get_machine()->volk_32f_x3_sum_of_poly_32f_impl_alignment; | |
6232 | ✗ | const size_t n_impls = get_machine()->volk_32f_x3_sum_of_poly_32f_n_impls; | |
6233 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
6234 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
6235 | ✗ | volk_32f_x3_sum_of_poly_32f_a = get_machine()->volk_32f_x3_sum_of_poly_32f_impls[index_a]; | |
6236 | ✗ | volk_32f_x3_sum_of_poly_32f_u = get_machine()->volk_32f_x3_sum_of_poly_32f_impls[index_u]; | |
6237 | |||
6238 | ✗ | assert(volk_32f_x3_sum_of_poly_32f_a); | |
6239 | ✗ | assert(volk_32f_x3_sum_of_poly_32f_u); | |
6240 | |||
6241 | ✗ | volk_32f_x3_sum_of_poly_32f = &__volk_32f_x3_sum_of_poly_32f_d; | |
6242 | ✗ | } | |
6243 | |||
6244 | ✗ | static inline void __volk_32f_x3_sum_of_poly_32f_a(float* target, float* src0, float* center_point_array, float* cutoff, unsigned int num_points) | |
6245 | { | ||
6246 | ✗ | __init_volk_32f_x3_sum_of_poly_32f(); | |
6247 | ✗ | volk_32f_x3_sum_of_poly_32f_a(target, src0, center_point_array, cutoff, num_points); | |
6248 | ✗ | } | |
6249 | |||
6250 | ✗ | static inline void __volk_32f_x3_sum_of_poly_32f_u(float* target, float* src0, float* center_point_array, float* cutoff, unsigned int num_points) | |
6251 | { | ||
6252 | ✗ | __init_volk_32f_x3_sum_of_poly_32f(); | |
6253 | ✗ | volk_32f_x3_sum_of_poly_32f_u(target, src0, center_point_array, cutoff, num_points); | |
6254 | ✗ | } | |
6255 | |||
6256 | ✗ | static inline void __volk_32f_x3_sum_of_poly_32f(float* target, float* src0, float* center_point_array, float* cutoff, unsigned int num_points) | |
6257 | { | ||
6258 | ✗ | __init_volk_32f_x3_sum_of_poly_32f(); | |
6259 | ✗ | volk_32f_x3_sum_of_poly_32f(target, src0, center_point_array, cutoff, num_points); | |
6260 | ✗ | } | |
6261 | |||
6262 | p_32f_x3_sum_of_poly_32f volk_32f_x3_sum_of_poly_32f_a = &__volk_32f_x3_sum_of_poly_32f_a; | ||
6263 | p_32f_x3_sum_of_poly_32f volk_32f_x3_sum_of_poly_32f_u = &__volk_32f_x3_sum_of_poly_32f_u; | ||
6264 | p_32f_x3_sum_of_poly_32f volk_32f_x3_sum_of_poly_32f = &__volk_32f_x3_sum_of_poly_32f; | ||
6265 | |||
6266 | 12 | void volk_32f_x3_sum_of_poly_32f_manual(float* target, float* src0, float* center_point_array, float* cutoff, unsigned int num_points, const char* impl_name) | |
6267 | { | ||
6268 | 12 | const int index = volk_get_index( | |
6269 | 12 | get_machine()->volk_32f_x3_sum_of_poly_32f_impl_names, | |
6270 | 12 | get_machine()->volk_32f_x3_sum_of_poly_32f_n_impls, | |
6271 | impl_name | ||
6272 | ); | ||
6273 | 12 | get_machine()->volk_32f_x3_sum_of_poly_32f_impls[index]( | |
6274 | target, src0, center_point_array, cutoff, num_points | ||
6275 | ); | ||
6276 | 12 | } | |
6277 | |||
6278 | 282 | volk_func_desc_t volk_32f_x3_sum_of_poly_32f_get_func_desc(void) { | |
6279 | 282 | const char **impl_names = get_machine()->volk_32f_x3_sum_of_poly_32f_impl_names; | |
6280 | 282 | const int *impl_deps = get_machine()->volk_32f_x3_sum_of_poly_32f_impl_deps; | |
6281 | 282 | const bool *alignment = get_machine()->volk_32f_x3_sum_of_poly_32f_impl_alignment; | |
6282 | 282 | const size_t n_impls = get_machine()->volk_32f_x3_sum_of_poly_32f_n_impls; | |
6283 | 282 | volk_func_desc_t desc = { | |
6284 | impl_names, | ||
6285 | impl_deps, | ||
6286 | alignment, | ||
6287 | n_impls | ||
6288 | }; | ||
6289 | 282 | return desc; | |
6290 | } | ||
6291 | |||
6292 | |||
6293 | |||
6294 | ✗ | static inline void __volk_32fc_32f_add_32fc_d(lv_32fc_t* cVector, const lv_32fc_t* aVector, const float* bVector, unsigned int num_points) | |
6295 | { | ||
6296 | |||
6297 | ✗ | if (volk_is_aligned( | |
6298 | ✗ | VOLK_OR_PTR(cVector, | |
6299 | VOLK_OR_PTR(aVector, | ||
6300 | VOLK_OR_PTR(bVector, | ||
6301 | 0))) | ||
6302 | )){ | ||
6303 | ✗ | volk_32fc_32f_add_32fc_a(cVector, aVector, bVector, num_points); | |
6304 | } | ||
6305 | else{ | ||
6306 | ✗ | volk_32fc_32f_add_32fc_u(cVector, aVector, bVector, num_points); | |
6307 | } | ||
6308 | ✗ | } | |
6309 | |||
6310 | ✗ | static inline void __init_volk_32fc_32f_add_32fc(void) | |
6311 | { | ||
6312 | ✗ | const char *name = get_machine()->volk_32fc_32f_add_32fc_name; | |
6313 | ✗ | const char **impl_names = get_machine()->volk_32fc_32f_add_32fc_impl_names; | |
6314 | ✗ | const int *impl_deps = get_machine()->volk_32fc_32f_add_32fc_impl_deps; | |
6315 | ✗ | const bool *alignment = get_machine()->volk_32fc_32f_add_32fc_impl_alignment; | |
6316 | ✗ | const size_t n_impls = get_machine()->volk_32fc_32f_add_32fc_n_impls; | |
6317 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
6318 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
6319 | ✗ | volk_32fc_32f_add_32fc_a = get_machine()->volk_32fc_32f_add_32fc_impls[index_a]; | |
6320 | ✗ | volk_32fc_32f_add_32fc_u = get_machine()->volk_32fc_32f_add_32fc_impls[index_u]; | |
6321 | |||
6322 | ✗ | assert(volk_32fc_32f_add_32fc_a); | |
6323 | ✗ | assert(volk_32fc_32f_add_32fc_u); | |
6324 | |||
6325 | ✗ | volk_32fc_32f_add_32fc = &__volk_32fc_32f_add_32fc_d; | |
6326 | ✗ | } | |
6327 | |||
6328 | ✗ | static inline void __volk_32fc_32f_add_32fc_a(lv_32fc_t* cVector, const lv_32fc_t* aVector, const float* bVector, unsigned int num_points) | |
6329 | { | ||
6330 | ✗ | __init_volk_32fc_32f_add_32fc(); | |
6331 | ✗ | volk_32fc_32f_add_32fc_a(cVector, aVector, bVector, num_points); | |
6332 | ✗ | } | |
6333 | |||
6334 | ✗ | static inline void __volk_32fc_32f_add_32fc_u(lv_32fc_t* cVector, const lv_32fc_t* aVector, const float* bVector, unsigned int num_points) | |
6335 | { | ||
6336 | ✗ | __init_volk_32fc_32f_add_32fc(); | |
6337 | ✗ | volk_32fc_32f_add_32fc_u(cVector, aVector, bVector, num_points); | |
6338 | ✗ | } | |
6339 | |||
6340 | ✗ | static inline void __volk_32fc_32f_add_32fc(lv_32fc_t* cVector, const lv_32fc_t* aVector, const float* bVector, unsigned int num_points) | |
6341 | { | ||
6342 | ✗ | __init_volk_32fc_32f_add_32fc(); | |
6343 | ✗ | volk_32fc_32f_add_32fc(cVector, aVector, bVector, num_points); | |
6344 | ✗ | } | |
6345 | |||
6346 | p_32fc_32f_add_32fc volk_32fc_32f_add_32fc_a = &__volk_32fc_32f_add_32fc_a; | ||
6347 | p_32fc_32f_add_32fc volk_32fc_32f_add_32fc_u = &__volk_32fc_32f_add_32fc_u; | ||
6348 | p_32fc_32f_add_32fc volk_32fc_32f_add_32fc = &__volk_32fc_32f_add_32fc; | ||
6349 | |||
6350 | 6 | void volk_32fc_32f_add_32fc_manual(lv_32fc_t* cVector, const lv_32fc_t* aVector, const float* bVector, unsigned int num_points, const char* impl_name) | |
6351 | { | ||
6352 | 6 | const int index = volk_get_index( | |
6353 | 6 | get_machine()->volk_32fc_32f_add_32fc_impl_names, | |
6354 | 6 | get_machine()->volk_32fc_32f_add_32fc_n_impls, | |
6355 | impl_name | ||
6356 | ); | ||
6357 | 6 | get_machine()->volk_32fc_32f_add_32fc_impls[index]( | |
6358 | cVector, aVector, bVector, num_points | ||
6359 | ); | ||
6360 | 6 | } | |
6361 | |||
6362 | 282 | volk_func_desc_t volk_32fc_32f_add_32fc_get_func_desc(void) { | |
6363 | 282 | const char **impl_names = get_machine()->volk_32fc_32f_add_32fc_impl_names; | |
6364 | 282 | const int *impl_deps = get_machine()->volk_32fc_32f_add_32fc_impl_deps; | |
6365 | 282 | const bool *alignment = get_machine()->volk_32fc_32f_add_32fc_impl_alignment; | |
6366 | 282 | const size_t n_impls = get_machine()->volk_32fc_32f_add_32fc_n_impls; | |
6367 | 282 | volk_func_desc_t desc = { | |
6368 | impl_names, | ||
6369 | impl_deps, | ||
6370 | alignment, | ||
6371 | n_impls | ||
6372 | }; | ||
6373 | 282 | return desc; | |
6374 | } | ||
6375 | |||
6376 | |||
6377 | |||
6378 | ✗ | static inline void __volk_32fc_32f_dot_prod_32fc_d(lv_32fc_t* result, const lv_32fc_t* input, const float* taps, unsigned int num_points) | |
6379 | { | ||
6380 | |||
6381 | ✗ | if (volk_is_aligned( | |
6382 | ✗ | VOLK_OR_PTR(result, | |
6383 | VOLK_OR_PTR(input, | ||
6384 | VOLK_OR_PTR(taps, | ||
6385 | 0))) | ||
6386 | )){ | ||
6387 | ✗ | volk_32fc_32f_dot_prod_32fc_a(result, input, taps, num_points); | |
6388 | } | ||
6389 | else{ | ||
6390 | ✗ | volk_32fc_32f_dot_prod_32fc_u(result, input, taps, num_points); | |
6391 | } | ||
6392 | ✗ | } | |
6393 | |||
6394 | ✗ | static inline void __init_volk_32fc_32f_dot_prod_32fc(void) | |
6395 | { | ||
6396 | ✗ | const char *name = get_machine()->volk_32fc_32f_dot_prod_32fc_name; | |
6397 | ✗ | const char **impl_names = get_machine()->volk_32fc_32f_dot_prod_32fc_impl_names; | |
6398 | ✗ | const int *impl_deps = get_machine()->volk_32fc_32f_dot_prod_32fc_impl_deps; | |
6399 | ✗ | const bool *alignment = get_machine()->volk_32fc_32f_dot_prod_32fc_impl_alignment; | |
6400 | ✗ | const size_t n_impls = get_machine()->volk_32fc_32f_dot_prod_32fc_n_impls; | |
6401 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
6402 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
6403 | ✗ | volk_32fc_32f_dot_prod_32fc_a = get_machine()->volk_32fc_32f_dot_prod_32fc_impls[index_a]; | |
6404 | ✗ | volk_32fc_32f_dot_prod_32fc_u = get_machine()->volk_32fc_32f_dot_prod_32fc_impls[index_u]; | |
6405 | |||
6406 | ✗ | assert(volk_32fc_32f_dot_prod_32fc_a); | |
6407 | ✗ | assert(volk_32fc_32f_dot_prod_32fc_u); | |
6408 | |||
6409 | ✗ | volk_32fc_32f_dot_prod_32fc = &__volk_32fc_32f_dot_prod_32fc_d; | |
6410 | ✗ | } | |
6411 | |||
6412 | ✗ | static inline void __volk_32fc_32f_dot_prod_32fc_a(lv_32fc_t* result, const lv_32fc_t* input, const float* taps, unsigned int num_points) | |
6413 | { | ||
6414 | ✗ | __init_volk_32fc_32f_dot_prod_32fc(); | |
6415 | ✗ | volk_32fc_32f_dot_prod_32fc_a(result, input, taps, num_points); | |
6416 | ✗ | } | |
6417 | |||
6418 | ✗ | static inline void __volk_32fc_32f_dot_prod_32fc_u(lv_32fc_t* result, const lv_32fc_t* input, const float* taps, unsigned int num_points) | |
6419 | { | ||
6420 | ✗ | __init_volk_32fc_32f_dot_prod_32fc(); | |
6421 | ✗ | volk_32fc_32f_dot_prod_32fc_u(result, input, taps, num_points); | |
6422 | ✗ | } | |
6423 | |||
6424 | ✗ | static inline void __volk_32fc_32f_dot_prod_32fc(lv_32fc_t* result, const lv_32fc_t* input, const float* taps, unsigned int num_points) | |
6425 | { | ||
6426 | ✗ | __init_volk_32fc_32f_dot_prod_32fc(); | |
6427 | ✗ | volk_32fc_32f_dot_prod_32fc(result, input, taps, num_points); | |
6428 | ✗ | } | |
6429 | |||
6430 | p_32fc_32f_dot_prod_32fc volk_32fc_32f_dot_prod_32fc_a = &__volk_32fc_32f_dot_prod_32fc_a; | ||
6431 | p_32fc_32f_dot_prod_32fc volk_32fc_32f_dot_prod_32fc_u = &__volk_32fc_32f_dot_prod_32fc_u; | ||
6432 | p_32fc_32f_dot_prod_32fc volk_32fc_32f_dot_prod_32fc = &__volk_32fc_32f_dot_prod_32fc; | ||
6433 | |||
6434 | 14 | void volk_32fc_32f_dot_prod_32fc_manual(lv_32fc_t* result, const lv_32fc_t* input, const float* taps, unsigned int num_points, const char* impl_name) | |
6435 | { | ||
6436 | 14 | const int index = volk_get_index( | |
6437 | 14 | get_machine()->volk_32fc_32f_dot_prod_32fc_impl_names, | |
6438 | 14 | get_machine()->volk_32fc_32f_dot_prod_32fc_n_impls, | |
6439 | impl_name | ||
6440 | ); | ||
6441 | 14 | get_machine()->volk_32fc_32f_dot_prod_32fc_impls[index]( | |
6442 | result, input, taps, num_points | ||
6443 | ); | ||
6444 | 14 | } | |
6445 | |||
6446 | 282 | volk_func_desc_t volk_32fc_32f_dot_prod_32fc_get_func_desc(void) { | |
6447 | 282 | const char **impl_names = get_machine()->volk_32fc_32f_dot_prod_32fc_impl_names; | |
6448 | 282 | const int *impl_deps = get_machine()->volk_32fc_32f_dot_prod_32fc_impl_deps; | |
6449 | 282 | const bool *alignment = get_machine()->volk_32fc_32f_dot_prod_32fc_impl_alignment; | |
6450 | 282 | const size_t n_impls = get_machine()->volk_32fc_32f_dot_prod_32fc_n_impls; | |
6451 | 282 | volk_func_desc_t desc = { | |
6452 | impl_names, | ||
6453 | impl_deps, | ||
6454 | alignment, | ||
6455 | n_impls | ||
6456 | }; | ||
6457 | 282 | return desc; | |
6458 | } | ||
6459 | |||
6460 | |||
6461 | |||
6462 | ✗ | static inline void __volk_32fc_32f_multiply_32fc_d(lv_32fc_t* cVector, const lv_32fc_t* aVector, const float* bVector, unsigned int num_points) | |
6463 | { | ||
6464 | |||
6465 | ✗ | if (volk_is_aligned( | |
6466 | ✗ | VOLK_OR_PTR(cVector, | |
6467 | VOLK_OR_PTR(aVector, | ||
6468 | VOLK_OR_PTR(bVector, | ||
6469 | 0))) | ||
6470 | )){ | ||
6471 | ✗ | volk_32fc_32f_multiply_32fc_a(cVector, aVector, bVector, num_points); | |
6472 | } | ||
6473 | else{ | ||
6474 | ✗ | volk_32fc_32f_multiply_32fc_u(cVector, aVector, bVector, num_points); | |
6475 | } | ||
6476 | ✗ | } | |
6477 | |||
6478 | ✗ | static inline void __init_volk_32fc_32f_multiply_32fc(void) | |
6479 | { | ||
6480 | ✗ | const char *name = get_machine()->volk_32fc_32f_multiply_32fc_name; | |
6481 | ✗ | const char **impl_names = get_machine()->volk_32fc_32f_multiply_32fc_impl_names; | |
6482 | ✗ | const int *impl_deps = get_machine()->volk_32fc_32f_multiply_32fc_impl_deps; | |
6483 | ✗ | const bool *alignment = get_machine()->volk_32fc_32f_multiply_32fc_impl_alignment; | |
6484 | ✗ | const size_t n_impls = get_machine()->volk_32fc_32f_multiply_32fc_n_impls; | |
6485 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
6486 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
6487 | ✗ | volk_32fc_32f_multiply_32fc_a = get_machine()->volk_32fc_32f_multiply_32fc_impls[index_a]; | |
6488 | ✗ | volk_32fc_32f_multiply_32fc_u = get_machine()->volk_32fc_32f_multiply_32fc_impls[index_u]; | |
6489 | |||
6490 | ✗ | assert(volk_32fc_32f_multiply_32fc_a); | |
6491 | ✗ | assert(volk_32fc_32f_multiply_32fc_u); | |
6492 | |||
6493 | ✗ | volk_32fc_32f_multiply_32fc = &__volk_32fc_32f_multiply_32fc_d; | |
6494 | ✗ | } | |
6495 | |||
6496 | ✗ | static inline void __volk_32fc_32f_multiply_32fc_a(lv_32fc_t* cVector, const lv_32fc_t* aVector, const float* bVector, unsigned int num_points) | |
6497 | { | ||
6498 | ✗ | __init_volk_32fc_32f_multiply_32fc(); | |
6499 | ✗ | volk_32fc_32f_multiply_32fc_a(cVector, aVector, bVector, num_points); | |
6500 | ✗ | } | |
6501 | |||
6502 | ✗ | static inline void __volk_32fc_32f_multiply_32fc_u(lv_32fc_t* cVector, const lv_32fc_t* aVector, const float* bVector, unsigned int num_points) | |
6503 | { | ||
6504 | ✗ | __init_volk_32fc_32f_multiply_32fc(); | |
6505 | ✗ | volk_32fc_32f_multiply_32fc_u(cVector, aVector, bVector, num_points); | |
6506 | ✗ | } | |
6507 | |||
6508 | ✗ | static inline void __volk_32fc_32f_multiply_32fc(lv_32fc_t* cVector, const lv_32fc_t* aVector, const float* bVector, unsigned int num_points) | |
6509 | { | ||
6510 | ✗ | __init_volk_32fc_32f_multiply_32fc(); | |
6511 | ✗ | volk_32fc_32f_multiply_32fc(cVector, aVector, bVector, num_points); | |
6512 | ✗ | } | |
6513 | |||
6514 | p_32fc_32f_multiply_32fc volk_32fc_32f_multiply_32fc_a = &__volk_32fc_32f_multiply_32fc_a; | ||
6515 | p_32fc_32f_multiply_32fc volk_32fc_32f_multiply_32fc_u = &__volk_32fc_32f_multiply_32fc_u; | ||
6516 | p_32fc_32f_multiply_32fc volk_32fc_32f_multiply_32fc = &__volk_32fc_32f_multiply_32fc; | ||
6517 | |||
6518 | 8 | void volk_32fc_32f_multiply_32fc_manual(lv_32fc_t* cVector, const lv_32fc_t* aVector, const float* bVector, unsigned int num_points, const char* impl_name) | |
6519 | { | ||
6520 | 8 | const int index = volk_get_index( | |
6521 | 8 | get_machine()->volk_32fc_32f_multiply_32fc_impl_names, | |
6522 | 8 | get_machine()->volk_32fc_32f_multiply_32fc_n_impls, | |
6523 | impl_name | ||
6524 | ); | ||
6525 | 8 | get_machine()->volk_32fc_32f_multiply_32fc_impls[index]( | |
6526 | cVector, aVector, bVector, num_points | ||
6527 | ); | ||
6528 | 8 | } | |
6529 | |||
6530 | 282 | volk_func_desc_t volk_32fc_32f_multiply_32fc_get_func_desc(void) { | |
6531 | 282 | const char **impl_names = get_machine()->volk_32fc_32f_multiply_32fc_impl_names; | |
6532 | 282 | const int *impl_deps = get_machine()->volk_32fc_32f_multiply_32fc_impl_deps; | |
6533 | 282 | const bool *alignment = get_machine()->volk_32fc_32f_multiply_32fc_impl_alignment; | |
6534 | 282 | const size_t n_impls = get_machine()->volk_32fc_32f_multiply_32fc_n_impls; | |
6535 | 282 | volk_func_desc_t desc = { | |
6536 | impl_names, | ||
6537 | impl_deps, | ||
6538 | alignment, | ||
6539 | n_impls | ||
6540 | }; | ||
6541 | 282 | return desc; | |
6542 | } | ||
6543 | |||
6544 | |||
6545 | |||
6546 | ✗ | static inline void __volk_32fc_accumulator_s32fc_d(lv_32fc_t* result, const lv_32fc_t* inputBuffer, unsigned int num_points) | |
6547 | { | ||
6548 | |||
6549 | ✗ | if (volk_is_aligned( | |
6550 | ✗ | VOLK_OR_PTR(result, | |
6551 | VOLK_OR_PTR(inputBuffer, | ||
6552 | 0)) | ||
6553 | )){ | ||
6554 | ✗ | volk_32fc_accumulator_s32fc_a(result, inputBuffer, num_points); | |
6555 | } | ||
6556 | else{ | ||
6557 | ✗ | volk_32fc_accumulator_s32fc_u(result, inputBuffer, num_points); | |
6558 | } | ||
6559 | ✗ | } | |
6560 | |||
6561 | ✗ | static inline void __init_volk_32fc_accumulator_s32fc(void) | |
6562 | { | ||
6563 | ✗ | const char *name = get_machine()->volk_32fc_accumulator_s32fc_name; | |
6564 | ✗ | const char **impl_names = get_machine()->volk_32fc_accumulator_s32fc_impl_names; | |
6565 | ✗ | const int *impl_deps = get_machine()->volk_32fc_accumulator_s32fc_impl_deps; | |
6566 | ✗ | const bool *alignment = get_machine()->volk_32fc_accumulator_s32fc_impl_alignment; | |
6567 | ✗ | const size_t n_impls = get_machine()->volk_32fc_accumulator_s32fc_n_impls; | |
6568 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
6569 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
6570 | ✗ | volk_32fc_accumulator_s32fc_a = get_machine()->volk_32fc_accumulator_s32fc_impls[index_a]; | |
6571 | ✗ | volk_32fc_accumulator_s32fc_u = get_machine()->volk_32fc_accumulator_s32fc_impls[index_u]; | |
6572 | |||
6573 | ✗ | assert(volk_32fc_accumulator_s32fc_a); | |
6574 | ✗ | assert(volk_32fc_accumulator_s32fc_u); | |
6575 | |||
6576 | ✗ | volk_32fc_accumulator_s32fc = &__volk_32fc_accumulator_s32fc_d; | |
6577 | ✗ | } | |
6578 | |||
6579 | ✗ | static inline void __volk_32fc_accumulator_s32fc_a(lv_32fc_t* result, const lv_32fc_t* inputBuffer, unsigned int num_points) | |
6580 | { | ||
6581 | ✗ | __init_volk_32fc_accumulator_s32fc(); | |
6582 | ✗ | volk_32fc_accumulator_s32fc_a(result, inputBuffer, num_points); | |
6583 | ✗ | } | |
6584 | |||
6585 | ✗ | static inline void __volk_32fc_accumulator_s32fc_u(lv_32fc_t* result, const lv_32fc_t* inputBuffer, unsigned int num_points) | |
6586 | { | ||
6587 | ✗ | __init_volk_32fc_accumulator_s32fc(); | |
6588 | ✗ | volk_32fc_accumulator_s32fc_u(result, inputBuffer, num_points); | |
6589 | ✗ | } | |
6590 | |||
6591 | ✗ | static inline void __volk_32fc_accumulator_s32fc(lv_32fc_t* result, const lv_32fc_t* inputBuffer, unsigned int num_points) | |
6592 | { | ||
6593 | ✗ | __init_volk_32fc_accumulator_s32fc(); | |
6594 | ✗ | volk_32fc_accumulator_s32fc(result, inputBuffer, num_points); | |
6595 | ✗ | } | |
6596 | |||
6597 | p_32fc_accumulator_s32fc volk_32fc_accumulator_s32fc_a = &__volk_32fc_accumulator_s32fc_a; | ||
6598 | p_32fc_accumulator_s32fc volk_32fc_accumulator_s32fc_u = &__volk_32fc_accumulator_s32fc_u; | ||
6599 | p_32fc_accumulator_s32fc volk_32fc_accumulator_s32fc = &__volk_32fc_accumulator_s32fc; | ||
6600 | |||
6601 | 10 | void volk_32fc_accumulator_s32fc_manual(lv_32fc_t* result, const lv_32fc_t* inputBuffer, unsigned int num_points, const char* impl_name) | |
6602 | { | ||
6603 | 10 | const int index = volk_get_index( | |
6604 | 10 | get_machine()->volk_32fc_accumulator_s32fc_impl_names, | |
6605 | 10 | get_machine()->volk_32fc_accumulator_s32fc_n_impls, | |
6606 | impl_name | ||
6607 | ); | ||
6608 | 10 | get_machine()->volk_32fc_accumulator_s32fc_impls[index]( | |
6609 | result, inputBuffer, num_points | ||
6610 | ); | ||
6611 | 10 | } | |
6612 | |||
6613 | 282 | volk_func_desc_t volk_32fc_accumulator_s32fc_get_func_desc(void) { | |
6614 | 282 | const char **impl_names = get_machine()->volk_32fc_accumulator_s32fc_impl_names; | |
6615 | 282 | const int *impl_deps = get_machine()->volk_32fc_accumulator_s32fc_impl_deps; | |
6616 | 282 | const bool *alignment = get_machine()->volk_32fc_accumulator_s32fc_impl_alignment; | |
6617 | 282 | const size_t n_impls = get_machine()->volk_32fc_accumulator_s32fc_n_impls; | |
6618 | 282 | volk_func_desc_t desc = { | |
6619 | impl_names, | ||
6620 | impl_deps, | ||
6621 | alignment, | ||
6622 | n_impls | ||
6623 | }; | ||
6624 | 282 | return desc; | |
6625 | } | ||
6626 | |||
6627 | |||
6628 | |||
6629 | ✗ | static inline void __volk_32fc_conjugate_32fc_d(lv_32fc_t* cVector, const lv_32fc_t* aVector, unsigned int num_points) | |
6630 | { | ||
6631 | |||
6632 | ✗ | if (volk_is_aligned( | |
6633 | ✗ | VOLK_OR_PTR(cVector, | |
6634 | VOLK_OR_PTR(aVector, | ||
6635 | 0)) | ||
6636 | )){ | ||
6637 | ✗ | volk_32fc_conjugate_32fc_a(cVector, aVector, num_points); | |
6638 | } | ||
6639 | else{ | ||
6640 | ✗ | volk_32fc_conjugate_32fc_u(cVector, aVector, num_points); | |
6641 | } | ||
6642 | ✗ | } | |
6643 | |||
6644 | ✗ | static inline void __init_volk_32fc_conjugate_32fc(void) | |
6645 | { | ||
6646 | ✗ | const char *name = get_machine()->volk_32fc_conjugate_32fc_name; | |
6647 | ✗ | const char **impl_names = get_machine()->volk_32fc_conjugate_32fc_impl_names; | |
6648 | ✗ | const int *impl_deps = get_machine()->volk_32fc_conjugate_32fc_impl_deps; | |
6649 | ✗ | const bool *alignment = get_machine()->volk_32fc_conjugate_32fc_impl_alignment; | |
6650 | ✗ | const size_t n_impls = get_machine()->volk_32fc_conjugate_32fc_n_impls; | |
6651 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
6652 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
6653 | ✗ | volk_32fc_conjugate_32fc_a = get_machine()->volk_32fc_conjugate_32fc_impls[index_a]; | |
6654 | ✗ | volk_32fc_conjugate_32fc_u = get_machine()->volk_32fc_conjugate_32fc_impls[index_u]; | |
6655 | |||
6656 | ✗ | assert(volk_32fc_conjugate_32fc_a); | |
6657 | ✗ | assert(volk_32fc_conjugate_32fc_u); | |
6658 | |||
6659 | ✗ | volk_32fc_conjugate_32fc = &__volk_32fc_conjugate_32fc_d; | |
6660 | ✗ | } | |
6661 | |||
6662 | ✗ | static inline void __volk_32fc_conjugate_32fc_a(lv_32fc_t* cVector, const lv_32fc_t* aVector, unsigned int num_points) | |
6663 | { | ||
6664 | ✗ | __init_volk_32fc_conjugate_32fc(); | |
6665 | ✗ | volk_32fc_conjugate_32fc_a(cVector, aVector, num_points); | |
6666 | ✗ | } | |
6667 | |||
6668 | ✗ | static inline void __volk_32fc_conjugate_32fc_u(lv_32fc_t* cVector, const lv_32fc_t* aVector, unsigned int num_points) | |
6669 | { | ||
6670 | ✗ | __init_volk_32fc_conjugate_32fc(); | |
6671 | ✗ | volk_32fc_conjugate_32fc_u(cVector, aVector, num_points); | |
6672 | ✗ | } | |
6673 | |||
6674 | ✗ | static inline void __volk_32fc_conjugate_32fc(lv_32fc_t* cVector, const lv_32fc_t* aVector, unsigned int num_points) | |
6675 | { | ||
6676 | ✗ | __init_volk_32fc_conjugate_32fc(); | |
6677 | ✗ | volk_32fc_conjugate_32fc(cVector, aVector, num_points); | |
6678 | ✗ | } | |
6679 | |||
6680 | p_32fc_conjugate_32fc volk_32fc_conjugate_32fc_a = &__volk_32fc_conjugate_32fc_a; | ||
6681 | p_32fc_conjugate_32fc volk_32fc_conjugate_32fc_u = &__volk_32fc_conjugate_32fc_u; | ||
6682 | p_32fc_conjugate_32fc volk_32fc_conjugate_32fc = &__volk_32fc_conjugate_32fc; | ||
6683 | |||
6684 | 12 | void volk_32fc_conjugate_32fc_manual(lv_32fc_t* cVector, const lv_32fc_t* aVector, unsigned int num_points, const char* impl_name) | |
6685 | { | ||
6686 | 12 | const int index = volk_get_index( | |
6687 | 12 | get_machine()->volk_32fc_conjugate_32fc_impl_names, | |
6688 | 12 | get_machine()->volk_32fc_conjugate_32fc_n_impls, | |
6689 | impl_name | ||
6690 | ); | ||
6691 | 12 | get_machine()->volk_32fc_conjugate_32fc_impls[index]( | |
6692 | cVector, aVector, num_points | ||
6693 | ); | ||
6694 | 12 | } | |
6695 | |||
6696 | 282 | volk_func_desc_t volk_32fc_conjugate_32fc_get_func_desc(void) { | |
6697 | 282 | const char **impl_names = get_machine()->volk_32fc_conjugate_32fc_impl_names; | |
6698 | 282 | const int *impl_deps = get_machine()->volk_32fc_conjugate_32fc_impl_deps; | |
6699 | 282 | const bool *alignment = get_machine()->volk_32fc_conjugate_32fc_impl_alignment; | |
6700 | 282 | const size_t n_impls = get_machine()->volk_32fc_conjugate_32fc_n_impls; | |
6701 | 282 | volk_func_desc_t desc = { | |
6702 | impl_names, | ||
6703 | impl_deps, | ||
6704 | alignment, | ||
6705 | n_impls | ||
6706 | }; | ||
6707 | 282 | return desc; | |
6708 | } | ||
6709 | |||
6710 | |||
6711 | |||
6712 | ✗ | static inline void __volk_32fc_convert_16ic_d(lv_16sc_t* outputVector, const lv_32fc_t* inputVector, unsigned int num_points) | |
6713 | { | ||
6714 | |||
6715 | ✗ | if (volk_is_aligned( | |
6716 | ✗ | VOLK_OR_PTR(outputVector, | |
6717 | VOLK_OR_PTR(inputVector, | ||
6718 | 0)) | ||
6719 | )){ | ||
6720 | ✗ | volk_32fc_convert_16ic_a(outputVector, inputVector, num_points); | |
6721 | } | ||
6722 | else{ | ||
6723 | ✗ | volk_32fc_convert_16ic_u(outputVector, inputVector, num_points); | |
6724 | } | ||
6725 | ✗ | } | |
6726 | |||
6727 | ✗ | static inline void __init_volk_32fc_convert_16ic(void) | |
6728 | { | ||
6729 | ✗ | const char *name = get_machine()->volk_32fc_convert_16ic_name; | |
6730 | ✗ | const char **impl_names = get_machine()->volk_32fc_convert_16ic_impl_names; | |
6731 | ✗ | const int *impl_deps = get_machine()->volk_32fc_convert_16ic_impl_deps; | |
6732 | ✗ | const bool *alignment = get_machine()->volk_32fc_convert_16ic_impl_alignment; | |
6733 | ✗ | const size_t n_impls = get_machine()->volk_32fc_convert_16ic_n_impls; | |
6734 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
6735 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
6736 | ✗ | volk_32fc_convert_16ic_a = get_machine()->volk_32fc_convert_16ic_impls[index_a]; | |
6737 | ✗ | volk_32fc_convert_16ic_u = get_machine()->volk_32fc_convert_16ic_impls[index_u]; | |
6738 | |||
6739 | ✗ | assert(volk_32fc_convert_16ic_a); | |
6740 | ✗ | assert(volk_32fc_convert_16ic_u); | |
6741 | |||
6742 | ✗ | volk_32fc_convert_16ic = &__volk_32fc_convert_16ic_d; | |
6743 | ✗ | } | |
6744 | |||
6745 | ✗ | static inline void __volk_32fc_convert_16ic_a(lv_16sc_t* outputVector, const lv_32fc_t* inputVector, unsigned int num_points) | |
6746 | { | ||
6747 | ✗ | __init_volk_32fc_convert_16ic(); | |
6748 | ✗ | volk_32fc_convert_16ic_a(outputVector, inputVector, num_points); | |
6749 | ✗ | } | |
6750 | |||
6751 | ✗ | static inline void __volk_32fc_convert_16ic_u(lv_16sc_t* outputVector, const lv_32fc_t* inputVector, unsigned int num_points) | |
6752 | { | ||
6753 | ✗ | __init_volk_32fc_convert_16ic(); | |
6754 | ✗ | volk_32fc_convert_16ic_u(outputVector, inputVector, num_points); | |
6755 | ✗ | } | |
6756 | |||
6757 | ✗ | static inline void __volk_32fc_convert_16ic(lv_16sc_t* outputVector, const lv_32fc_t* inputVector, unsigned int num_points) | |
6758 | { | ||
6759 | ✗ | __init_volk_32fc_convert_16ic(); | |
6760 | ✗ | volk_32fc_convert_16ic(outputVector, inputVector, num_points); | |
6761 | ✗ | } | |
6762 | |||
6763 | p_32fc_convert_16ic volk_32fc_convert_16ic_a = &__volk_32fc_convert_16ic_a; | ||
6764 | p_32fc_convert_16ic volk_32fc_convert_16ic_u = &__volk_32fc_convert_16ic_u; | ||
6765 | p_32fc_convert_16ic volk_32fc_convert_16ic = &__volk_32fc_convert_16ic; | ||
6766 | |||
6767 | 10 | void volk_32fc_convert_16ic_manual(lv_16sc_t* outputVector, const lv_32fc_t* inputVector, unsigned int num_points, const char* impl_name) | |
6768 | { | ||
6769 | 10 | const int index = volk_get_index( | |
6770 | 10 | get_machine()->volk_32fc_convert_16ic_impl_names, | |
6771 | 10 | get_machine()->volk_32fc_convert_16ic_n_impls, | |
6772 | impl_name | ||
6773 | ); | ||
6774 | 10 | get_machine()->volk_32fc_convert_16ic_impls[index]( | |
6775 | outputVector, inputVector, num_points | ||
6776 | ); | ||
6777 | 10 | } | |
6778 | |||
6779 | 282 | volk_func_desc_t volk_32fc_convert_16ic_get_func_desc(void) { | |
6780 | 282 | const char **impl_names = get_machine()->volk_32fc_convert_16ic_impl_names; | |
6781 | 282 | const int *impl_deps = get_machine()->volk_32fc_convert_16ic_impl_deps; | |
6782 | 282 | const bool *alignment = get_machine()->volk_32fc_convert_16ic_impl_alignment; | |
6783 | 282 | const size_t n_impls = get_machine()->volk_32fc_convert_16ic_n_impls; | |
6784 | 282 | volk_func_desc_t desc = { | |
6785 | impl_names, | ||
6786 | impl_deps, | ||
6787 | alignment, | ||
6788 | n_impls | ||
6789 | }; | ||
6790 | 282 | return desc; | |
6791 | } | ||
6792 | |||
6793 | |||
6794 | |||
6795 | ✗ | static inline void __volk_32fc_deinterleave_32f_x2_d(float* iBuffer, float* qBuffer, const lv_32fc_t* complexVector, unsigned int num_points) | |
6796 | { | ||
6797 | |||
6798 | ✗ | if (volk_is_aligned( | |
6799 | ✗ | VOLK_OR_PTR(iBuffer, | |
6800 | VOLK_OR_PTR(qBuffer, | ||
6801 | VOLK_OR_PTR(complexVector, | ||
6802 | 0))) | ||
6803 | )){ | ||
6804 | ✗ | volk_32fc_deinterleave_32f_x2_a(iBuffer, qBuffer, complexVector, num_points); | |
6805 | } | ||
6806 | else{ | ||
6807 | ✗ | volk_32fc_deinterleave_32f_x2_u(iBuffer, qBuffer, complexVector, num_points); | |
6808 | } | ||
6809 | ✗ | } | |
6810 | |||
6811 | ✗ | static inline void __init_volk_32fc_deinterleave_32f_x2(void) | |
6812 | { | ||
6813 | ✗ | const char *name = get_machine()->volk_32fc_deinterleave_32f_x2_name; | |
6814 | ✗ | const char **impl_names = get_machine()->volk_32fc_deinterleave_32f_x2_impl_names; | |
6815 | ✗ | const int *impl_deps = get_machine()->volk_32fc_deinterleave_32f_x2_impl_deps; | |
6816 | ✗ | const bool *alignment = get_machine()->volk_32fc_deinterleave_32f_x2_impl_alignment; | |
6817 | ✗ | const size_t n_impls = get_machine()->volk_32fc_deinterleave_32f_x2_n_impls; | |
6818 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
6819 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
6820 | ✗ | volk_32fc_deinterleave_32f_x2_a = get_machine()->volk_32fc_deinterleave_32f_x2_impls[index_a]; | |
6821 | ✗ | volk_32fc_deinterleave_32f_x2_u = get_machine()->volk_32fc_deinterleave_32f_x2_impls[index_u]; | |
6822 | |||
6823 | ✗ | assert(volk_32fc_deinterleave_32f_x2_a); | |
6824 | ✗ | assert(volk_32fc_deinterleave_32f_x2_u); | |
6825 | |||
6826 | ✗ | volk_32fc_deinterleave_32f_x2 = &__volk_32fc_deinterleave_32f_x2_d; | |
6827 | ✗ | } | |
6828 | |||
6829 | ✗ | static inline void __volk_32fc_deinterleave_32f_x2_a(float* iBuffer, float* qBuffer, const lv_32fc_t* complexVector, unsigned int num_points) | |
6830 | { | ||
6831 | ✗ | __init_volk_32fc_deinterleave_32f_x2(); | |
6832 | ✗ | volk_32fc_deinterleave_32f_x2_a(iBuffer, qBuffer, complexVector, num_points); | |
6833 | ✗ | } | |
6834 | |||
6835 | ✗ | static inline void __volk_32fc_deinterleave_32f_x2_u(float* iBuffer, float* qBuffer, const lv_32fc_t* complexVector, unsigned int num_points) | |
6836 | { | ||
6837 | ✗ | __init_volk_32fc_deinterleave_32f_x2(); | |
6838 | ✗ | volk_32fc_deinterleave_32f_x2_u(iBuffer, qBuffer, complexVector, num_points); | |
6839 | ✗ | } | |
6840 | |||
6841 | ✗ | static inline void __volk_32fc_deinterleave_32f_x2(float* iBuffer, float* qBuffer, const lv_32fc_t* complexVector, unsigned int num_points) | |
6842 | { | ||
6843 | ✗ | __init_volk_32fc_deinterleave_32f_x2(); | |
6844 | ✗ | volk_32fc_deinterleave_32f_x2(iBuffer, qBuffer, complexVector, num_points); | |
6845 | ✗ | } | |
6846 | |||
6847 | p_32fc_deinterleave_32f_x2 volk_32fc_deinterleave_32f_x2_a = &__volk_32fc_deinterleave_32f_x2_a; | ||
6848 | p_32fc_deinterleave_32f_x2 volk_32fc_deinterleave_32f_x2_u = &__volk_32fc_deinterleave_32f_x2_u; | ||
6849 | p_32fc_deinterleave_32f_x2 volk_32fc_deinterleave_32f_x2 = &__volk_32fc_deinterleave_32f_x2; | ||
6850 | |||
6851 | 8 | void volk_32fc_deinterleave_32f_x2_manual(float* iBuffer, float* qBuffer, const lv_32fc_t* complexVector, unsigned int num_points, const char* impl_name) | |
6852 | { | ||
6853 | 8 | const int index = volk_get_index( | |
6854 | 8 | get_machine()->volk_32fc_deinterleave_32f_x2_impl_names, | |
6855 | 8 | get_machine()->volk_32fc_deinterleave_32f_x2_n_impls, | |
6856 | impl_name | ||
6857 | ); | ||
6858 | 8 | get_machine()->volk_32fc_deinterleave_32f_x2_impls[index]( | |
6859 | iBuffer, qBuffer, complexVector, num_points | ||
6860 | ); | ||
6861 | 8 | } | |
6862 | |||
6863 | 282 | volk_func_desc_t volk_32fc_deinterleave_32f_x2_get_func_desc(void) { | |
6864 | 282 | const char **impl_names = get_machine()->volk_32fc_deinterleave_32f_x2_impl_names; | |
6865 | 282 | const int *impl_deps = get_machine()->volk_32fc_deinterleave_32f_x2_impl_deps; | |
6866 | 282 | const bool *alignment = get_machine()->volk_32fc_deinterleave_32f_x2_impl_alignment; | |
6867 | 282 | const size_t n_impls = get_machine()->volk_32fc_deinterleave_32f_x2_n_impls; | |
6868 | 282 | volk_func_desc_t desc = { | |
6869 | impl_names, | ||
6870 | impl_deps, | ||
6871 | alignment, | ||
6872 | n_impls | ||
6873 | }; | ||
6874 | 282 | return desc; | |
6875 | } | ||
6876 | |||
6877 | |||
6878 | |||
6879 | ✗ | static inline void __volk_32fc_deinterleave_64f_x2_d(double* iBuffer, double* qBuffer, const lv_32fc_t* complexVector, unsigned int num_points) | |
6880 | { | ||
6881 | |||
6882 | ✗ | if (volk_is_aligned( | |
6883 | ✗ | VOLK_OR_PTR(iBuffer, | |
6884 | VOLK_OR_PTR(qBuffer, | ||
6885 | VOLK_OR_PTR(complexVector, | ||
6886 | 0))) | ||
6887 | )){ | ||
6888 | ✗ | volk_32fc_deinterleave_64f_x2_a(iBuffer, qBuffer, complexVector, num_points); | |
6889 | } | ||
6890 | else{ | ||
6891 | ✗ | volk_32fc_deinterleave_64f_x2_u(iBuffer, qBuffer, complexVector, num_points); | |
6892 | } | ||
6893 | ✗ | } | |
6894 | |||
6895 | ✗ | static inline void __init_volk_32fc_deinterleave_64f_x2(void) | |
6896 | { | ||
6897 | ✗ | const char *name = get_machine()->volk_32fc_deinterleave_64f_x2_name; | |
6898 | ✗ | const char **impl_names = get_machine()->volk_32fc_deinterleave_64f_x2_impl_names; | |
6899 | ✗ | const int *impl_deps = get_machine()->volk_32fc_deinterleave_64f_x2_impl_deps; | |
6900 | ✗ | const bool *alignment = get_machine()->volk_32fc_deinterleave_64f_x2_impl_alignment; | |
6901 | ✗ | const size_t n_impls = get_machine()->volk_32fc_deinterleave_64f_x2_n_impls; | |
6902 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
6903 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
6904 | ✗ | volk_32fc_deinterleave_64f_x2_a = get_machine()->volk_32fc_deinterleave_64f_x2_impls[index_a]; | |
6905 | ✗ | volk_32fc_deinterleave_64f_x2_u = get_machine()->volk_32fc_deinterleave_64f_x2_impls[index_u]; | |
6906 | |||
6907 | ✗ | assert(volk_32fc_deinterleave_64f_x2_a); | |
6908 | ✗ | assert(volk_32fc_deinterleave_64f_x2_u); | |
6909 | |||
6910 | ✗ | volk_32fc_deinterleave_64f_x2 = &__volk_32fc_deinterleave_64f_x2_d; | |
6911 | ✗ | } | |
6912 | |||
6913 | ✗ | static inline void __volk_32fc_deinterleave_64f_x2_a(double* iBuffer, double* qBuffer, const lv_32fc_t* complexVector, unsigned int num_points) | |
6914 | { | ||
6915 | ✗ | __init_volk_32fc_deinterleave_64f_x2(); | |
6916 | ✗ | volk_32fc_deinterleave_64f_x2_a(iBuffer, qBuffer, complexVector, num_points); | |
6917 | ✗ | } | |
6918 | |||
6919 | ✗ | static inline void __volk_32fc_deinterleave_64f_x2_u(double* iBuffer, double* qBuffer, const lv_32fc_t* complexVector, unsigned int num_points) | |
6920 | { | ||
6921 | ✗ | __init_volk_32fc_deinterleave_64f_x2(); | |
6922 | ✗ | volk_32fc_deinterleave_64f_x2_u(iBuffer, qBuffer, complexVector, num_points); | |
6923 | ✗ | } | |
6924 | |||
6925 | ✗ | static inline void __volk_32fc_deinterleave_64f_x2(double* iBuffer, double* qBuffer, const lv_32fc_t* complexVector, unsigned int num_points) | |
6926 | { | ||
6927 | ✗ | __init_volk_32fc_deinterleave_64f_x2(); | |
6928 | ✗ | volk_32fc_deinterleave_64f_x2(iBuffer, qBuffer, complexVector, num_points); | |
6929 | ✗ | } | |
6930 | |||
6931 | p_32fc_deinterleave_64f_x2 volk_32fc_deinterleave_64f_x2_a = &__volk_32fc_deinterleave_64f_x2_a; | ||
6932 | p_32fc_deinterleave_64f_x2 volk_32fc_deinterleave_64f_x2_u = &__volk_32fc_deinterleave_64f_x2_u; | ||
6933 | p_32fc_deinterleave_64f_x2 volk_32fc_deinterleave_64f_x2 = &__volk_32fc_deinterleave_64f_x2; | ||
6934 | |||
6935 | 12 | void volk_32fc_deinterleave_64f_x2_manual(double* iBuffer, double* qBuffer, const lv_32fc_t* complexVector, unsigned int num_points, const char* impl_name) | |
6936 | { | ||
6937 | 12 | const int index = volk_get_index( | |
6938 | 12 | get_machine()->volk_32fc_deinterleave_64f_x2_impl_names, | |
6939 | 12 | get_machine()->volk_32fc_deinterleave_64f_x2_n_impls, | |
6940 | impl_name | ||
6941 | ); | ||
6942 | 12 | get_machine()->volk_32fc_deinterleave_64f_x2_impls[index]( | |
6943 | iBuffer, qBuffer, complexVector, num_points | ||
6944 | ); | ||
6945 | 12 | } | |
6946 | |||
6947 | 282 | volk_func_desc_t volk_32fc_deinterleave_64f_x2_get_func_desc(void) { | |
6948 | 282 | const char **impl_names = get_machine()->volk_32fc_deinterleave_64f_x2_impl_names; | |
6949 | 282 | const int *impl_deps = get_machine()->volk_32fc_deinterleave_64f_x2_impl_deps; | |
6950 | 282 | const bool *alignment = get_machine()->volk_32fc_deinterleave_64f_x2_impl_alignment; | |
6951 | 282 | const size_t n_impls = get_machine()->volk_32fc_deinterleave_64f_x2_n_impls; | |
6952 | 282 | volk_func_desc_t desc = { | |
6953 | impl_names, | ||
6954 | impl_deps, | ||
6955 | alignment, | ||
6956 | n_impls | ||
6957 | }; | ||
6958 | 282 | return desc; | |
6959 | } | ||
6960 | |||
6961 | |||
6962 | |||
6963 | ✗ | static inline void __volk_32fc_deinterleave_imag_32f_d(float* qBuffer, const lv_32fc_t* complexVector, unsigned int num_points) | |
6964 | { | ||
6965 | |||
6966 | ✗ | if (volk_is_aligned( | |
6967 | ✗ | VOLK_OR_PTR(qBuffer, | |
6968 | VOLK_OR_PTR(complexVector, | ||
6969 | 0)) | ||
6970 | )){ | ||
6971 | ✗ | volk_32fc_deinterleave_imag_32f_a(qBuffer, complexVector, num_points); | |
6972 | } | ||
6973 | else{ | ||
6974 | ✗ | volk_32fc_deinterleave_imag_32f_u(qBuffer, complexVector, num_points); | |
6975 | } | ||
6976 | ✗ | } | |
6977 | |||
6978 | ✗ | static inline void __init_volk_32fc_deinterleave_imag_32f(void) | |
6979 | { | ||
6980 | ✗ | const char *name = get_machine()->volk_32fc_deinterleave_imag_32f_name; | |
6981 | ✗ | const char **impl_names = get_machine()->volk_32fc_deinterleave_imag_32f_impl_names; | |
6982 | ✗ | const int *impl_deps = get_machine()->volk_32fc_deinterleave_imag_32f_impl_deps; | |
6983 | ✗ | const bool *alignment = get_machine()->volk_32fc_deinterleave_imag_32f_impl_alignment; | |
6984 | ✗ | const size_t n_impls = get_machine()->volk_32fc_deinterleave_imag_32f_n_impls; | |
6985 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
6986 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
6987 | ✗ | volk_32fc_deinterleave_imag_32f_a = get_machine()->volk_32fc_deinterleave_imag_32f_impls[index_a]; | |
6988 | ✗ | volk_32fc_deinterleave_imag_32f_u = get_machine()->volk_32fc_deinterleave_imag_32f_impls[index_u]; | |
6989 | |||
6990 | ✗ | assert(volk_32fc_deinterleave_imag_32f_a); | |
6991 | ✗ | assert(volk_32fc_deinterleave_imag_32f_u); | |
6992 | |||
6993 | ✗ | volk_32fc_deinterleave_imag_32f = &__volk_32fc_deinterleave_imag_32f_d; | |
6994 | ✗ | } | |
6995 | |||
6996 | ✗ | static inline void __volk_32fc_deinterleave_imag_32f_a(float* qBuffer, const lv_32fc_t* complexVector, unsigned int num_points) | |
6997 | { | ||
6998 | ✗ | __init_volk_32fc_deinterleave_imag_32f(); | |
6999 | ✗ | volk_32fc_deinterleave_imag_32f_a(qBuffer, complexVector, num_points); | |
7000 | ✗ | } | |
7001 | |||
7002 | ✗ | static inline void __volk_32fc_deinterleave_imag_32f_u(float* qBuffer, const lv_32fc_t* complexVector, unsigned int num_points) | |
7003 | { | ||
7004 | ✗ | __init_volk_32fc_deinterleave_imag_32f(); | |
7005 | ✗ | volk_32fc_deinterleave_imag_32f_u(qBuffer, complexVector, num_points); | |
7006 | ✗ | } | |
7007 | |||
7008 | ✗ | static inline void __volk_32fc_deinterleave_imag_32f(float* qBuffer, const lv_32fc_t* complexVector, unsigned int num_points) | |
7009 | { | ||
7010 | ✗ | __init_volk_32fc_deinterleave_imag_32f(); | |
7011 | ✗ | volk_32fc_deinterleave_imag_32f(qBuffer, complexVector, num_points); | |
7012 | ✗ | } | |
7013 | |||
7014 | p_32fc_deinterleave_imag_32f volk_32fc_deinterleave_imag_32f_a = &__volk_32fc_deinterleave_imag_32f_a; | ||
7015 | p_32fc_deinterleave_imag_32f volk_32fc_deinterleave_imag_32f_u = &__volk_32fc_deinterleave_imag_32f_u; | ||
7016 | p_32fc_deinterleave_imag_32f volk_32fc_deinterleave_imag_32f = &__volk_32fc_deinterleave_imag_32f; | ||
7017 | |||
7018 | 8 | void volk_32fc_deinterleave_imag_32f_manual(float* qBuffer, const lv_32fc_t* complexVector, unsigned int num_points, const char* impl_name) | |
7019 | { | ||
7020 | 8 | const int index = volk_get_index( | |
7021 | 8 | get_machine()->volk_32fc_deinterleave_imag_32f_impl_names, | |
7022 | 8 | get_machine()->volk_32fc_deinterleave_imag_32f_n_impls, | |
7023 | impl_name | ||
7024 | ); | ||
7025 | 8 | get_machine()->volk_32fc_deinterleave_imag_32f_impls[index]( | |
7026 | qBuffer, complexVector, num_points | ||
7027 | ); | ||
7028 | 8 | } | |
7029 | |||
7030 | 282 | volk_func_desc_t volk_32fc_deinterleave_imag_32f_get_func_desc(void) { | |
7031 | 282 | const char **impl_names = get_machine()->volk_32fc_deinterleave_imag_32f_impl_names; | |
7032 | 282 | const int *impl_deps = get_machine()->volk_32fc_deinterleave_imag_32f_impl_deps; | |
7033 | 282 | const bool *alignment = get_machine()->volk_32fc_deinterleave_imag_32f_impl_alignment; | |
7034 | 282 | const size_t n_impls = get_machine()->volk_32fc_deinterleave_imag_32f_n_impls; | |
7035 | 282 | volk_func_desc_t desc = { | |
7036 | impl_names, | ||
7037 | impl_deps, | ||
7038 | alignment, | ||
7039 | n_impls | ||
7040 | }; | ||
7041 | 282 | return desc; | |
7042 | } | ||
7043 | |||
7044 | |||
7045 | |||
7046 | ✗ | static inline void __volk_32fc_deinterleave_real_32f_d(float* iBuffer, const lv_32fc_t* complexVector, unsigned int num_points) | |
7047 | { | ||
7048 | |||
7049 | ✗ | if (volk_is_aligned( | |
7050 | ✗ | VOLK_OR_PTR(iBuffer, | |
7051 | VOLK_OR_PTR(complexVector, | ||
7052 | 0)) | ||
7053 | )){ | ||
7054 | ✗ | volk_32fc_deinterleave_real_32f_a(iBuffer, complexVector, num_points); | |
7055 | } | ||
7056 | else{ | ||
7057 | ✗ | volk_32fc_deinterleave_real_32f_u(iBuffer, complexVector, num_points); | |
7058 | } | ||
7059 | ✗ | } | |
7060 | |||
7061 | ✗ | static inline void __init_volk_32fc_deinterleave_real_32f(void) | |
7062 | { | ||
7063 | ✗ | const char *name = get_machine()->volk_32fc_deinterleave_real_32f_name; | |
7064 | ✗ | const char **impl_names = get_machine()->volk_32fc_deinterleave_real_32f_impl_names; | |
7065 | ✗ | const int *impl_deps = get_machine()->volk_32fc_deinterleave_real_32f_impl_deps; | |
7066 | ✗ | const bool *alignment = get_machine()->volk_32fc_deinterleave_real_32f_impl_alignment; | |
7067 | ✗ | const size_t n_impls = get_machine()->volk_32fc_deinterleave_real_32f_n_impls; | |
7068 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
7069 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
7070 | ✗ | volk_32fc_deinterleave_real_32f_a = get_machine()->volk_32fc_deinterleave_real_32f_impls[index_a]; | |
7071 | ✗ | volk_32fc_deinterleave_real_32f_u = get_machine()->volk_32fc_deinterleave_real_32f_impls[index_u]; | |
7072 | |||
7073 | ✗ | assert(volk_32fc_deinterleave_real_32f_a); | |
7074 | ✗ | assert(volk_32fc_deinterleave_real_32f_u); | |
7075 | |||
7076 | ✗ | volk_32fc_deinterleave_real_32f = &__volk_32fc_deinterleave_real_32f_d; | |
7077 | ✗ | } | |
7078 | |||
7079 | ✗ | static inline void __volk_32fc_deinterleave_real_32f_a(float* iBuffer, const lv_32fc_t* complexVector, unsigned int num_points) | |
7080 | { | ||
7081 | ✗ | __init_volk_32fc_deinterleave_real_32f(); | |
7082 | ✗ | volk_32fc_deinterleave_real_32f_a(iBuffer, complexVector, num_points); | |
7083 | ✗ | } | |
7084 | |||
7085 | ✗ | static inline void __volk_32fc_deinterleave_real_32f_u(float* iBuffer, const lv_32fc_t* complexVector, unsigned int num_points) | |
7086 | { | ||
7087 | ✗ | __init_volk_32fc_deinterleave_real_32f(); | |
7088 | ✗ | volk_32fc_deinterleave_real_32f_u(iBuffer, complexVector, num_points); | |
7089 | ✗ | } | |
7090 | |||
7091 | ✗ | static inline void __volk_32fc_deinterleave_real_32f(float* iBuffer, const lv_32fc_t* complexVector, unsigned int num_points) | |
7092 | { | ||
7093 | ✗ | __init_volk_32fc_deinterleave_real_32f(); | |
7094 | ✗ | volk_32fc_deinterleave_real_32f(iBuffer, complexVector, num_points); | |
7095 | ✗ | } | |
7096 | |||
7097 | p_32fc_deinterleave_real_32f volk_32fc_deinterleave_real_32f_a = &__volk_32fc_deinterleave_real_32f_a; | ||
7098 | p_32fc_deinterleave_real_32f volk_32fc_deinterleave_real_32f_u = &__volk_32fc_deinterleave_real_32f_u; | ||
7099 | p_32fc_deinterleave_real_32f volk_32fc_deinterleave_real_32f = &__volk_32fc_deinterleave_real_32f; | ||
7100 | |||
7101 | 8 | void volk_32fc_deinterleave_real_32f_manual(float* iBuffer, const lv_32fc_t* complexVector, unsigned int num_points, const char* impl_name) | |
7102 | { | ||
7103 | 8 | const int index = volk_get_index( | |
7104 | 8 | get_machine()->volk_32fc_deinterleave_real_32f_impl_names, | |
7105 | 8 | get_machine()->volk_32fc_deinterleave_real_32f_n_impls, | |
7106 | impl_name | ||
7107 | ); | ||
7108 | 8 | get_machine()->volk_32fc_deinterleave_real_32f_impls[index]( | |
7109 | iBuffer, complexVector, num_points | ||
7110 | ); | ||
7111 | 8 | } | |
7112 | |||
7113 | 282 | volk_func_desc_t volk_32fc_deinterleave_real_32f_get_func_desc(void) { | |
7114 | 282 | const char **impl_names = get_machine()->volk_32fc_deinterleave_real_32f_impl_names; | |
7115 | 282 | const int *impl_deps = get_machine()->volk_32fc_deinterleave_real_32f_impl_deps; | |
7116 | 282 | const bool *alignment = get_machine()->volk_32fc_deinterleave_real_32f_impl_alignment; | |
7117 | 282 | const size_t n_impls = get_machine()->volk_32fc_deinterleave_real_32f_n_impls; | |
7118 | 282 | volk_func_desc_t desc = { | |
7119 | impl_names, | ||
7120 | impl_deps, | ||
7121 | alignment, | ||
7122 | n_impls | ||
7123 | }; | ||
7124 | 282 | return desc; | |
7125 | } | ||
7126 | |||
7127 | |||
7128 | |||
7129 | ✗ | static inline void __volk_32fc_deinterleave_real_64f_d(double* iBuffer, const lv_32fc_t* complexVector, unsigned int num_points) | |
7130 | { | ||
7131 | |||
7132 | ✗ | if (volk_is_aligned( | |
7133 | ✗ | VOLK_OR_PTR(iBuffer, | |
7134 | VOLK_OR_PTR(complexVector, | ||
7135 | 0)) | ||
7136 | )){ | ||
7137 | ✗ | volk_32fc_deinterleave_real_64f_a(iBuffer, complexVector, num_points); | |
7138 | } | ||
7139 | else{ | ||
7140 | ✗ | volk_32fc_deinterleave_real_64f_u(iBuffer, complexVector, num_points); | |
7141 | } | ||
7142 | ✗ | } | |
7143 | |||
7144 | ✗ | static inline void __init_volk_32fc_deinterleave_real_64f(void) | |
7145 | { | ||
7146 | ✗ | const char *name = get_machine()->volk_32fc_deinterleave_real_64f_name; | |
7147 | ✗ | const char **impl_names = get_machine()->volk_32fc_deinterleave_real_64f_impl_names; | |
7148 | ✗ | const int *impl_deps = get_machine()->volk_32fc_deinterleave_real_64f_impl_deps; | |
7149 | ✗ | const bool *alignment = get_machine()->volk_32fc_deinterleave_real_64f_impl_alignment; | |
7150 | ✗ | const size_t n_impls = get_machine()->volk_32fc_deinterleave_real_64f_n_impls; | |
7151 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
7152 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
7153 | ✗ | volk_32fc_deinterleave_real_64f_a = get_machine()->volk_32fc_deinterleave_real_64f_impls[index_a]; | |
7154 | ✗ | volk_32fc_deinterleave_real_64f_u = get_machine()->volk_32fc_deinterleave_real_64f_impls[index_u]; | |
7155 | |||
7156 | ✗ | assert(volk_32fc_deinterleave_real_64f_a); | |
7157 | ✗ | assert(volk_32fc_deinterleave_real_64f_u); | |
7158 | |||
7159 | ✗ | volk_32fc_deinterleave_real_64f = &__volk_32fc_deinterleave_real_64f_d; | |
7160 | ✗ | } | |
7161 | |||
7162 | ✗ | static inline void __volk_32fc_deinterleave_real_64f_a(double* iBuffer, const lv_32fc_t* complexVector, unsigned int num_points) | |
7163 | { | ||
7164 | ✗ | __init_volk_32fc_deinterleave_real_64f(); | |
7165 | ✗ | volk_32fc_deinterleave_real_64f_a(iBuffer, complexVector, num_points); | |
7166 | ✗ | } | |
7167 | |||
7168 | ✗ | static inline void __volk_32fc_deinterleave_real_64f_u(double* iBuffer, const lv_32fc_t* complexVector, unsigned int num_points) | |
7169 | { | ||
7170 | ✗ | __init_volk_32fc_deinterleave_real_64f(); | |
7171 | ✗ | volk_32fc_deinterleave_real_64f_u(iBuffer, complexVector, num_points); | |
7172 | ✗ | } | |
7173 | |||
7174 | ✗ | static inline void __volk_32fc_deinterleave_real_64f(double* iBuffer, const lv_32fc_t* complexVector, unsigned int num_points) | |
7175 | { | ||
7176 | ✗ | __init_volk_32fc_deinterleave_real_64f(); | |
7177 | ✗ | volk_32fc_deinterleave_real_64f(iBuffer, complexVector, num_points); | |
7178 | ✗ | } | |
7179 | |||
7180 | p_32fc_deinterleave_real_64f volk_32fc_deinterleave_real_64f_a = &__volk_32fc_deinterleave_real_64f_a; | ||
7181 | p_32fc_deinterleave_real_64f volk_32fc_deinterleave_real_64f_u = &__volk_32fc_deinterleave_real_64f_u; | ||
7182 | p_32fc_deinterleave_real_64f volk_32fc_deinterleave_real_64f = &__volk_32fc_deinterleave_real_64f; | ||
7183 | |||
7184 | 8 | void volk_32fc_deinterleave_real_64f_manual(double* iBuffer, const lv_32fc_t* complexVector, unsigned int num_points, const char* impl_name) | |
7185 | { | ||
7186 | 8 | const int index = volk_get_index( | |
7187 | 8 | get_machine()->volk_32fc_deinterleave_real_64f_impl_names, | |
7188 | 8 | get_machine()->volk_32fc_deinterleave_real_64f_n_impls, | |
7189 | impl_name | ||
7190 | ); | ||
7191 | 8 | get_machine()->volk_32fc_deinterleave_real_64f_impls[index]( | |
7192 | iBuffer, complexVector, num_points | ||
7193 | ); | ||
7194 | 8 | } | |
7195 | |||
7196 | 282 | volk_func_desc_t volk_32fc_deinterleave_real_64f_get_func_desc(void) { | |
7197 | 282 | const char **impl_names = get_machine()->volk_32fc_deinterleave_real_64f_impl_names; | |
7198 | 282 | const int *impl_deps = get_machine()->volk_32fc_deinterleave_real_64f_impl_deps; | |
7199 | 282 | const bool *alignment = get_machine()->volk_32fc_deinterleave_real_64f_impl_alignment; | |
7200 | 282 | const size_t n_impls = get_machine()->volk_32fc_deinterleave_real_64f_n_impls; | |
7201 | 282 | volk_func_desc_t desc = { | |
7202 | impl_names, | ||
7203 | impl_deps, | ||
7204 | alignment, | ||
7205 | n_impls | ||
7206 | }; | ||
7207 | 282 | return desc; | |
7208 | } | ||
7209 | |||
7210 | |||
7211 | |||
7212 | ✗ | static inline void __volk_32fc_index_max_16u_d(uint16_t* target, lv_32fc_t* src0, uint32_t num_points) | |
7213 | { | ||
7214 | |||
7215 | ✗ | if (volk_is_aligned( | |
7216 | ✗ | VOLK_OR_PTR(target, | |
7217 | VOLK_OR_PTR(src0, | ||
7218 | 0)) | ||
7219 | )){ | ||
7220 | ✗ | volk_32fc_index_max_16u_a(target, src0, num_points); | |
7221 | } | ||
7222 | else{ | ||
7223 | ✗ | volk_32fc_index_max_16u_u(target, src0, num_points); | |
7224 | } | ||
7225 | ✗ | } | |
7226 | |||
7227 | ✗ | static inline void __init_volk_32fc_index_max_16u(void) | |
7228 | { | ||
7229 | ✗ | const char *name = get_machine()->volk_32fc_index_max_16u_name; | |
7230 | ✗ | const char **impl_names = get_machine()->volk_32fc_index_max_16u_impl_names; | |
7231 | ✗ | const int *impl_deps = get_machine()->volk_32fc_index_max_16u_impl_deps; | |
7232 | ✗ | const bool *alignment = get_machine()->volk_32fc_index_max_16u_impl_alignment; | |
7233 | ✗ | const size_t n_impls = get_machine()->volk_32fc_index_max_16u_n_impls; | |
7234 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
7235 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
7236 | ✗ | volk_32fc_index_max_16u_a = get_machine()->volk_32fc_index_max_16u_impls[index_a]; | |
7237 | ✗ | volk_32fc_index_max_16u_u = get_machine()->volk_32fc_index_max_16u_impls[index_u]; | |
7238 | |||
7239 | ✗ | assert(volk_32fc_index_max_16u_a); | |
7240 | ✗ | assert(volk_32fc_index_max_16u_u); | |
7241 | |||
7242 | ✗ | volk_32fc_index_max_16u = &__volk_32fc_index_max_16u_d; | |
7243 | ✗ | } | |
7244 | |||
7245 | ✗ | static inline void __volk_32fc_index_max_16u_a(uint16_t* target, lv_32fc_t* src0, uint32_t num_points) | |
7246 | { | ||
7247 | ✗ | __init_volk_32fc_index_max_16u(); | |
7248 | ✗ | volk_32fc_index_max_16u_a(target, src0, num_points); | |
7249 | ✗ | } | |
7250 | |||
7251 | ✗ | static inline void __volk_32fc_index_max_16u_u(uint16_t* target, lv_32fc_t* src0, uint32_t num_points) | |
7252 | { | ||
7253 | ✗ | __init_volk_32fc_index_max_16u(); | |
7254 | ✗ | volk_32fc_index_max_16u_u(target, src0, num_points); | |
7255 | ✗ | } | |
7256 | |||
7257 | ✗ | static inline void __volk_32fc_index_max_16u(uint16_t* target, lv_32fc_t* src0, uint32_t num_points) | |
7258 | { | ||
7259 | ✗ | __init_volk_32fc_index_max_16u(); | |
7260 | ✗ | volk_32fc_index_max_16u(target, src0, num_points); | |
7261 | ✗ | } | |
7262 | |||
7263 | p_32fc_index_max_16u volk_32fc_index_max_16u_a = &__volk_32fc_index_max_16u_a; | ||
7264 | p_32fc_index_max_16u volk_32fc_index_max_16u_u = &__volk_32fc_index_max_16u_u; | ||
7265 | p_32fc_index_max_16u volk_32fc_index_max_16u = &__volk_32fc_index_max_16u; | ||
7266 | |||
7267 | 12 | void volk_32fc_index_max_16u_manual(uint16_t* target, lv_32fc_t* src0, uint32_t num_points, const char* impl_name) | |
7268 | { | ||
7269 | 12 | const int index = volk_get_index( | |
7270 | 12 | get_machine()->volk_32fc_index_max_16u_impl_names, | |
7271 | 12 | get_machine()->volk_32fc_index_max_16u_n_impls, | |
7272 | impl_name | ||
7273 | ); | ||
7274 | 12 | get_machine()->volk_32fc_index_max_16u_impls[index]( | |
7275 | target, src0, num_points | ||
7276 | ); | ||
7277 | 12 | } | |
7278 | |||
7279 | 282 | volk_func_desc_t volk_32fc_index_max_16u_get_func_desc(void) { | |
7280 | 282 | const char **impl_names = get_machine()->volk_32fc_index_max_16u_impl_names; | |
7281 | 282 | const int *impl_deps = get_machine()->volk_32fc_index_max_16u_impl_deps; | |
7282 | 282 | const bool *alignment = get_machine()->volk_32fc_index_max_16u_impl_alignment; | |
7283 | 282 | const size_t n_impls = get_machine()->volk_32fc_index_max_16u_n_impls; | |
7284 | 282 | volk_func_desc_t desc = { | |
7285 | impl_names, | ||
7286 | impl_deps, | ||
7287 | alignment, | ||
7288 | n_impls | ||
7289 | }; | ||
7290 | 282 | return desc; | |
7291 | } | ||
7292 | |||
7293 | |||
7294 | |||
7295 | ✗ | static inline void __volk_32fc_index_max_32u_d(uint32_t* target, lv_32fc_t* src0, uint32_t num_points) | |
7296 | { | ||
7297 | |||
7298 | ✗ | if (volk_is_aligned( | |
7299 | ✗ | VOLK_OR_PTR(target, | |
7300 | VOLK_OR_PTR(src0, | ||
7301 | 0)) | ||
7302 | )){ | ||
7303 | ✗ | volk_32fc_index_max_32u_a(target, src0, num_points); | |
7304 | } | ||
7305 | else{ | ||
7306 | ✗ | volk_32fc_index_max_32u_u(target, src0, num_points); | |
7307 | } | ||
7308 | ✗ | } | |
7309 | |||
7310 | ✗ | static inline void __init_volk_32fc_index_max_32u(void) | |
7311 | { | ||
7312 | ✗ | const char *name = get_machine()->volk_32fc_index_max_32u_name; | |
7313 | ✗ | const char **impl_names = get_machine()->volk_32fc_index_max_32u_impl_names; | |
7314 | ✗ | const int *impl_deps = get_machine()->volk_32fc_index_max_32u_impl_deps; | |
7315 | ✗ | const bool *alignment = get_machine()->volk_32fc_index_max_32u_impl_alignment; | |
7316 | ✗ | const size_t n_impls = get_machine()->volk_32fc_index_max_32u_n_impls; | |
7317 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
7318 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
7319 | ✗ | volk_32fc_index_max_32u_a = get_machine()->volk_32fc_index_max_32u_impls[index_a]; | |
7320 | ✗ | volk_32fc_index_max_32u_u = get_machine()->volk_32fc_index_max_32u_impls[index_u]; | |
7321 | |||
7322 | ✗ | assert(volk_32fc_index_max_32u_a); | |
7323 | ✗ | assert(volk_32fc_index_max_32u_u); | |
7324 | |||
7325 | ✗ | volk_32fc_index_max_32u = &__volk_32fc_index_max_32u_d; | |
7326 | ✗ | } | |
7327 | |||
7328 | ✗ | static inline void __volk_32fc_index_max_32u_a(uint32_t* target, lv_32fc_t* src0, uint32_t num_points) | |
7329 | { | ||
7330 | ✗ | __init_volk_32fc_index_max_32u(); | |
7331 | ✗ | volk_32fc_index_max_32u_a(target, src0, num_points); | |
7332 | ✗ | } | |
7333 | |||
7334 | ✗ | static inline void __volk_32fc_index_max_32u_u(uint32_t* target, lv_32fc_t* src0, uint32_t num_points) | |
7335 | { | ||
7336 | ✗ | __init_volk_32fc_index_max_32u(); | |
7337 | ✗ | volk_32fc_index_max_32u_u(target, src0, num_points); | |
7338 | ✗ | } | |
7339 | |||
7340 | ✗ | static inline void __volk_32fc_index_max_32u(uint32_t* target, lv_32fc_t* src0, uint32_t num_points) | |
7341 | { | ||
7342 | ✗ | __init_volk_32fc_index_max_32u(); | |
7343 | ✗ | volk_32fc_index_max_32u(target, src0, num_points); | |
7344 | ✗ | } | |
7345 | |||
7346 | p_32fc_index_max_32u volk_32fc_index_max_32u_a = &__volk_32fc_index_max_32u_a; | ||
7347 | p_32fc_index_max_32u volk_32fc_index_max_32u_u = &__volk_32fc_index_max_32u_u; | ||
7348 | p_32fc_index_max_32u volk_32fc_index_max_32u = &__volk_32fc_index_max_32u; | ||
7349 | |||
7350 | 12 | void volk_32fc_index_max_32u_manual(uint32_t* target, lv_32fc_t* src0, uint32_t num_points, const char* impl_name) | |
7351 | { | ||
7352 | 12 | const int index = volk_get_index( | |
7353 | 12 | get_machine()->volk_32fc_index_max_32u_impl_names, | |
7354 | 12 | get_machine()->volk_32fc_index_max_32u_n_impls, | |
7355 | impl_name | ||
7356 | ); | ||
7357 | 12 | get_machine()->volk_32fc_index_max_32u_impls[index]( | |
7358 | target, src0, num_points | ||
7359 | ); | ||
7360 | 12 | } | |
7361 | |||
7362 | 282 | volk_func_desc_t volk_32fc_index_max_32u_get_func_desc(void) { | |
7363 | 282 | const char **impl_names = get_machine()->volk_32fc_index_max_32u_impl_names; | |
7364 | 282 | const int *impl_deps = get_machine()->volk_32fc_index_max_32u_impl_deps; | |
7365 | 282 | const bool *alignment = get_machine()->volk_32fc_index_max_32u_impl_alignment; | |
7366 | 282 | const size_t n_impls = get_machine()->volk_32fc_index_max_32u_n_impls; | |
7367 | 282 | volk_func_desc_t desc = { | |
7368 | impl_names, | ||
7369 | impl_deps, | ||
7370 | alignment, | ||
7371 | n_impls | ||
7372 | }; | ||
7373 | 282 | return desc; | |
7374 | } | ||
7375 | |||
7376 | |||
7377 | |||
7378 | ✗ | static inline void __volk_32fc_index_min_16u_d(uint16_t* target, const lv_32fc_t* source, uint32_t num_points) | |
7379 | { | ||
7380 | |||
7381 | ✗ | if (volk_is_aligned( | |
7382 | ✗ | VOLK_OR_PTR(target, | |
7383 | VOLK_OR_PTR(source, | ||
7384 | 0)) | ||
7385 | )){ | ||
7386 | ✗ | volk_32fc_index_min_16u_a(target, source, num_points); | |
7387 | } | ||
7388 | else{ | ||
7389 | ✗ | volk_32fc_index_min_16u_u(target, source, num_points); | |
7390 | } | ||
7391 | ✗ | } | |
7392 | |||
7393 | ✗ | static inline void __init_volk_32fc_index_min_16u(void) | |
7394 | { | ||
7395 | ✗ | const char *name = get_machine()->volk_32fc_index_min_16u_name; | |
7396 | ✗ | const char **impl_names = get_machine()->volk_32fc_index_min_16u_impl_names; | |
7397 | ✗ | const int *impl_deps = get_machine()->volk_32fc_index_min_16u_impl_deps; | |
7398 | ✗ | const bool *alignment = get_machine()->volk_32fc_index_min_16u_impl_alignment; | |
7399 | ✗ | const size_t n_impls = get_machine()->volk_32fc_index_min_16u_n_impls; | |
7400 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
7401 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
7402 | ✗ | volk_32fc_index_min_16u_a = get_machine()->volk_32fc_index_min_16u_impls[index_a]; | |
7403 | ✗ | volk_32fc_index_min_16u_u = get_machine()->volk_32fc_index_min_16u_impls[index_u]; | |
7404 | |||
7405 | ✗ | assert(volk_32fc_index_min_16u_a); | |
7406 | ✗ | assert(volk_32fc_index_min_16u_u); | |
7407 | |||
7408 | ✗ | volk_32fc_index_min_16u = &__volk_32fc_index_min_16u_d; | |
7409 | ✗ | } | |
7410 | |||
7411 | ✗ | static inline void __volk_32fc_index_min_16u_a(uint16_t* target, const lv_32fc_t* source, uint32_t num_points) | |
7412 | { | ||
7413 | ✗ | __init_volk_32fc_index_min_16u(); | |
7414 | ✗ | volk_32fc_index_min_16u_a(target, source, num_points); | |
7415 | ✗ | } | |
7416 | |||
7417 | ✗ | static inline void __volk_32fc_index_min_16u_u(uint16_t* target, const lv_32fc_t* source, uint32_t num_points) | |
7418 | { | ||
7419 | ✗ | __init_volk_32fc_index_min_16u(); | |
7420 | ✗ | volk_32fc_index_min_16u_u(target, source, num_points); | |
7421 | ✗ | } | |
7422 | |||
7423 | ✗ | static inline void __volk_32fc_index_min_16u(uint16_t* target, const lv_32fc_t* source, uint32_t num_points) | |
7424 | { | ||
7425 | ✗ | __init_volk_32fc_index_min_16u(); | |
7426 | ✗ | volk_32fc_index_min_16u(target, source, num_points); | |
7427 | ✗ | } | |
7428 | |||
7429 | p_32fc_index_min_16u volk_32fc_index_min_16u_a = &__volk_32fc_index_min_16u_a; | ||
7430 | p_32fc_index_min_16u volk_32fc_index_min_16u_u = &__volk_32fc_index_min_16u_u; | ||
7431 | p_32fc_index_min_16u volk_32fc_index_min_16u = &__volk_32fc_index_min_16u; | ||
7432 | |||
7433 | 12 | void volk_32fc_index_min_16u_manual(uint16_t* target, const lv_32fc_t* source, uint32_t num_points, const char* impl_name) | |
7434 | { | ||
7435 | 12 | const int index = volk_get_index( | |
7436 | 12 | get_machine()->volk_32fc_index_min_16u_impl_names, | |
7437 | 12 | get_machine()->volk_32fc_index_min_16u_n_impls, | |
7438 | impl_name | ||
7439 | ); | ||
7440 | 12 | get_machine()->volk_32fc_index_min_16u_impls[index]( | |
7441 | target, source, num_points | ||
7442 | ); | ||
7443 | 12 | } | |
7444 | |||
7445 | 282 | volk_func_desc_t volk_32fc_index_min_16u_get_func_desc(void) { | |
7446 | 282 | const char **impl_names = get_machine()->volk_32fc_index_min_16u_impl_names; | |
7447 | 282 | const int *impl_deps = get_machine()->volk_32fc_index_min_16u_impl_deps; | |
7448 | 282 | const bool *alignment = get_machine()->volk_32fc_index_min_16u_impl_alignment; | |
7449 | 282 | const size_t n_impls = get_machine()->volk_32fc_index_min_16u_n_impls; | |
7450 | 282 | volk_func_desc_t desc = { | |
7451 | impl_names, | ||
7452 | impl_deps, | ||
7453 | alignment, | ||
7454 | n_impls | ||
7455 | }; | ||
7456 | 282 | return desc; | |
7457 | } | ||
7458 | |||
7459 | |||
7460 | |||
7461 | ✗ | static inline void __volk_32fc_index_min_32u_d(uint32_t* target, const lv_32fc_t* source, uint32_t num_points) | |
7462 | { | ||
7463 | |||
7464 | ✗ | if (volk_is_aligned( | |
7465 | ✗ | VOLK_OR_PTR(target, | |
7466 | VOLK_OR_PTR(source, | ||
7467 | 0)) | ||
7468 | )){ | ||
7469 | ✗ | volk_32fc_index_min_32u_a(target, source, num_points); | |
7470 | } | ||
7471 | else{ | ||
7472 | ✗ | volk_32fc_index_min_32u_u(target, source, num_points); | |
7473 | } | ||
7474 | ✗ | } | |
7475 | |||
7476 | ✗ | static inline void __init_volk_32fc_index_min_32u(void) | |
7477 | { | ||
7478 | ✗ | const char *name = get_machine()->volk_32fc_index_min_32u_name; | |
7479 | ✗ | const char **impl_names = get_machine()->volk_32fc_index_min_32u_impl_names; | |
7480 | ✗ | const int *impl_deps = get_machine()->volk_32fc_index_min_32u_impl_deps; | |
7481 | ✗ | const bool *alignment = get_machine()->volk_32fc_index_min_32u_impl_alignment; | |
7482 | ✗ | const size_t n_impls = get_machine()->volk_32fc_index_min_32u_n_impls; | |
7483 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
7484 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
7485 | ✗ | volk_32fc_index_min_32u_a = get_machine()->volk_32fc_index_min_32u_impls[index_a]; | |
7486 | ✗ | volk_32fc_index_min_32u_u = get_machine()->volk_32fc_index_min_32u_impls[index_u]; | |
7487 | |||
7488 | ✗ | assert(volk_32fc_index_min_32u_a); | |
7489 | ✗ | assert(volk_32fc_index_min_32u_u); | |
7490 | |||
7491 | ✗ | volk_32fc_index_min_32u = &__volk_32fc_index_min_32u_d; | |
7492 | ✗ | } | |
7493 | |||
7494 | ✗ | static inline void __volk_32fc_index_min_32u_a(uint32_t* target, const lv_32fc_t* source, uint32_t num_points) | |
7495 | { | ||
7496 | ✗ | __init_volk_32fc_index_min_32u(); | |
7497 | ✗ | volk_32fc_index_min_32u_a(target, source, num_points); | |
7498 | ✗ | } | |
7499 | |||
7500 | ✗ | static inline void __volk_32fc_index_min_32u_u(uint32_t* target, const lv_32fc_t* source, uint32_t num_points) | |
7501 | { | ||
7502 | ✗ | __init_volk_32fc_index_min_32u(); | |
7503 | ✗ | volk_32fc_index_min_32u_u(target, source, num_points); | |
7504 | ✗ | } | |
7505 | |||
7506 | ✗ | static inline void __volk_32fc_index_min_32u(uint32_t* target, const lv_32fc_t* source, uint32_t num_points) | |
7507 | { | ||
7508 | ✗ | __init_volk_32fc_index_min_32u(); | |
7509 | ✗ | volk_32fc_index_min_32u(target, source, num_points); | |
7510 | ✗ | } | |
7511 | |||
7512 | p_32fc_index_min_32u volk_32fc_index_min_32u_a = &__volk_32fc_index_min_32u_a; | ||
7513 | p_32fc_index_min_32u volk_32fc_index_min_32u_u = &__volk_32fc_index_min_32u_u; | ||
7514 | p_32fc_index_min_32u volk_32fc_index_min_32u = &__volk_32fc_index_min_32u; | ||
7515 | |||
7516 | 12 | void volk_32fc_index_min_32u_manual(uint32_t* target, const lv_32fc_t* source, uint32_t num_points, const char* impl_name) | |
7517 | { | ||
7518 | 12 | const int index = volk_get_index( | |
7519 | 12 | get_machine()->volk_32fc_index_min_32u_impl_names, | |
7520 | 12 | get_machine()->volk_32fc_index_min_32u_n_impls, | |
7521 | impl_name | ||
7522 | ); | ||
7523 | 12 | get_machine()->volk_32fc_index_min_32u_impls[index]( | |
7524 | target, source, num_points | ||
7525 | ); | ||
7526 | 12 | } | |
7527 | |||
7528 | 282 | volk_func_desc_t volk_32fc_index_min_32u_get_func_desc(void) { | |
7529 | 282 | const char **impl_names = get_machine()->volk_32fc_index_min_32u_impl_names; | |
7530 | 282 | const int *impl_deps = get_machine()->volk_32fc_index_min_32u_impl_deps; | |
7531 | 282 | const bool *alignment = get_machine()->volk_32fc_index_min_32u_impl_alignment; | |
7532 | 282 | const size_t n_impls = get_machine()->volk_32fc_index_min_32u_n_impls; | |
7533 | 282 | volk_func_desc_t desc = { | |
7534 | impl_names, | ||
7535 | impl_deps, | ||
7536 | alignment, | ||
7537 | n_impls | ||
7538 | }; | ||
7539 | 282 | return desc; | |
7540 | } | ||
7541 | |||
7542 | |||
7543 | |||
7544 | ✗ | static inline void __volk_32fc_magnitude_32f_d(float* magnitudeVector, const lv_32fc_t* complexVector, unsigned int num_points) | |
7545 | { | ||
7546 | |||
7547 | ✗ | if (volk_is_aligned( | |
7548 | ✗ | VOLK_OR_PTR(magnitudeVector, | |
7549 | VOLK_OR_PTR(complexVector, | ||
7550 | 0)) | ||
7551 | )){ | ||
7552 | ✗ | volk_32fc_magnitude_32f_a(magnitudeVector, complexVector, num_points); | |
7553 | } | ||
7554 | else{ | ||
7555 | ✗ | volk_32fc_magnitude_32f_u(magnitudeVector, complexVector, num_points); | |
7556 | } | ||
7557 | ✗ | } | |
7558 | |||
7559 | ✗ | static inline void __init_volk_32fc_magnitude_32f(void) | |
7560 | { | ||
7561 | ✗ | const char *name = get_machine()->volk_32fc_magnitude_32f_name; | |
7562 | ✗ | const char **impl_names = get_machine()->volk_32fc_magnitude_32f_impl_names; | |
7563 | ✗ | const int *impl_deps = get_machine()->volk_32fc_magnitude_32f_impl_deps; | |
7564 | ✗ | const bool *alignment = get_machine()->volk_32fc_magnitude_32f_impl_alignment; | |
7565 | ✗ | const size_t n_impls = get_machine()->volk_32fc_magnitude_32f_n_impls; | |
7566 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
7567 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
7568 | ✗ | volk_32fc_magnitude_32f_a = get_machine()->volk_32fc_magnitude_32f_impls[index_a]; | |
7569 | ✗ | volk_32fc_magnitude_32f_u = get_machine()->volk_32fc_magnitude_32f_impls[index_u]; | |
7570 | |||
7571 | ✗ | assert(volk_32fc_magnitude_32f_a); | |
7572 | ✗ | assert(volk_32fc_magnitude_32f_u); | |
7573 | |||
7574 | ✗ | volk_32fc_magnitude_32f = &__volk_32fc_magnitude_32f_d; | |
7575 | ✗ | } | |
7576 | |||
7577 | ✗ | static inline void __volk_32fc_magnitude_32f_a(float* magnitudeVector, const lv_32fc_t* complexVector, unsigned int num_points) | |
7578 | { | ||
7579 | ✗ | __init_volk_32fc_magnitude_32f(); | |
7580 | ✗ | volk_32fc_magnitude_32f_a(magnitudeVector, complexVector, num_points); | |
7581 | ✗ | } | |
7582 | |||
7583 | ✗ | static inline void __volk_32fc_magnitude_32f_u(float* magnitudeVector, const lv_32fc_t* complexVector, unsigned int num_points) | |
7584 | { | ||
7585 | ✗ | __init_volk_32fc_magnitude_32f(); | |
7586 | ✗ | volk_32fc_magnitude_32f_u(magnitudeVector, complexVector, num_points); | |
7587 | ✗ | } | |
7588 | |||
7589 | ✗ | static inline void __volk_32fc_magnitude_32f(float* magnitudeVector, const lv_32fc_t* complexVector, unsigned int num_points) | |
7590 | { | ||
7591 | ✗ | __init_volk_32fc_magnitude_32f(); | |
7592 | ✗ | volk_32fc_magnitude_32f(magnitudeVector, complexVector, num_points); | |
7593 | ✗ | } | |
7594 | |||
7595 | p_32fc_magnitude_32f volk_32fc_magnitude_32f_a = &__volk_32fc_magnitude_32f_a; | ||
7596 | p_32fc_magnitude_32f volk_32fc_magnitude_32f_u = &__volk_32fc_magnitude_32f_u; | ||
7597 | p_32fc_magnitude_32f volk_32fc_magnitude_32f = &__volk_32fc_magnitude_32f; | ||
7598 | |||
7599 | 16 | void volk_32fc_magnitude_32f_manual(float* magnitudeVector, const lv_32fc_t* complexVector, unsigned int num_points, const char* impl_name) | |
7600 | { | ||
7601 | 16 | const int index = volk_get_index( | |
7602 | 16 | get_machine()->volk_32fc_magnitude_32f_impl_names, | |
7603 | 16 | get_machine()->volk_32fc_magnitude_32f_n_impls, | |
7604 | impl_name | ||
7605 | ); | ||
7606 | 16 | get_machine()->volk_32fc_magnitude_32f_impls[index]( | |
7607 | magnitudeVector, complexVector, num_points | ||
7608 | ); | ||
7609 | 16 | } | |
7610 | |||
7611 | 282 | volk_func_desc_t volk_32fc_magnitude_32f_get_func_desc(void) { | |
7612 | 282 | const char **impl_names = get_machine()->volk_32fc_magnitude_32f_impl_names; | |
7613 | 282 | const int *impl_deps = get_machine()->volk_32fc_magnitude_32f_impl_deps; | |
7614 | 282 | const bool *alignment = get_machine()->volk_32fc_magnitude_32f_impl_alignment; | |
7615 | 282 | const size_t n_impls = get_machine()->volk_32fc_magnitude_32f_n_impls; | |
7616 | 282 | volk_func_desc_t desc = { | |
7617 | impl_names, | ||
7618 | impl_deps, | ||
7619 | alignment, | ||
7620 | n_impls | ||
7621 | }; | ||
7622 | 282 | return desc; | |
7623 | } | ||
7624 | |||
7625 | |||
7626 | |||
7627 | 2 | static inline void __volk_32fc_magnitude_squared_32f_d(float* magnitudeVector, const lv_32fc_t* complexVector, unsigned int num_points) | |
7628 | { | ||
7629 | |||
7630 |
1/2✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
|
2 | if (volk_is_aligned( |
7631 | 2 | VOLK_OR_PTR(magnitudeVector, | |
7632 | VOLK_OR_PTR(complexVector, | ||
7633 | 0)) | ||
7634 | )){ | ||
7635 | 2 | volk_32fc_magnitude_squared_32f_a(magnitudeVector, complexVector, num_points); | |
7636 | } | ||
7637 | else{ | ||
7638 | ✗ | volk_32fc_magnitude_squared_32f_u(magnitudeVector, complexVector, num_points); | |
7639 | } | ||
7640 | 2 | } | |
7641 | |||
7642 | 2 | static inline void __init_volk_32fc_magnitude_squared_32f(void) | |
7643 | { | ||
7644 | 2 | const char *name = get_machine()->volk_32fc_magnitude_squared_32f_name; | |
7645 | 2 | const char **impl_names = get_machine()->volk_32fc_magnitude_squared_32f_impl_names; | |
7646 | 2 | const int *impl_deps = get_machine()->volk_32fc_magnitude_squared_32f_impl_deps; | |
7647 | 2 | const bool *alignment = get_machine()->volk_32fc_magnitude_squared_32f_impl_alignment; | |
7648 | 2 | const size_t n_impls = get_machine()->volk_32fc_magnitude_squared_32f_n_impls; | |
7649 | 2 | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
7650 | 2 | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
7651 | 2 | volk_32fc_magnitude_squared_32f_a = get_machine()->volk_32fc_magnitude_squared_32f_impls[index_a]; | |
7652 | 2 | volk_32fc_magnitude_squared_32f_u = get_machine()->volk_32fc_magnitude_squared_32f_impls[index_u]; | |
7653 | |||
7654 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 2 times.
|
2 | assert(volk_32fc_magnitude_squared_32f_a); |
7655 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 2 times.
|
2 | assert(volk_32fc_magnitude_squared_32f_u); |
7656 | |||
7657 | 2 | volk_32fc_magnitude_squared_32f = &__volk_32fc_magnitude_squared_32f_d; | |
7658 | 2 | } | |
7659 | |||
7660 | ✗ | static inline void __volk_32fc_magnitude_squared_32f_a(float* magnitudeVector, const lv_32fc_t* complexVector, unsigned int num_points) | |
7661 | { | ||
7662 | ✗ | __init_volk_32fc_magnitude_squared_32f(); | |
7663 | ✗ | volk_32fc_magnitude_squared_32f_a(magnitudeVector, complexVector, num_points); | |
7664 | ✗ | } | |
7665 | |||
7666 | ✗ | static inline void __volk_32fc_magnitude_squared_32f_u(float* magnitudeVector, const lv_32fc_t* complexVector, unsigned int num_points) | |
7667 | { | ||
7668 | ✗ | __init_volk_32fc_magnitude_squared_32f(); | |
7669 | ✗ | volk_32fc_magnitude_squared_32f_u(magnitudeVector, complexVector, num_points); | |
7670 | ✗ | } | |
7671 | |||
7672 | 2 | static inline void __volk_32fc_magnitude_squared_32f(float* magnitudeVector, const lv_32fc_t* complexVector, unsigned int num_points) | |
7673 | { | ||
7674 | 2 | __init_volk_32fc_magnitude_squared_32f(); | |
7675 | 2 | volk_32fc_magnitude_squared_32f(magnitudeVector, complexVector, num_points); | |
7676 | 2 | } | |
7677 | |||
7678 | p_32fc_magnitude_squared_32f volk_32fc_magnitude_squared_32f_a = &__volk_32fc_magnitude_squared_32f_a; | ||
7679 | p_32fc_magnitude_squared_32f volk_32fc_magnitude_squared_32f_u = &__volk_32fc_magnitude_squared_32f_u; | ||
7680 | p_32fc_magnitude_squared_32f volk_32fc_magnitude_squared_32f = &__volk_32fc_magnitude_squared_32f; | ||
7681 | |||
7682 | 16 | void volk_32fc_magnitude_squared_32f_manual(float* magnitudeVector, const lv_32fc_t* complexVector, unsigned int num_points, const char* impl_name) | |
7683 | { | ||
7684 | 16 | const int index = volk_get_index( | |
7685 | 16 | get_machine()->volk_32fc_magnitude_squared_32f_impl_names, | |
7686 | 16 | get_machine()->volk_32fc_magnitude_squared_32f_n_impls, | |
7687 | impl_name | ||
7688 | ); | ||
7689 | 16 | get_machine()->volk_32fc_magnitude_squared_32f_impls[index]( | |
7690 | magnitudeVector, complexVector, num_points | ||
7691 | ); | ||
7692 | 16 | } | |
7693 | |||
7694 | 282 | volk_func_desc_t volk_32fc_magnitude_squared_32f_get_func_desc(void) { | |
7695 | 282 | const char **impl_names = get_machine()->volk_32fc_magnitude_squared_32f_impl_names; | |
7696 | 282 | const int *impl_deps = get_machine()->volk_32fc_magnitude_squared_32f_impl_deps; | |
7697 | 282 | const bool *alignment = get_machine()->volk_32fc_magnitude_squared_32f_impl_alignment; | |
7698 | 282 | const size_t n_impls = get_machine()->volk_32fc_magnitude_squared_32f_n_impls; | |
7699 | 282 | volk_func_desc_t desc = { | |
7700 | impl_names, | ||
7701 | impl_deps, | ||
7702 | alignment, | ||
7703 | n_impls | ||
7704 | }; | ||
7705 | 282 | return desc; | |
7706 | } | ||
7707 | |||
7708 | |||
7709 | |||
7710 | ✗ | static inline void __volk_32fc_s32f_atan2_32f_d(float* outputVector, const lv_32fc_t* complexVector, const float normalizeFactor, unsigned int num_points) | |
7711 | { | ||
7712 | |||
7713 | ✗ | if (volk_is_aligned( | |
7714 | ✗ | VOLK_OR_PTR(outputVector, | |
7715 | VOLK_OR_PTR(complexVector, | ||
7716 | 0)) | ||
7717 | )){ | ||
7718 | ✗ | volk_32fc_s32f_atan2_32f_a(outputVector, complexVector, normalizeFactor, num_points); | |
7719 | } | ||
7720 | else{ | ||
7721 | ✗ | volk_32fc_s32f_atan2_32f_u(outputVector, complexVector, normalizeFactor, num_points); | |
7722 | } | ||
7723 | ✗ | } | |
7724 | |||
7725 | ✗ | static inline void __init_volk_32fc_s32f_atan2_32f(void) | |
7726 | { | ||
7727 | ✗ | const char *name = get_machine()->volk_32fc_s32f_atan2_32f_name; | |
7728 | ✗ | const char **impl_names = get_machine()->volk_32fc_s32f_atan2_32f_impl_names; | |
7729 | ✗ | const int *impl_deps = get_machine()->volk_32fc_s32f_atan2_32f_impl_deps; | |
7730 | ✗ | const bool *alignment = get_machine()->volk_32fc_s32f_atan2_32f_impl_alignment; | |
7731 | ✗ | const size_t n_impls = get_machine()->volk_32fc_s32f_atan2_32f_n_impls; | |
7732 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
7733 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
7734 | ✗ | volk_32fc_s32f_atan2_32f_a = get_machine()->volk_32fc_s32f_atan2_32f_impls[index_a]; | |
7735 | ✗ | volk_32fc_s32f_atan2_32f_u = get_machine()->volk_32fc_s32f_atan2_32f_impls[index_u]; | |
7736 | |||
7737 | ✗ | assert(volk_32fc_s32f_atan2_32f_a); | |
7738 | ✗ | assert(volk_32fc_s32f_atan2_32f_u); | |
7739 | |||
7740 | ✗ | volk_32fc_s32f_atan2_32f = &__volk_32fc_s32f_atan2_32f_d; | |
7741 | ✗ | } | |
7742 | |||
7743 | ✗ | static inline void __volk_32fc_s32f_atan2_32f_a(float* outputVector, const lv_32fc_t* complexVector, const float normalizeFactor, unsigned int num_points) | |
7744 | { | ||
7745 | ✗ | __init_volk_32fc_s32f_atan2_32f(); | |
7746 | ✗ | volk_32fc_s32f_atan2_32f_a(outputVector, complexVector, normalizeFactor, num_points); | |
7747 | ✗ | } | |
7748 | |||
7749 | ✗ | static inline void __volk_32fc_s32f_atan2_32f_u(float* outputVector, const lv_32fc_t* complexVector, const float normalizeFactor, unsigned int num_points) | |
7750 | { | ||
7751 | ✗ | __init_volk_32fc_s32f_atan2_32f(); | |
7752 | ✗ | volk_32fc_s32f_atan2_32f_u(outputVector, complexVector, normalizeFactor, num_points); | |
7753 | ✗ | } | |
7754 | |||
7755 | ✗ | static inline void __volk_32fc_s32f_atan2_32f(float* outputVector, const lv_32fc_t* complexVector, const float normalizeFactor, unsigned int num_points) | |
7756 | { | ||
7757 | ✗ | __init_volk_32fc_s32f_atan2_32f(); | |
7758 | ✗ | volk_32fc_s32f_atan2_32f(outputVector, complexVector, normalizeFactor, num_points); | |
7759 | ✗ | } | |
7760 | |||
7761 | p_32fc_s32f_atan2_32f volk_32fc_s32f_atan2_32f_a = &__volk_32fc_s32f_atan2_32f_a; | ||
7762 | p_32fc_s32f_atan2_32f volk_32fc_s32f_atan2_32f_u = &__volk_32fc_s32f_atan2_32f_u; | ||
7763 | p_32fc_s32f_atan2_32f volk_32fc_s32f_atan2_32f = &__volk_32fc_s32f_atan2_32f; | ||
7764 | |||
7765 | 6 | void volk_32fc_s32f_atan2_32f_manual(float* outputVector, const lv_32fc_t* complexVector, const float normalizeFactor, unsigned int num_points, const char* impl_name) | |
7766 | { | ||
7767 | 6 | const int index = volk_get_index( | |
7768 | 6 | get_machine()->volk_32fc_s32f_atan2_32f_impl_names, | |
7769 | 6 | get_machine()->volk_32fc_s32f_atan2_32f_n_impls, | |
7770 | impl_name | ||
7771 | ); | ||
7772 | 6 | get_machine()->volk_32fc_s32f_atan2_32f_impls[index]( | |
7773 | outputVector, complexVector, normalizeFactor, num_points | ||
7774 | ); | ||
7775 | 6 | } | |
7776 | |||
7777 | 282 | volk_func_desc_t volk_32fc_s32f_atan2_32f_get_func_desc(void) { | |
7778 | 282 | const char **impl_names = get_machine()->volk_32fc_s32f_atan2_32f_impl_names; | |
7779 | 282 | const int *impl_deps = get_machine()->volk_32fc_s32f_atan2_32f_impl_deps; | |
7780 | 282 | const bool *alignment = get_machine()->volk_32fc_s32f_atan2_32f_impl_alignment; | |
7781 | 282 | const size_t n_impls = get_machine()->volk_32fc_s32f_atan2_32f_n_impls; | |
7782 | 282 | volk_func_desc_t desc = { | |
7783 | impl_names, | ||
7784 | impl_deps, | ||
7785 | alignment, | ||
7786 | n_impls | ||
7787 | }; | ||
7788 | 282 | return desc; | |
7789 | } | ||
7790 | |||
7791 | |||
7792 | |||
7793 | ✗ | static inline void __volk_32fc_s32f_deinterleave_real_16i_d(int16_t* iBuffer, const lv_32fc_t* complexVector, const float scalar, unsigned int num_points) | |
7794 | { | ||
7795 | |||
7796 | ✗ | if (volk_is_aligned( | |
7797 | ✗ | VOLK_OR_PTR(iBuffer, | |
7798 | VOLK_OR_PTR(complexVector, | ||
7799 | 0)) | ||
7800 | )){ | ||
7801 | ✗ | volk_32fc_s32f_deinterleave_real_16i_a(iBuffer, complexVector, scalar, num_points); | |
7802 | } | ||
7803 | else{ | ||
7804 | ✗ | volk_32fc_s32f_deinterleave_real_16i_u(iBuffer, complexVector, scalar, num_points); | |
7805 | } | ||
7806 | ✗ | } | |
7807 | |||
7808 | ✗ | static inline void __init_volk_32fc_s32f_deinterleave_real_16i(void) | |
7809 | { | ||
7810 | ✗ | const char *name = get_machine()->volk_32fc_s32f_deinterleave_real_16i_name; | |
7811 | ✗ | const char **impl_names = get_machine()->volk_32fc_s32f_deinterleave_real_16i_impl_names; | |
7812 | ✗ | const int *impl_deps = get_machine()->volk_32fc_s32f_deinterleave_real_16i_impl_deps; | |
7813 | ✗ | const bool *alignment = get_machine()->volk_32fc_s32f_deinterleave_real_16i_impl_alignment; | |
7814 | ✗ | const size_t n_impls = get_machine()->volk_32fc_s32f_deinterleave_real_16i_n_impls; | |
7815 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
7816 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
7817 | ✗ | volk_32fc_s32f_deinterleave_real_16i_a = get_machine()->volk_32fc_s32f_deinterleave_real_16i_impls[index_a]; | |
7818 | ✗ | volk_32fc_s32f_deinterleave_real_16i_u = get_machine()->volk_32fc_s32f_deinterleave_real_16i_impls[index_u]; | |
7819 | |||
7820 | ✗ | assert(volk_32fc_s32f_deinterleave_real_16i_a); | |
7821 | ✗ | assert(volk_32fc_s32f_deinterleave_real_16i_u); | |
7822 | |||
7823 | ✗ | volk_32fc_s32f_deinterleave_real_16i = &__volk_32fc_s32f_deinterleave_real_16i_d; | |
7824 | ✗ | } | |
7825 | |||
7826 | ✗ | static inline void __volk_32fc_s32f_deinterleave_real_16i_a(int16_t* iBuffer, const lv_32fc_t* complexVector, const float scalar, unsigned int num_points) | |
7827 | { | ||
7828 | ✗ | __init_volk_32fc_s32f_deinterleave_real_16i(); | |
7829 | ✗ | volk_32fc_s32f_deinterleave_real_16i_a(iBuffer, complexVector, scalar, num_points); | |
7830 | ✗ | } | |
7831 | |||
7832 | ✗ | static inline void __volk_32fc_s32f_deinterleave_real_16i_u(int16_t* iBuffer, const lv_32fc_t* complexVector, const float scalar, unsigned int num_points) | |
7833 | { | ||
7834 | ✗ | __init_volk_32fc_s32f_deinterleave_real_16i(); | |
7835 | ✗ | volk_32fc_s32f_deinterleave_real_16i_u(iBuffer, complexVector, scalar, num_points); | |
7836 | ✗ | } | |
7837 | |||
7838 | ✗ | static inline void __volk_32fc_s32f_deinterleave_real_16i(int16_t* iBuffer, const lv_32fc_t* complexVector, const float scalar, unsigned int num_points) | |
7839 | { | ||
7840 | ✗ | __init_volk_32fc_s32f_deinterleave_real_16i(); | |
7841 | ✗ | volk_32fc_s32f_deinterleave_real_16i(iBuffer, complexVector, scalar, num_points); | |
7842 | ✗ | } | |
7843 | |||
7844 | p_32fc_s32f_deinterleave_real_16i volk_32fc_s32f_deinterleave_real_16i_a = &__volk_32fc_s32f_deinterleave_real_16i_a; | ||
7845 | p_32fc_s32f_deinterleave_real_16i volk_32fc_s32f_deinterleave_real_16i_u = &__volk_32fc_s32f_deinterleave_real_16i_u; | ||
7846 | p_32fc_s32f_deinterleave_real_16i volk_32fc_s32f_deinterleave_real_16i = &__volk_32fc_s32f_deinterleave_real_16i; | ||
7847 | |||
7848 | 8 | void volk_32fc_s32f_deinterleave_real_16i_manual(int16_t* iBuffer, const lv_32fc_t* complexVector, const float scalar, unsigned int num_points, const char* impl_name) | |
7849 | { | ||
7850 | 8 | const int index = volk_get_index( | |
7851 | 8 | get_machine()->volk_32fc_s32f_deinterleave_real_16i_impl_names, | |
7852 | 8 | get_machine()->volk_32fc_s32f_deinterleave_real_16i_n_impls, | |
7853 | impl_name | ||
7854 | ); | ||
7855 | 8 | get_machine()->volk_32fc_s32f_deinterleave_real_16i_impls[index]( | |
7856 | iBuffer, complexVector, scalar, num_points | ||
7857 | ); | ||
7858 | 8 | } | |
7859 | |||
7860 | 282 | volk_func_desc_t volk_32fc_s32f_deinterleave_real_16i_get_func_desc(void) { | |
7861 | 282 | const char **impl_names = get_machine()->volk_32fc_s32f_deinterleave_real_16i_impl_names; | |
7862 | 282 | const int *impl_deps = get_machine()->volk_32fc_s32f_deinterleave_real_16i_impl_deps; | |
7863 | 282 | const bool *alignment = get_machine()->volk_32fc_s32f_deinterleave_real_16i_impl_alignment; | |
7864 | 282 | const size_t n_impls = get_machine()->volk_32fc_s32f_deinterleave_real_16i_n_impls; | |
7865 | 282 | volk_func_desc_t desc = { | |
7866 | impl_names, | ||
7867 | impl_deps, | ||
7868 | alignment, | ||
7869 | n_impls | ||
7870 | }; | ||
7871 | 282 | return desc; | |
7872 | } | ||
7873 | |||
7874 | |||
7875 | |||
7876 | ✗ | static inline void __volk_32fc_s32f_magnitude_16i_d(int16_t* magnitudeVector, const lv_32fc_t* complexVector, const float scalar, unsigned int num_points) | |
7877 | { | ||
7878 | |||
7879 | ✗ | if (volk_is_aligned( | |
7880 | ✗ | VOLK_OR_PTR(magnitudeVector, | |
7881 | VOLK_OR_PTR(complexVector, | ||
7882 | 0)) | ||
7883 | )){ | ||
7884 | ✗ | volk_32fc_s32f_magnitude_16i_a(magnitudeVector, complexVector, scalar, num_points); | |
7885 | } | ||
7886 | else{ | ||
7887 | ✗ | volk_32fc_s32f_magnitude_16i_u(magnitudeVector, complexVector, scalar, num_points); | |
7888 | } | ||
7889 | ✗ | } | |
7890 | |||
7891 | ✗ | static inline void __init_volk_32fc_s32f_magnitude_16i(void) | |
7892 | { | ||
7893 | ✗ | const char *name = get_machine()->volk_32fc_s32f_magnitude_16i_name; | |
7894 | ✗ | const char **impl_names = get_machine()->volk_32fc_s32f_magnitude_16i_impl_names; | |
7895 | ✗ | const int *impl_deps = get_machine()->volk_32fc_s32f_magnitude_16i_impl_deps; | |
7896 | ✗ | const bool *alignment = get_machine()->volk_32fc_s32f_magnitude_16i_impl_alignment; | |
7897 | ✗ | const size_t n_impls = get_machine()->volk_32fc_s32f_magnitude_16i_n_impls; | |
7898 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
7899 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
7900 | ✗ | volk_32fc_s32f_magnitude_16i_a = get_machine()->volk_32fc_s32f_magnitude_16i_impls[index_a]; | |
7901 | ✗ | volk_32fc_s32f_magnitude_16i_u = get_machine()->volk_32fc_s32f_magnitude_16i_impls[index_u]; | |
7902 | |||
7903 | ✗ | assert(volk_32fc_s32f_magnitude_16i_a); | |
7904 | ✗ | assert(volk_32fc_s32f_magnitude_16i_u); | |
7905 | |||
7906 | ✗ | volk_32fc_s32f_magnitude_16i = &__volk_32fc_s32f_magnitude_16i_d; | |
7907 | ✗ | } | |
7908 | |||
7909 | ✗ | static inline void __volk_32fc_s32f_magnitude_16i_a(int16_t* magnitudeVector, const lv_32fc_t* complexVector, const float scalar, unsigned int num_points) | |
7910 | { | ||
7911 | ✗ | __init_volk_32fc_s32f_magnitude_16i(); | |
7912 | ✗ | volk_32fc_s32f_magnitude_16i_a(magnitudeVector, complexVector, scalar, num_points); | |
7913 | ✗ | } | |
7914 | |||
7915 | ✗ | static inline void __volk_32fc_s32f_magnitude_16i_u(int16_t* magnitudeVector, const lv_32fc_t* complexVector, const float scalar, unsigned int num_points) | |
7916 | { | ||
7917 | ✗ | __init_volk_32fc_s32f_magnitude_16i(); | |
7918 | ✗ | volk_32fc_s32f_magnitude_16i_u(magnitudeVector, complexVector, scalar, num_points); | |
7919 | ✗ | } | |
7920 | |||
7921 | ✗ | static inline void __volk_32fc_s32f_magnitude_16i(int16_t* magnitudeVector, const lv_32fc_t* complexVector, const float scalar, unsigned int num_points) | |
7922 | { | ||
7923 | ✗ | __init_volk_32fc_s32f_magnitude_16i(); | |
7924 | ✗ | volk_32fc_s32f_magnitude_16i(magnitudeVector, complexVector, scalar, num_points); | |
7925 | ✗ | } | |
7926 | |||
7927 | p_32fc_s32f_magnitude_16i volk_32fc_s32f_magnitude_16i_a = &__volk_32fc_s32f_magnitude_16i_a; | ||
7928 | p_32fc_s32f_magnitude_16i volk_32fc_s32f_magnitude_16i_u = &__volk_32fc_s32f_magnitude_16i_u; | ||
7929 | p_32fc_s32f_magnitude_16i volk_32fc_s32f_magnitude_16i = &__volk_32fc_s32f_magnitude_16i; | ||
7930 | |||
7931 | 10 | void volk_32fc_s32f_magnitude_16i_manual(int16_t* magnitudeVector, const lv_32fc_t* complexVector, const float scalar, unsigned int num_points, const char* impl_name) | |
7932 | { | ||
7933 | 10 | const int index = volk_get_index( | |
7934 | 10 | get_machine()->volk_32fc_s32f_magnitude_16i_impl_names, | |
7935 | 10 | get_machine()->volk_32fc_s32f_magnitude_16i_n_impls, | |
7936 | impl_name | ||
7937 | ); | ||
7938 | 10 | get_machine()->volk_32fc_s32f_magnitude_16i_impls[index]( | |
7939 | magnitudeVector, complexVector, scalar, num_points | ||
7940 | ); | ||
7941 | 10 | } | |
7942 | |||
7943 | 282 | volk_func_desc_t volk_32fc_s32f_magnitude_16i_get_func_desc(void) { | |
7944 | 282 | const char **impl_names = get_machine()->volk_32fc_s32f_magnitude_16i_impl_names; | |
7945 | 282 | const int *impl_deps = get_machine()->volk_32fc_s32f_magnitude_16i_impl_deps; | |
7946 | 282 | const bool *alignment = get_machine()->volk_32fc_s32f_magnitude_16i_impl_alignment; | |
7947 | 282 | const size_t n_impls = get_machine()->volk_32fc_s32f_magnitude_16i_n_impls; | |
7948 | 282 | volk_func_desc_t desc = { | |
7949 | impl_names, | ||
7950 | impl_deps, | ||
7951 | alignment, | ||
7952 | n_impls | ||
7953 | }; | ||
7954 | 282 | return desc; | |
7955 | } | ||
7956 | |||
7957 | |||
7958 | |||
7959 | ✗ | static inline void __volk_32fc_s32f_power_32fc_d(lv_32fc_t* cVector, const lv_32fc_t* aVector, const float power, unsigned int num_points) | |
7960 | { | ||
7961 | |||
7962 | ✗ | if (volk_is_aligned( | |
7963 | ✗ | VOLK_OR_PTR(cVector, | |
7964 | VOLK_OR_PTR(aVector, | ||
7965 | 0)) | ||
7966 | )){ | ||
7967 | ✗ | volk_32fc_s32f_power_32fc_a(cVector, aVector, power, num_points); | |
7968 | } | ||
7969 | else{ | ||
7970 | ✗ | volk_32fc_s32f_power_32fc_u(cVector, aVector, power, num_points); | |
7971 | } | ||
7972 | ✗ | } | |
7973 | |||
7974 | ✗ | static inline void __init_volk_32fc_s32f_power_32fc(void) | |
7975 | { | ||
7976 | ✗ | const char *name = get_machine()->volk_32fc_s32f_power_32fc_name; | |
7977 | ✗ | const char **impl_names = get_machine()->volk_32fc_s32f_power_32fc_impl_names; | |
7978 | ✗ | const int *impl_deps = get_machine()->volk_32fc_s32f_power_32fc_impl_deps; | |
7979 | ✗ | const bool *alignment = get_machine()->volk_32fc_s32f_power_32fc_impl_alignment; | |
7980 | ✗ | const size_t n_impls = get_machine()->volk_32fc_s32f_power_32fc_n_impls; | |
7981 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
7982 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
7983 | ✗ | volk_32fc_s32f_power_32fc_a = get_machine()->volk_32fc_s32f_power_32fc_impls[index_a]; | |
7984 | ✗ | volk_32fc_s32f_power_32fc_u = get_machine()->volk_32fc_s32f_power_32fc_impls[index_u]; | |
7985 | |||
7986 | ✗ | assert(volk_32fc_s32f_power_32fc_a); | |
7987 | ✗ | assert(volk_32fc_s32f_power_32fc_u); | |
7988 | |||
7989 | ✗ | volk_32fc_s32f_power_32fc = &__volk_32fc_s32f_power_32fc_d; | |
7990 | ✗ | } | |
7991 | |||
7992 | ✗ | static inline void __volk_32fc_s32f_power_32fc_a(lv_32fc_t* cVector, const lv_32fc_t* aVector, const float power, unsigned int num_points) | |
7993 | { | ||
7994 | ✗ | __init_volk_32fc_s32f_power_32fc(); | |
7995 | ✗ | volk_32fc_s32f_power_32fc_a(cVector, aVector, power, num_points); | |
7996 | ✗ | } | |
7997 | |||
7998 | ✗ | static inline void __volk_32fc_s32f_power_32fc_u(lv_32fc_t* cVector, const lv_32fc_t* aVector, const float power, unsigned int num_points) | |
7999 | { | ||
8000 | ✗ | __init_volk_32fc_s32f_power_32fc(); | |
8001 | ✗ | volk_32fc_s32f_power_32fc_u(cVector, aVector, power, num_points); | |
8002 | ✗ | } | |
8003 | |||
8004 | ✗ | static inline void __volk_32fc_s32f_power_32fc(lv_32fc_t* cVector, const lv_32fc_t* aVector, const float power, unsigned int num_points) | |
8005 | { | ||
8006 | ✗ | __init_volk_32fc_s32f_power_32fc(); | |
8007 | ✗ | volk_32fc_s32f_power_32fc(cVector, aVector, power, num_points); | |
8008 | ✗ | } | |
8009 | |||
8010 | p_32fc_s32f_power_32fc volk_32fc_s32f_power_32fc_a = &__volk_32fc_s32f_power_32fc_a; | ||
8011 | p_32fc_s32f_power_32fc volk_32fc_s32f_power_32fc_u = &__volk_32fc_s32f_power_32fc_u; | ||
8012 | p_32fc_s32f_power_32fc volk_32fc_s32f_power_32fc = &__volk_32fc_s32f_power_32fc; | ||
8013 | |||
8014 | 4 | void volk_32fc_s32f_power_32fc_manual(lv_32fc_t* cVector, const lv_32fc_t* aVector, const float power, unsigned int num_points, const char* impl_name) | |
8015 | { | ||
8016 | 4 | const int index = volk_get_index( | |
8017 | 4 | get_machine()->volk_32fc_s32f_power_32fc_impl_names, | |
8018 | 4 | get_machine()->volk_32fc_s32f_power_32fc_n_impls, | |
8019 | impl_name | ||
8020 | ); | ||
8021 | 4 | get_machine()->volk_32fc_s32f_power_32fc_impls[index]( | |
8022 | cVector, aVector, power, num_points | ||
8023 | ); | ||
8024 | 4 | } | |
8025 | |||
8026 | 282 | volk_func_desc_t volk_32fc_s32f_power_32fc_get_func_desc(void) { | |
8027 | 282 | const char **impl_names = get_machine()->volk_32fc_s32f_power_32fc_impl_names; | |
8028 | 282 | const int *impl_deps = get_machine()->volk_32fc_s32f_power_32fc_impl_deps; | |
8029 | 282 | const bool *alignment = get_machine()->volk_32fc_s32f_power_32fc_impl_alignment; | |
8030 | 282 | const size_t n_impls = get_machine()->volk_32fc_s32f_power_32fc_n_impls; | |
8031 | 282 | volk_func_desc_t desc = { | |
8032 | impl_names, | ||
8033 | impl_deps, | ||
8034 | alignment, | ||
8035 | n_impls | ||
8036 | }; | ||
8037 | 282 | return desc; | |
8038 | } | ||
8039 | |||
8040 | |||
8041 | |||
8042 | ✗ | static inline void __volk_32fc_s32f_power_spectral_densitypuppet_32f_d(float* logPowerOutput, const lv_32fc_t* complexFFTInput, const float normalizationFactor, unsigned int num_points) | |
8043 | { | ||
8044 | |||
8045 | ✗ | if (volk_is_aligned( | |
8046 | ✗ | VOLK_OR_PTR(logPowerOutput, | |
8047 | VOLK_OR_PTR(complexFFTInput, | ||
8048 | 0)) | ||
8049 | )){ | ||
8050 | ✗ | volk_32fc_s32f_power_spectral_densitypuppet_32f_a(logPowerOutput, complexFFTInput, normalizationFactor, num_points); | |
8051 | } | ||
8052 | else{ | ||
8053 | ✗ | volk_32fc_s32f_power_spectral_densitypuppet_32f_u(logPowerOutput, complexFFTInput, normalizationFactor, num_points); | |
8054 | } | ||
8055 | ✗ | } | |
8056 | |||
8057 | ✗ | static inline void __init_volk_32fc_s32f_power_spectral_densitypuppet_32f(void) | |
8058 | { | ||
8059 | ✗ | const char *name = get_machine()->volk_32fc_s32f_power_spectral_densitypuppet_32f_name; | |
8060 | ✗ | const char **impl_names = get_machine()->volk_32fc_s32f_power_spectral_densitypuppet_32f_impl_names; | |
8061 | ✗ | const int *impl_deps = get_machine()->volk_32fc_s32f_power_spectral_densitypuppet_32f_impl_deps; | |
8062 | ✗ | const bool *alignment = get_machine()->volk_32fc_s32f_power_spectral_densitypuppet_32f_impl_alignment; | |
8063 | ✗ | const size_t n_impls = get_machine()->volk_32fc_s32f_power_spectral_densitypuppet_32f_n_impls; | |
8064 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
8065 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
8066 | ✗ | volk_32fc_s32f_power_spectral_densitypuppet_32f_a = get_machine()->volk_32fc_s32f_power_spectral_densitypuppet_32f_impls[index_a]; | |
8067 | ✗ | volk_32fc_s32f_power_spectral_densitypuppet_32f_u = get_machine()->volk_32fc_s32f_power_spectral_densitypuppet_32f_impls[index_u]; | |
8068 | |||
8069 | ✗ | assert(volk_32fc_s32f_power_spectral_densitypuppet_32f_a); | |
8070 | ✗ | assert(volk_32fc_s32f_power_spectral_densitypuppet_32f_u); | |
8071 | |||
8072 | ✗ | volk_32fc_s32f_power_spectral_densitypuppet_32f = &__volk_32fc_s32f_power_spectral_densitypuppet_32f_d; | |
8073 | ✗ | } | |
8074 | |||
8075 | ✗ | static inline void __volk_32fc_s32f_power_spectral_densitypuppet_32f_a(float* logPowerOutput, const lv_32fc_t* complexFFTInput, const float normalizationFactor, unsigned int num_points) | |
8076 | { | ||
8077 | ✗ | __init_volk_32fc_s32f_power_spectral_densitypuppet_32f(); | |
8078 | ✗ | volk_32fc_s32f_power_spectral_densitypuppet_32f_a(logPowerOutput, complexFFTInput, normalizationFactor, num_points); | |
8079 | ✗ | } | |
8080 | |||
8081 | ✗ | static inline void __volk_32fc_s32f_power_spectral_densitypuppet_32f_u(float* logPowerOutput, const lv_32fc_t* complexFFTInput, const float normalizationFactor, unsigned int num_points) | |
8082 | { | ||
8083 | ✗ | __init_volk_32fc_s32f_power_spectral_densitypuppet_32f(); | |
8084 | ✗ | volk_32fc_s32f_power_spectral_densitypuppet_32f_u(logPowerOutput, complexFFTInput, normalizationFactor, num_points); | |
8085 | ✗ | } | |
8086 | |||
8087 | ✗ | static inline void __volk_32fc_s32f_power_spectral_densitypuppet_32f(float* logPowerOutput, const lv_32fc_t* complexFFTInput, const float normalizationFactor, unsigned int num_points) | |
8088 | { | ||
8089 | ✗ | __init_volk_32fc_s32f_power_spectral_densitypuppet_32f(); | |
8090 | ✗ | volk_32fc_s32f_power_spectral_densitypuppet_32f(logPowerOutput, complexFFTInput, normalizationFactor, num_points); | |
8091 | ✗ | } | |
8092 | |||
8093 | p_32fc_s32f_power_spectral_densitypuppet_32f volk_32fc_s32f_power_spectral_densitypuppet_32f_a = &__volk_32fc_s32f_power_spectral_densitypuppet_32f_a; | ||
8094 | p_32fc_s32f_power_spectral_densitypuppet_32f volk_32fc_s32f_power_spectral_densitypuppet_32f_u = &__volk_32fc_s32f_power_spectral_densitypuppet_32f_u; | ||
8095 | p_32fc_s32f_power_spectral_densitypuppet_32f volk_32fc_s32f_power_spectral_densitypuppet_32f = &__volk_32fc_s32f_power_spectral_densitypuppet_32f; | ||
8096 | |||
8097 | 6 | void volk_32fc_s32f_power_spectral_densitypuppet_32f_manual(float* logPowerOutput, const lv_32fc_t* complexFFTInput, const float normalizationFactor, unsigned int num_points, const char* impl_name) | |
8098 | { | ||
8099 | 6 | const int index = volk_get_index( | |
8100 | 6 | get_machine()->volk_32fc_s32f_power_spectral_densitypuppet_32f_impl_names, | |
8101 | 6 | get_machine()->volk_32fc_s32f_power_spectral_densitypuppet_32f_n_impls, | |
8102 | impl_name | ||
8103 | ); | ||
8104 | 6 | get_machine()->volk_32fc_s32f_power_spectral_densitypuppet_32f_impls[index]( | |
8105 | logPowerOutput, complexFFTInput, normalizationFactor, num_points | ||
8106 | ); | ||
8107 | 6 | } | |
8108 | |||
8109 | 282 | volk_func_desc_t volk_32fc_s32f_power_spectral_densitypuppet_32f_get_func_desc(void) { | |
8110 | 282 | const char **impl_names = get_machine()->volk_32fc_s32f_power_spectral_densitypuppet_32f_impl_names; | |
8111 | 282 | const int *impl_deps = get_machine()->volk_32fc_s32f_power_spectral_densitypuppet_32f_impl_deps; | |
8112 | 282 | const bool *alignment = get_machine()->volk_32fc_s32f_power_spectral_densitypuppet_32f_impl_alignment; | |
8113 | 282 | const size_t n_impls = get_machine()->volk_32fc_s32f_power_spectral_densitypuppet_32f_n_impls; | |
8114 | 282 | volk_func_desc_t desc = { | |
8115 | impl_names, | ||
8116 | impl_deps, | ||
8117 | alignment, | ||
8118 | n_impls | ||
8119 | }; | ||
8120 | 282 | return desc; | |
8121 | } | ||
8122 | |||
8123 | |||
8124 | |||
8125 | 2 | static inline void __volk_32fc_s32f_power_spectrum_32f_d(float* logPowerOutput, const lv_32fc_t* complexFFTInput, const float normalizationFactor, unsigned int num_points) | |
8126 | { | ||
8127 | |||
8128 |
1/2✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
|
2 | if (volk_is_aligned( |
8129 | 2 | VOLK_OR_PTR(logPowerOutput, | |
8130 | VOLK_OR_PTR(complexFFTInput, | ||
8131 | 0)) | ||
8132 | )){ | ||
8133 | 2 | volk_32fc_s32f_power_spectrum_32f_a(logPowerOutput, complexFFTInput, normalizationFactor, num_points); | |
8134 | } | ||
8135 | else{ | ||
8136 | ✗ | volk_32fc_s32f_power_spectrum_32f_u(logPowerOutput, complexFFTInput, normalizationFactor, num_points); | |
8137 | } | ||
8138 | 2 | } | |
8139 | |||
8140 | 2 | static inline void __init_volk_32fc_s32f_power_spectrum_32f(void) | |
8141 | { | ||
8142 | 2 | const char *name = get_machine()->volk_32fc_s32f_power_spectrum_32f_name; | |
8143 | 2 | const char **impl_names = get_machine()->volk_32fc_s32f_power_spectrum_32f_impl_names; | |
8144 | 2 | const int *impl_deps = get_machine()->volk_32fc_s32f_power_spectrum_32f_impl_deps; | |
8145 | 2 | const bool *alignment = get_machine()->volk_32fc_s32f_power_spectrum_32f_impl_alignment; | |
8146 | 2 | const size_t n_impls = get_machine()->volk_32fc_s32f_power_spectrum_32f_n_impls; | |
8147 | 2 | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
8148 | 2 | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
8149 | 2 | volk_32fc_s32f_power_spectrum_32f_a = get_machine()->volk_32fc_s32f_power_spectrum_32f_impls[index_a]; | |
8150 | 2 | volk_32fc_s32f_power_spectrum_32f_u = get_machine()->volk_32fc_s32f_power_spectrum_32f_impls[index_u]; | |
8151 | |||
8152 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 2 times.
|
2 | assert(volk_32fc_s32f_power_spectrum_32f_a); |
8153 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 2 times.
|
2 | assert(volk_32fc_s32f_power_spectrum_32f_u); |
8154 | |||
8155 | 2 | volk_32fc_s32f_power_spectrum_32f = &__volk_32fc_s32f_power_spectrum_32f_d; | |
8156 | 2 | } | |
8157 | |||
8158 | ✗ | static inline void __volk_32fc_s32f_power_spectrum_32f_a(float* logPowerOutput, const lv_32fc_t* complexFFTInput, const float normalizationFactor, unsigned int num_points) | |
8159 | { | ||
8160 | ✗ | __init_volk_32fc_s32f_power_spectrum_32f(); | |
8161 | ✗ | volk_32fc_s32f_power_spectrum_32f_a(logPowerOutput, complexFFTInput, normalizationFactor, num_points); | |
8162 | ✗ | } | |
8163 | |||
8164 | ✗ | static inline void __volk_32fc_s32f_power_spectrum_32f_u(float* logPowerOutput, const lv_32fc_t* complexFFTInput, const float normalizationFactor, unsigned int num_points) | |
8165 | { | ||
8166 | ✗ | __init_volk_32fc_s32f_power_spectrum_32f(); | |
8167 | ✗ | volk_32fc_s32f_power_spectrum_32f_u(logPowerOutput, complexFFTInput, normalizationFactor, num_points); | |
8168 | ✗ | } | |
8169 | |||
8170 | 2 | static inline void __volk_32fc_s32f_power_spectrum_32f(float* logPowerOutput, const lv_32fc_t* complexFFTInput, const float normalizationFactor, unsigned int num_points) | |
8171 | { | ||
8172 | 2 | __init_volk_32fc_s32f_power_spectrum_32f(); | |
8173 | 2 | volk_32fc_s32f_power_spectrum_32f(logPowerOutput, complexFFTInput, normalizationFactor, num_points); | |
8174 | 2 | } | |
8175 | |||
8176 | p_32fc_s32f_power_spectrum_32f volk_32fc_s32f_power_spectrum_32f_a = &__volk_32fc_s32f_power_spectrum_32f_a; | ||
8177 | p_32fc_s32f_power_spectrum_32f volk_32fc_s32f_power_spectrum_32f_u = &__volk_32fc_s32f_power_spectrum_32f_u; | ||
8178 | p_32fc_s32f_power_spectrum_32f volk_32fc_s32f_power_spectrum_32f = &__volk_32fc_s32f_power_spectrum_32f; | ||
8179 | |||
8180 | 4 | void volk_32fc_s32f_power_spectrum_32f_manual(float* logPowerOutput, const lv_32fc_t* complexFFTInput, const float normalizationFactor, unsigned int num_points, const char* impl_name) | |
8181 | { | ||
8182 | 4 | const int index = volk_get_index( | |
8183 | 4 | get_machine()->volk_32fc_s32f_power_spectrum_32f_impl_names, | |
8184 | 4 | get_machine()->volk_32fc_s32f_power_spectrum_32f_n_impls, | |
8185 | impl_name | ||
8186 | ); | ||
8187 | 4 | get_machine()->volk_32fc_s32f_power_spectrum_32f_impls[index]( | |
8188 | logPowerOutput, complexFFTInput, normalizationFactor, num_points | ||
8189 | ); | ||
8190 | 4 | } | |
8191 | |||
8192 | 282 | volk_func_desc_t volk_32fc_s32f_power_spectrum_32f_get_func_desc(void) { | |
8193 | 282 | const char **impl_names = get_machine()->volk_32fc_s32f_power_spectrum_32f_impl_names; | |
8194 | 282 | const int *impl_deps = get_machine()->volk_32fc_s32f_power_spectrum_32f_impl_deps; | |
8195 | 282 | const bool *alignment = get_machine()->volk_32fc_s32f_power_spectrum_32f_impl_alignment; | |
8196 | 282 | const size_t n_impls = get_machine()->volk_32fc_s32f_power_spectrum_32f_n_impls; | |
8197 | 282 | volk_func_desc_t desc = { | |
8198 | impl_names, | ||
8199 | impl_deps, | ||
8200 | alignment, | ||
8201 | n_impls | ||
8202 | }; | ||
8203 | 282 | return desc; | |
8204 | } | ||
8205 | |||
8206 | |||
8207 | |||
8208 | ✗ | static inline void __volk_32fc_s32f_x2_power_spectral_density_32f_d(float* logPowerOutput, const lv_32fc_t* complexFFTInput, const float normalizationFactor, const float rbw, unsigned int num_points) | |
8209 | { | ||
8210 | |||
8211 | ✗ | if (volk_is_aligned( | |
8212 | ✗ | VOLK_OR_PTR(logPowerOutput, | |
8213 | VOLK_OR_PTR(complexFFTInput, | ||
8214 | 0)) | ||
8215 | )){ | ||
8216 | ✗ | volk_32fc_s32f_x2_power_spectral_density_32f_a(logPowerOutput, complexFFTInput, normalizationFactor, rbw, num_points); | |
8217 | } | ||
8218 | else{ | ||
8219 | ✗ | volk_32fc_s32f_x2_power_spectral_density_32f_u(logPowerOutput, complexFFTInput, normalizationFactor, rbw, num_points); | |
8220 | } | ||
8221 | ✗ | } | |
8222 | |||
8223 | ✗ | static inline void __init_volk_32fc_s32f_x2_power_spectral_density_32f(void) | |
8224 | { | ||
8225 | ✗ | const char *name = get_machine()->volk_32fc_s32f_x2_power_spectral_density_32f_name; | |
8226 | ✗ | const char **impl_names = get_machine()->volk_32fc_s32f_x2_power_spectral_density_32f_impl_names; | |
8227 | ✗ | const int *impl_deps = get_machine()->volk_32fc_s32f_x2_power_spectral_density_32f_impl_deps; | |
8228 | ✗ | const bool *alignment = get_machine()->volk_32fc_s32f_x2_power_spectral_density_32f_impl_alignment; | |
8229 | ✗ | const size_t n_impls = get_machine()->volk_32fc_s32f_x2_power_spectral_density_32f_n_impls; | |
8230 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
8231 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
8232 | ✗ | volk_32fc_s32f_x2_power_spectral_density_32f_a = get_machine()->volk_32fc_s32f_x2_power_spectral_density_32f_impls[index_a]; | |
8233 | ✗ | volk_32fc_s32f_x2_power_spectral_density_32f_u = get_machine()->volk_32fc_s32f_x2_power_spectral_density_32f_impls[index_u]; | |
8234 | |||
8235 | ✗ | assert(volk_32fc_s32f_x2_power_spectral_density_32f_a); | |
8236 | ✗ | assert(volk_32fc_s32f_x2_power_spectral_density_32f_u); | |
8237 | |||
8238 | ✗ | volk_32fc_s32f_x2_power_spectral_density_32f = &__volk_32fc_s32f_x2_power_spectral_density_32f_d; | |
8239 | ✗ | } | |
8240 | |||
8241 | ✗ | static inline void __volk_32fc_s32f_x2_power_spectral_density_32f_a(float* logPowerOutput, const lv_32fc_t* complexFFTInput, const float normalizationFactor, const float rbw, unsigned int num_points) | |
8242 | { | ||
8243 | ✗ | __init_volk_32fc_s32f_x2_power_spectral_density_32f(); | |
8244 | ✗ | volk_32fc_s32f_x2_power_spectral_density_32f_a(logPowerOutput, complexFFTInput, normalizationFactor, rbw, num_points); | |
8245 | ✗ | } | |
8246 | |||
8247 | ✗ | static inline void __volk_32fc_s32f_x2_power_spectral_density_32f_u(float* logPowerOutput, const lv_32fc_t* complexFFTInput, const float normalizationFactor, const float rbw, unsigned int num_points) | |
8248 | { | ||
8249 | ✗ | __init_volk_32fc_s32f_x2_power_spectral_density_32f(); | |
8250 | ✗ | volk_32fc_s32f_x2_power_spectral_density_32f_u(logPowerOutput, complexFFTInput, normalizationFactor, rbw, num_points); | |
8251 | ✗ | } | |
8252 | |||
8253 | ✗ | static inline void __volk_32fc_s32f_x2_power_spectral_density_32f(float* logPowerOutput, const lv_32fc_t* complexFFTInput, const float normalizationFactor, const float rbw, unsigned int num_points) | |
8254 | { | ||
8255 | ✗ | __init_volk_32fc_s32f_x2_power_spectral_density_32f(); | |
8256 | ✗ | volk_32fc_s32f_x2_power_spectral_density_32f(logPowerOutput, complexFFTInput, normalizationFactor, rbw, num_points); | |
8257 | ✗ | } | |
8258 | |||
8259 | p_32fc_s32f_x2_power_spectral_density_32f volk_32fc_s32f_x2_power_spectral_density_32f_a = &__volk_32fc_s32f_x2_power_spectral_density_32f_a; | ||
8260 | p_32fc_s32f_x2_power_spectral_density_32f volk_32fc_s32f_x2_power_spectral_density_32f_u = &__volk_32fc_s32f_x2_power_spectral_density_32f_u; | ||
8261 | p_32fc_s32f_x2_power_spectral_density_32f volk_32fc_s32f_x2_power_spectral_density_32f = &__volk_32fc_s32f_x2_power_spectral_density_32f; | ||
8262 | |||
8263 | ✗ | void volk_32fc_s32f_x2_power_spectral_density_32f_manual(float* logPowerOutput, const lv_32fc_t* complexFFTInput, const float normalizationFactor, const float rbw, unsigned int num_points, const char* impl_name) | |
8264 | { | ||
8265 | ✗ | const int index = volk_get_index( | |
8266 | ✗ | get_machine()->volk_32fc_s32f_x2_power_spectral_density_32f_impl_names, | |
8267 | ✗ | get_machine()->volk_32fc_s32f_x2_power_spectral_density_32f_n_impls, | |
8268 | impl_name | ||
8269 | ); | ||
8270 | ✗ | get_machine()->volk_32fc_s32f_x2_power_spectral_density_32f_impls[index]( | |
8271 | logPowerOutput, complexFFTInput, normalizationFactor, rbw, num_points | ||
8272 | ); | ||
8273 | ✗ | } | |
8274 | |||
8275 | ✗ | volk_func_desc_t volk_32fc_s32f_x2_power_spectral_density_32f_get_func_desc(void) { | |
8276 | ✗ | const char **impl_names = get_machine()->volk_32fc_s32f_x2_power_spectral_density_32f_impl_names; | |
8277 | ✗ | const int *impl_deps = get_machine()->volk_32fc_s32f_x2_power_spectral_density_32f_impl_deps; | |
8278 | ✗ | const bool *alignment = get_machine()->volk_32fc_s32f_x2_power_spectral_density_32f_impl_alignment; | |
8279 | ✗ | const size_t n_impls = get_machine()->volk_32fc_s32f_x2_power_spectral_density_32f_n_impls; | |
8280 | ✗ | volk_func_desc_t desc = { | |
8281 | impl_names, | ||
8282 | impl_deps, | ||
8283 | alignment, | ||
8284 | n_impls | ||
8285 | }; | ||
8286 | ✗ | return desc; | |
8287 | } | ||
8288 | |||
8289 | |||
8290 | |||
8291 | ✗ | static inline void __volk_32fc_s32fc_multiply_32fc_d(lv_32fc_t* cVector, const lv_32fc_t* aVector, const lv_32fc_t scalar, unsigned int num_points) | |
8292 | { | ||
8293 | |||
8294 | ✗ | if (volk_is_aligned( | |
8295 | ✗ | VOLK_OR_PTR(cVector, | |
8296 | VOLK_OR_PTR(aVector, | ||
8297 | 0)) | ||
8298 | )){ | ||
8299 | ✗ | volk_32fc_s32fc_multiply_32fc_a(cVector, aVector, scalar, num_points); | |
8300 | } | ||
8301 | else{ | ||
8302 | ✗ | volk_32fc_s32fc_multiply_32fc_u(cVector, aVector, scalar, num_points); | |
8303 | } | ||
8304 | ✗ | } | |
8305 | |||
8306 | ✗ | static inline void __init_volk_32fc_s32fc_multiply_32fc(void) | |
8307 | { | ||
8308 | ✗ | const char *name = get_machine()->volk_32fc_s32fc_multiply_32fc_name; | |
8309 | ✗ | const char **impl_names = get_machine()->volk_32fc_s32fc_multiply_32fc_impl_names; | |
8310 | ✗ | const int *impl_deps = get_machine()->volk_32fc_s32fc_multiply_32fc_impl_deps; | |
8311 | ✗ | const bool *alignment = get_machine()->volk_32fc_s32fc_multiply_32fc_impl_alignment; | |
8312 | ✗ | const size_t n_impls = get_machine()->volk_32fc_s32fc_multiply_32fc_n_impls; | |
8313 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
8314 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
8315 | ✗ | volk_32fc_s32fc_multiply_32fc_a = get_machine()->volk_32fc_s32fc_multiply_32fc_impls[index_a]; | |
8316 | ✗ | volk_32fc_s32fc_multiply_32fc_u = get_machine()->volk_32fc_s32fc_multiply_32fc_impls[index_u]; | |
8317 | |||
8318 | ✗ | assert(volk_32fc_s32fc_multiply_32fc_a); | |
8319 | ✗ | assert(volk_32fc_s32fc_multiply_32fc_u); | |
8320 | |||
8321 | ✗ | volk_32fc_s32fc_multiply_32fc = &__volk_32fc_s32fc_multiply_32fc_d; | |
8322 | ✗ | } | |
8323 | |||
8324 | ✗ | static inline void __volk_32fc_s32fc_multiply_32fc_a(lv_32fc_t* cVector, const lv_32fc_t* aVector, const lv_32fc_t scalar, unsigned int num_points) | |
8325 | { | ||
8326 | ✗ | __init_volk_32fc_s32fc_multiply_32fc(); | |
8327 | ✗ | volk_32fc_s32fc_multiply_32fc_a(cVector, aVector, scalar, num_points); | |
8328 | ✗ | } | |
8329 | |||
8330 | ✗ | static inline void __volk_32fc_s32fc_multiply_32fc_u(lv_32fc_t* cVector, const lv_32fc_t* aVector, const lv_32fc_t scalar, unsigned int num_points) | |
8331 | { | ||
8332 | ✗ | __init_volk_32fc_s32fc_multiply_32fc(); | |
8333 | ✗ | volk_32fc_s32fc_multiply_32fc_u(cVector, aVector, scalar, num_points); | |
8334 | ✗ | } | |
8335 | |||
8336 | ✗ | static inline void __volk_32fc_s32fc_multiply_32fc(lv_32fc_t* cVector, const lv_32fc_t* aVector, const lv_32fc_t scalar, unsigned int num_points) | |
8337 | { | ||
8338 | ✗ | __init_volk_32fc_s32fc_multiply_32fc(); | |
8339 | ✗ | volk_32fc_s32fc_multiply_32fc(cVector, aVector, scalar, num_points); | |
8340 | ✗ | } | |
8341 | |||
8342 | p_32fc_s32fc_multiply_32fc volk_32fc_s32fc_multiply_32fc_a = &__volk_32fc_s32fc_multiply_32fc_a; | ||
8343 | p_32fc_s32fc_multiply_32fc volk_32fc_s32fc_multiply_32fc_u = &__volk_32fc_s32fc_multiply_32fc_u; | ||
8344 | p_32fc_s32fc_multiply_32fc volk_32fc_s32fc_multiply_32fc = &__volk_32fc_s32fc_multiply_32fc; | ||
8345 | |||
8346 | 16 | void volk_32fc_s32fc_multiply_32fc_manual(lv_32fc_t* cVector, const lv_32fc_t* aVector, const lv_32fc_t scalar, unsigned int num_points, const char* impl_name) | |
8347 | { | ||
8348 | 16 | const int index = volk_get_index( | |
8349 | 16 | get_machine()->volk_32fc_s32fc_multiply_32fc_impl_names, | |
8350 | 16 | get_machine()->volk_32fc_s32fc_multiply_32fc_n_impls, | |
8351 | impl_name | ||
8352 | ); | ||
8353 | 16 | get_machine()->volk_32fc_s32fc_multiply_32fc_impls[index]( | |
8354 | cVector, aVector, scalar, num_points | ||
8355 | ); | ||
8356 | 16 | } | |
8357 | |||
8358 | 282 | volk_func_desc_t volk_32fc_s32fc_multiply_32fc_get_func_desc(void) { | |
8359 | 282 | const char **impl_names = get_machine()->volk_32fc_s32fc_multiply_32fc_impl_names; | |
8360 | 282 | const int *impl_deps = get_machine()->volk_32fc_s32fc_multiply_32fc_impl_deps; | |
8361 | 282 | const bool *alignment = get_machine()->volk_32fc_s32fc_multiply_32fc_impl_alignment; | |
8362 | 282 | const size_t n_impls = get_machine()->volk_32fc_s32fc_multiply_32fc_n_impls; | |
8363 | 282 | volk_func_desc_t desc = { | |
8364 | impl_names, | ||
8365 | impl_deps, | ||
8366 | alignment, | ||
8367 | n_impls | ||
8368 | }; | ||
8369 | 282 | return desc; | |
8370 | } | ||
8371 | |||
8372 | |||
8373 | |||
8374 | ✗ | static inline void __volk_32fc_s32fc_rotatorpuppet_32fc_d(lv_32fc_t* outVector, const lv_32fc_t* inVector, const lv_32fc_t phase_inc, unsigned int num_points) | |
8375 | { | ||
8376 | |||
8377 | ✗ | if (volk_is_aligned( | |
8378 | ✗ | VOLK_OR_PTR(outVector, | |
8379 | VOLK_OR_PTR(inVector, | ||
8380 | 0)) | ||
8381 | )){ | ||
8382 | ✗ | volk_32fc_s32fc_rotatorpuppet_32fc_a(outVector, inVector, phase_inc, num_points); | |
8383 | } | ||
8384 | else{ | ||
8385 | ✗ | volk_32fc_s32fc_rotatorpuppet_32fc_u(outVector, inVector, phase_inc, num_points); | |
8386 | } | ||
8387 | ✗ | } | |
8388 | |||
8389 | ✗ | static inline void __init_volk_32fc_s32fc_rotatorpuppet_32fc(void) | |
8390 | { | ||
8391 | ✗ | const char *name = get_machine()->volk_32fc_s32fc_rotatorpuppet_32fc_name; | |
8392 | ✗ | const char **impl_names = get_machine()->volk_32fc_s32fc_rotatorpuppet_32fc_impl_names; | |
8393 | ✗ | const int *impl_deps = get_machine()->volk_32fc_s32fc_rotatorpuppet_32fc_impl_deps; | |
8394 | ✗ | const bool *alignment = get_machine()->volk_32fc_s32fc_rotatorpuppet_32fc_impl_alignment; | |
8395 | ✗ | const size_t n_impls = get_machine()->volk_32fc_s32fc_rotatorpuppet_32fc_n_impls; | |
8396 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
8397 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
8398 | ✗ | volk_32fc_s32fc_rotatorpuppet_32fc_a = get_machine()->volk_32fc_s32fc_rotatorpuppet_32fc_impls[index_a]; | |
8399 | ✗ | volk_32fc_s32fc_rotatorpuppet_32fc_u = get_machine()->volk_32fc_s32fc_rotatorpuppet_32fc_impls[index_u]; | |
8400 | |||
8401 | ✗ | assert(volk_32fc_s32fc_rotatorpuppet_32fc_a); | |
8402 | ✗ | assert(volk_32fc_s32fc_rotatorpuppet_32fc_u); | |
8403 | |||
8404 | ✗ | volk_32fc_s32fc_rotatorpuppet_32fc = &__volk_32fc_s32fc_rotatorpuppet_32fc_d; | |
8405 | ✗ | } | |
8406 | |||
8407 | ✗ | static inline void __volk_32fc_s32fc_rotatorpuppet_32fc_a(lv_32fc_t* outVector, const lv_32fc_t* inVector, const lv_32fc_t phase_inc, unsigned int num_points) | |
8408 | { | ||
8409 | ✗ | __init_volk_32fc_s32fc_rotatorpuppet_32fc(); | |
8410 | ✗ | volk_32fc_s32fc_rotatorpuppet_32fc_a(outVector, inVector, phase_inc, num_points); | |
8411 | ✗ | } | |
8412 | |||
8413 | ✗ | static inline void __volk_32fc_s32fc_rotatorpuppet_32fc_u(lv_32fc_t* outVector, const lv_32fc_t* inVector, const lv_32fc_t phase_inc, unsigned int num_points) | |
8414 | { | ||
8415 | ✗ | __init_volk_32fc_s32fc_rotatorpuppet_32fc(); | |
8416 | ✗ | volk_32fc_s32fc_rotatorpuppet_32fc_u(outVector, inVector, phase_inc, num_points); | |
8417 | ✗ | } | |
8418 | |||
8419 | ✗ | static inline void __volk_32fc_s32fc_rotatorpuppet_32fc(lv_32fc_t* outVector, const lv_32fc_t* inVector, const lv_32fc_t phase_inc, unsigned int num_points) | |
8420 | { | ||
8421 | ✗ | __init_volk_32fc_s32fc_rotatorpuppet_32fc(); | |
8422 | ✗ | volk_32fc_s32fc_rotatorpuppet_32fc(outVector, inVector, phase_inc, num_points); | |
8423 | ✗ | } | |
8424 | |||
8425 | p_32fc_s32fc_rotatorpuppet_32fc volk_32fc_s32fc_rotatorpuppet_32fc_a = &__volk_32fc_s32fc_rotatorpuppet_32fc_a; | ||
8426 | p_32fc_s32fc_rotatorpuppet_32fc volk_32fc_s32fc_rotatorpuppet_32fc_u = &__volk_32fc_s32fc_rotatorpuppet_32fc_u; | ||
8427 | p_32fc_s32fc_rotatorpuppet_32fc volk_32fc_s32fc_rotatorpuppet_32fc = &__volk_32fc_s32fc_rotatorpuppet_32fc; | ||
8428 | |||
8429 | 14 | void volk_32fc_s32fc_rotatorpuppet_32fc_manual(lv_32fc_t* outVector, const lv_32fc_t* inVector, const lv_32fc_t phase_inc, unsigned int num_points, const char* impl_name) | |
8430 | { | ||
8431 | 14 | const int index = volk_get_index( | |
8432 | 14 | get_machine()->volk_32fc_s32fc_rotatorpuppet_32fc_impl_names, | |
8433 | 14 | get_machine()->volk_32fc_s32fc_rotatorpuppet_32fc_n_impls, | |
8434 | impl_name | ||
8435 | ); | ||
8436 | 14 | get_machine()->volk_32fc_s32fc_rotatorpuppet_32fc_impls[index]( | |
8437 | outVector, inVector, phase_inc, num_points | ||
8438 | ); | ||
8439 | 14 | } | |
8440 | |||
8441 | 282 | volk_func_desc_t volk_32fc_s32fc_rotatorpuppet_32fc_get_func_desc(void) { | |
8442 | 282 | const char **impl_names = get_machine()->volk_32fc_s32fc_rotatorpuppet_32fc_impl_names; | |
8443 | 282 | const int *impl_deps = get_machine()->volk_32fc_s32fc_rotatorpuppet_32fc_impl_deps; | |
8444 | 282 | const bool *alignment = get_machine()->volk_32fc_s32fc_rotatorpuppet_32fc_impl_alignment; | |
8445 | 282 | const size_t n_impls = get_machine()->volk_32fc_s32fc_rotatorpuppet_32fc_n_impls; | |
8446 | 282 | volk_func_desc_t desc = { | |
8447 | impl_names, | ||
8448 | impl_deps, | ||
8449 | alignment, | ||
8450 | n_impls | ||
8451 | }; | ||
8452 | 282 | return desc; | |
8453 | } | ||
8454 | |||
8455 | |||
8456 | |||
8457 | ✗ | static inline void __volk_32fc_s32fc_x2_rotator_32fc_d(lv_32fc_t* outVector, const lv_32fc_t* inVector, const lv_32fc_t phase_inc, lv_32fc_t* phase, unsigned int num_points) | |
8458 | { | ||
8459 | |||
8460 | ✗ | if (volk_is_aligned( | |
8461 | ✗ | VOLK_OR_PTR(outVector, | |
8462 | VOLK_OR_PTR(inVector, | ||
8463 | VOLK_OR_PTR(phase, | ||
8464 | 0))) | ||
8465 | )){ | ||
8466 | ✗ | volk_32fc_s32fc_x2_rotator_32fc_a(outVector, inVector, phase_inc, phase, num_points); | |
8467 | } | ||
8468 | else{ | ||
8469 | ✗ | volk_32fc_s32fc_x2_rotator_32fc_u(outVector, inVector, phase_inc, phase, num_points); | |
8470 | } | ||
8471 | ✗ | } | |
8472 | |||
8473 | ✗ | static inline void __init_volk_32fc_s32fc_x2_rotator_32fc(void) | |
8474 | { | ||
8475 | ✗ | const char *name = get_machine()->volk_32fc_s32fc_x2_rotator_32fc_name; | |
8476 | ✗ | const char **impl_names = get_machine()->volk_32fc_s32fc_x2_rotator_32fc_impl_names; | |
8477 | ✗ | const int *impl_deps = get_machine()->volk_32fc_s32fc_x2_rotator_32fc_impl_deps; | |
8478 | ✗ | const bool *alignment = get_machine()->volk_32fc_s32fc_x2_rotator_32fc_impl_alignment; | |
8479 | ✗ | const size_t n_impls = get_machine()->volk_32fc_s32fc_x2_rotator_32fc_n_impls; | |
8480 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
8481 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
8482 | ✗ | volk_32fc_s32fc_x2_rotator_32fc_a = get_machine()->volk_32fc_s32fc_x2_rotator_32fc_impls[index_a]; | |
8483 | ✗ | volk_32fc_s32fc_x2_rotator_32fc_u = get_machine()->volk_32fc_s32fc_x2_rotator_32fc_impls[index_u]; | |
8484 | |||
8485 | ✗ | assert(volk_32fc_s32fc_x2_rotator_32fc_a); | |
8486 | ✗ | assert(volk_32fc_s32fc_x2_rotator_32fc_u); | |
8487 | |||
8488 | ✗ | volk_32fc_s32fc_x2_rotator_32fc = &__volk_32fc_s32fc_x2_rotator_32fc_d; | |
8489 | ✗ | } | |
8490 | |||
8491 | ✗ | static inline void __volk_32fc_s32fc_x2_rotator_32fc_a(lv_32fc_t* outVector, const lv_32fc_t* inVector, const lv_32fc_t phase_inc, lv_32fc_t* phase, unsigned int num_points) | |
8492 | { | ||
8493 | ✗ | __init_volk_32fc_s32fc_x2_rotator_32fc(); | |
8494 | ✗ | volk_32fc_s32fc_x2_rotator_32fc_a(outVector, inVector, phase_inc, phase, num_points); | |
8495 | ✗ | } | |
8496 | |||
8497 | ✗ | static inline void __volk_32fc_s32fc_x2_rotator_32fc_u(lv_32fc_t* outVector, const lv_32fc_t* inVector, const lv_32fc_t phase_inc, lv_32fc_t* phase, unsigned int num_points) | |
8498 | { | ||
8499 | ✗ | __init_volk_32fc_s32fc_x2_rotator_32fc(); | |
8500 | ✗ | volk_32fc_s32fc_x2_rotator_32fc_u(outVector, inVector, phase_inc, phase, num_points); | |
8501 | ✗ | } | |
8502 | |||
8503 | ✗ | static inline void __volk_32fc_s32fc_x2_rotator_32fc(lv_32fc_t* outVector, const lv_32fc_t* inVector, const lv_32fc_t phase_inc, lv_32fc_t* phase, unsigned int num_points) | |
8504 | { | ||
8505 | ✗ | __init_volk_32fc_s32fc_x2_rotator_32fc(); | |
8506 | ✗ | volk_32fc_s32fc_x2_rotator_32fc(outVector, inVector, phase_inc, phase, num_points); | |
8507 | ✗ | } | |
8508 | |||
8509 | p_32fc_s32fc_x2_rotator_32fc volk_32fc_s32fc_x2_rotator_32fc_a = &__volk_32fc_s32fc_x2_rotator_32fc_a; | ||
8510 | p_32fc_s32fc_x2_rotator_32fc volk_32fc_s32fc_x2_rotator_32fc_u = &__volk_32fc_s32fc_x2_rotator_32fc_u; | ||
8511 | p_32fc_s32fc_x2_rotator_32fc volk_32fc_s32fc_x2_rotator_32fc = &__volk_32fc_s32fc_x2_rotator_32fc; | ||
8512 | |||
8513 | ✗ | void volk_32fc_s32fc_x2_rotator_32fc_manual(lv_32fc_t* outVector, const lv_32fc_t* inVector, const lv_32fc_t phase_inc, lv_32fc_t* phase, unsigned int num_points, const char* impl_name) | |
8514 | { | ||
8515 | ✗ | const int index = volk_get_index( | |
8516 | ✗ | get_machine()->volk_32fc_s32fc_x2_rotator_32fc_impl_names, | |
8517 | ✗ | get_machine()->volk_32fc_s32fc_x2_rotator_32fc_n_impls, | |
8518 | impl_name | ||
8519 | ); | ||
8520 | ✗ | get_machine()->volk_32fc_s32fc_x2_rotator_32fc_impls[index]( | |
8521 | outVector, inVector, phase_inc, phase, num_points | ||
8522 | ); | ||
8523 | ✗ | } | |
8524 | |||
8525 | ✗ | volk_func_desc_t volk_32fc_s32fc_x2_rotator_32fc_get_func_desc(void) { | |
8526 | ✗ | const char **impl_names = get_machine()->volk_32fc_s32fc_x2_rotator_32fc_impl_names; | |
8527 | ✗ | const int *impl_deps = get_machine()->volk_32fc_s32fc_x2_rotator_32fc_impl_deps; | |
8528 | ✗ | const bool *alignment = get_machine()->volk_32fc_s32fc_x2_rotator_32fc_impl_alignment; | |
8529 | ✗ | const size_t n_impls = get_machine()->volk_32fc_s32fc_x2_rotator_32fc_n_impls; | |
8530 | ✗ | volk_func_desc_t desc = { | |
8531 | impl_names, | ||
8532 | impl_deps, | ||
8533 | alignment, | ||
8534 | n_impls | ||
8535 | }; | ||
8536 | ✗ | return desc; | |
8537 | } | ||
8538 | |||
8539 | |||
8540 | |||
8541 | ✗ | static inline void __volk_32fc_x2_add_32fc_d(lv_32fc_t* cVector, const lv_32fc_t* aVector, const lv_32fc_t* bVector, unsigned int num_points) | |
8542 | { | ||
8543 | |||
8544 | ✗ | if (volk_is_aligned( | |
8545 | ✗ | VOLK_OR_PTR(cVector, | |
8546 | VOLK_OR_PTR(aVector, | ||
8547 | VOLK_OR_PTR(bVector, | ||
8548 | 0))) | ||
8549 | )){ | ||
8550 | ✗ | volk_32fc_x2_add_32fc_a(cVector, aVector, bVector, num_points); | |
8551 | } | ||
8552 | else{ | ||
8553 | ✗ | volk_32fc_x2_add_32fc_u(cVector, aVector, bVector, num_points); | |
8554 | } | ||
8555 | ✗ | } | |
8556 | |||
8557 | ✗ | static inline void __init_volk_32fc_x2_add_32fc(void) | |
8558 | { | ||
8559 | ✗ | const char *name = get_machine()->volk_32fc_x2_add_32fc_name; | |
8560 | ✗ | const char **impl_names = get_machine()->volk_32fc_x2_add_32fc_impl_names; | |
8561 | ✗ | const int *impl_deps = get_machine()->volk_32fc_x2_add_32fc_impl_deps; | |
8562 | ✗ | const bool *alignment = get_machine()->volk_32fc_x2_add_32fc_impl_alignment; | |
8563 | ✗ | const size_t n_impls = get_machine()->volk_32fc_x2_add_32fc_n_impls; | |
8564 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
8565 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
8566 | ✗ | volk_32fc_x2_add_32fc_a = get_machine()->volk_32fc_x2_add_32fc_impls[index_a]; | |
8567 | ✗ | volk_32fc_x2_add_32fc_u = get_machine()->volk_32fc_x2_add_32fc_impls[index_u]; | |
8568 | |||
8569 | ✗ | assert(volk_32fc_x2_add_32fc_a); | |
8570 | ✗ | assert(volk_32fc_x2_add_32fc_u); | |
8571 | |||
8572 | ✗ | volk_32fc_x2_add_32fc = &__volk_32fc_x2_add_32fc_d; | |
8573 | ✗ | } | |
8574 | |||
8575 | ✗ | static inline void __volk_32fc_x2_add_32fc_a(lv_32fc_t* cVector, const lv_32fc_t* aVector, const lv_32fc_t* bVector, unsigned int num_points) | |
8576 | { | ||
8577 | ✗ | __init_volk_32fc_x2_add_32fc(); | |
8578 | ✗ | volk_32fc_x2_add_32fc_a(cVector, aVector, bVector, num_points); | |
8579 | ✗ | } | |
8580 | |||
8581 | ✗ | static inline void __volk_32fc_x2_add_32fc_u(lv_32fc_t* cVector, const lv_32fc_t* aVector, const lv_32fc_t* bVector, unsigned int num_points) | |
8582 | { | ||
8583 | ✗ | __init_volk_32fc_x2_add_32fc(); | |
8584 | ✗ | volk_32fc_x2_add_32fc_u(cVector, aVector, bVector, num_points); | |
8585 | ✗ | } | |
8586 | |||
8587 | ✗ | static inline void __volk_32fc_x2_add_32fc(lv_32fc_t* cVector, const lv_32fc_t* aVector, const lv_32fc_t* bVector, unsigned int num_points) | |
8588 | { | ||
8589 | ✗ | __init_volk_32fc_x2_add_32fc(); | |
8590 | ✗ | volk_32fc_x2_add_32fc(cVector, aVector, bVector, num_points); | |
8591 | ✗ | } | |
8592 | |||
8593 | p_32fc_x2_add_32fc volk_32fc_x2_add_32fc_a = &__volk_32fc_x2_add_32fc_a; | ||
8594 | p_32fc_x2_add_32fc volk_32fc_x2_add_32fc_u = &__volk_32fc_x2_add_32fc_u; | ||
8595 | p_32fc_x2_add_32fc volk_32fc_x2_add_32fc = &__volk_32fc_x2_add_32fc; | ||
8596 | |||
8597 | 10 | void volk_32fc_x2_add_32fc_manual(lv_32fc_t* cVector, const lv_32fc_t* aVector, const lv_32fc_t* bVector, unsigned int num_points, const char* impl_name) | |
8598 | { | ||
8599 | 10 | const int index = volk_get_index( | |
8600 | 10 | get_machine()->volk_32fc_x2_add_32fc_impl_names, | |
8601 | 10 | get_machine()->volk_32fc_x2_add_32fc_n_impls, | |
8602 | impl_name | ||
8603 | ); | ||
8604 | 10 | get_machine()->volk_32fc_x2_add_32fc_impls[index]( | |
8605 | cVector, aVector, bVector, num_points | ||
8606 | ); | ||
8607 | 10 | } | |
8608 | |||
8609 | 282 | volk_func_desc_t volk_32fc_x2_add_32fc_get_func_desc(void) { | |
8610 | 282 | const char **impl_names = get_machine()->volk_32fc_x2_add_32fc_impl_names; | |
8611 | 282 | const int *impl_deps = get_machine()->volk_32fc_x2_add_32fc_impl_deps; | |
8612 | 282 | const bool *alignment = get_machine()->volk_32fc_x2_add_32fc_impl_alignment; | |
8613 | 282 | const size_t n_impls = get_machine()->volk_32fc_x2_add_32fc_n_impls; | |
8614 | 282 | volk_func_desc_t desc = { | |
8615 | impl_names, | ||
8616 | impl_deps, | ||
8617 | alignment, | ||
8618 | n_impls | ||
8619 | }; | ||
8620 | 282 | return desc; | |
8621 | } | ||
8622 | |||
8623 | |||
8624 | |||
8625 | ✗ | static inline void __volk_32fc_x2_conjugate_dot_prod_32fc_d(lv_32fc_t* result, const lv_32fc_t* input, const lv_32fc_t* taps, unsigned int num_points) | |
8626 | { | ||
8627 | |||
8628 | ✗ | if (volk_is_aligned( | |
8629 | ✗ | VOLK_OR_PTR(result, | |
8630 | VOLK_OR_PTR(input, | ||
8631 | VOLK_OR_PTR(taps, | ||
8632 | 0))) | ||
8633 | )){ | ||
8634 | ✗ | volk_32fc_x2_conjugate_dot_prod_32fc_a(result, input, taps, num_points); | |
8635 | } | ||
8636 | else{ | ||
8637 | ✗ | volk_32fc_x2_conjugate_dot_prod_32fc_u(result, input, taps, num_points); | |
8638 | } | ||
8639 | ✗ | } | |
8640 | |||
8641 | ✗ | static inline void __init_volk_32fc_x2_conjugate_dot_prod_32fc(void) | |
8642 | { | ||
8643 | ✗ | const char *name = get_machine()->volk_32fc_x2_conjugate_dot_prod_32fc_name; | |
8644 | ✗ | const char **impl_names = get_machine()->volk_32fc_x2_conjugate_dot_prod_32fc_impl_names; | |
8645 | ✗ | const int *impl_deps = get_machine()->volk_32fc_x2_conjugate_dot_prod_32fc_impl_deps; | |
8646 | ✗ | const bool *alignment = get_machine()->volk_32fc_x2_conjugate_dot_prod_32fc_impl_alignment; | |
8647 | ✗ | const size_t n_impls = get_machine()->volk_32fc_x2_conjugate_dot_prod_32fc_n_impls; | |
8648 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
8649 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
8650 | ✗ | volk_32fc_x2_conjugate_dot_prod_32fc_a = get_machine()->volk_32fc_x2_conjugate_dot_prod_32fc_impls[index_a]; | |
8651 | ✗ | volk_32fc_x2_conjugate_dot_prod_32fc_u = get_machine()->volk_32fc_x2_conjugate_dot_prod_32fc_impls[index_u]; | |
8652 | |||
8653 | ✗ | assert(volk_32fc_x2_conjugate_dot_prod_32fc_a); | |
8654 | ✗ | assert(volk_32fc_x2_conjugate_dot_prod_32fc_u); | |
8655 | |||
8656 | ✗ | volk_32fc_x2_conjugate_dot_prod_32fc = &__volk_32fc_x2_conjugate_dot_prod_32fc_d; | |
8657 | ✗ | } | |
8658 | |||
8659 | ✗ | static inline void __volk_32fc_x2_conjugate_dot_prod_32fc_a(lv_32fc_t* result, const lv_32fc_t* input, const lv_32fc_t* taps, unsigned int num_points) | |
8660 | { | ||
8661 | ✗ | __init_volk_32fc_x2_conjugate_dot_prod_32fc(); | |
8662 | ✗ | volk_32fc_x2_conjugate_dot_prod_32fc_a(result, input, taps, num_points); | |
8663 | ✗ | } | |
8664 | |||
8665 | ✗ | static inline void __volk_32fc_x2_conjugate_dot_prod_32fc_u(lv_32fc_t* result, const lv_32fc_t* input, const lv_32fc_t* taps, unsigned int num_points) | |
8666 | { | ||
8667 | ✗ | __init_volk_32fc_x2_conjugate_dot_prod_32fc(); | |
8668 | ✗ | volk_32fc_x2_conjugate_dot_prod_32fc_u(result, input, taps, num_points); | |
8669 | ✗ | } | |
8670 | |||
8671 | ✗ | static inline void __volk_32fc_x2_conjugate_dot_prod_32fc(lv_32fc_t* result, const lv_32fc_t* input, const lv_32fc_t* taps, unsigned int num_points) | |
8672 | { | ||
8673 | ✗ | __init_volk_32fc_x2_conjugate_dot_prod_32fc(); | |
8674 | ✗ | volk_32fc_x2_conjugate_dot_prod_32fc(result, input, taps, num_points); | |
8675 | ✗ | } | |
8676 | |||
8677 | p_32fc_x2_conjugate_dot_prod_32fc volk_32fc_x2_conjugate_dot_prod_32fc_a = &__volk_32fc_x2_conjugate_dot_prod_32fc_a; | ||
8678 | p_32fc_x2_conjugate_dot_prod_32fc volk_32fc_x2_conjugate_dot_prod_32fc_u = &__volk_32fc_x2_conjugate_dot_prod_32fc_u; | ||
8679 | p_32fc_x2_conjugate_dot_prod_32fc volk_32fc_x2_conjugate_dot_prod_32fc = &__volk_32fc_x2_conjugate_dot_prod_32fc; | ||
8680 | |||
8681 | 16 | void volk_32fc_x2_conjugate_dot_prod_32fc_manual(lv_32fc_t* result, const lv_32fc_t* input, const lv_32fc_t* taps, unsigned int num_points, const char* impl_name) | |
8682 | { | ||
8683 | 16 | const int index = volk_get_index( | |
8684 | 16 | get_machine()->volk_32fc_x2_conjugate_dot_prod_32fc_impl_names, | |
8685 | 16 | get_machine()->volk_32fc_x2_conjugate_dot_prod_32fc_n_impls, | |
8686 | impl_name | ||
8687 | ); | ||
8688 | 16 | get_machine()->volk_32fc_x2_conjugate_dot_prod_32fc_impls[index]( | |
8689 | result, input, taps, num_points | ||
8690 | ); | ||
8691 | 16 | } | |
8692 | |||
8693 | 282 | volk_func_desc_t volk_32fc_x2_conjugate_dot_prod_32fc_get_func_desc(void) { | |
8694 | 282 | const char **impl_names = get_machine()->volk_32fc_x2_conjugate_dot_prod_32fc_impl_names; | |
8695 | 282 | const int *impl_deps = get_machine()->volk_32fc_x2_conjugate_dot_prod_32fc_impl_deps; | |
8696 | 282 | const bool *alignment = get_machine()->volk_32fc_x2_conjugate_dot_prod_32fc_impl_alignment; | |
8697 | 282 | const size_t n_impls = get_machine()->volk_32fc_x2_conjugate_dot_prod_32fc_n_impls; | |
8698 | 282 | volk_func_desc_t desc = { | |
8699 | impl_names, | ||
8700 | impl_deps, | ||
8701 | alignment, | ||
8702 | n_impls | ||
8703 | }; | ||
8704 | 282 | return desc; | |
8705 | } | ||
8706 | |||
8707 | |||
8708 | |||
8709 | ✗ | static inline void __volk_32fc_x2_divide_32fc_d(lv_32fc_t* cVector, const lv_32fc_t* aVector, const lv_32fc_t* bVector, unsigned int num_points) | |
8710 | { | ||
8711 | |||
8712 | ✗ | if (volk_is_aligned( | |
8713 | ✗ | VOLK_OR_PTR(cVector, | |
8714 | VOLK_OR_PTR(aVector, | ||
8715 | VOLK_OR_PTR(bVector, | ||
8716 | 0))) | ||
8717 | )){ | ||
8718 | ✗ | volk_32fc_x2_divide_32fc_a(cVector, aVector, bVector, num_points); | |
8719 | } | ||
8720 | else{ | ||
8721 | ✗ | volk_32fc_x2_divide_32fc_u(cVector, aVector, bVector, num_points); | |
8722 | } | ||
8723 | ✗ | } | |
8724 | |||
8725 | ✗ | static inline void __init_volk_32fc_x2_divide_32fc(void) | |
8726 | { | ||
8727 | ✗ | const char *name = get_machine()->volk_32fc_x2_divide_32fc_name; | |
8728 | ✗ | const char **impl_names = get_machine()->volk_32fc_x2_divide_32fc_impl_names; | |
8729 | ✗ | const int *impl_deps = get_machine()->volk_32fc_x2_divide_32fc_impl_deps; | |
8730 | ✗ | const bool *alignment = get_machine()->volk_32fc_x2_divide_32fc_impl_alignment; | |
8731 | ✗ | const size_t n_impls = get_machine()->volk_32fc_x2_divide_32fc_n_impls; | |
8732 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
8733 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
8734 | ✗ | volk_32fc_x2_divide_32fc_a = get_machine()->volk_32fc_x2_divide_32fc_impls[index_a]; | |
8735 | ✗ | volk_32fc_x2_divide_32fc_u = get_machine()->volk_32fc_x2_divide_32fc_impls[index_u]; | |
8736 | |||
8737 | ✗ | assert(volk_32fc_x2_divide_32fc_a); | |
8738 | ✗ | assert(volk_32fc_x2_divide_32fc_u); | |
8739 | |||
8740 | ✗ | volk_32fc_x2_divide_32fc = &__volk_32fc_x2_divide_32fc_d; | |
8741 | ✗ | } | |
8742 | |||
8743 | ✗ | static inline void __volk_32fc_x2_divide_32fc_a(lv_32fc_t* cVector, const lv_32fc_t* aVector, const lv_32fc_t* bVector, unsigned int num_points) | |
8744 | { | ||
8745 | ✗ | __init_volk_32fc_x2_divide_32fc(); | |
8746 | ✗ | volk_32fc_x2_divide_32fc_a(cVector, aVector, bVector, num_points); | |
8747 | ✗ | } | |
8748 | |||
8749 | ✗ | static inline void __volk_32fc_x2_divide_32fc_u(lv_32fc_t* cVector, const lv_32fc_t* aVector, const lv_32fc_t* bVector, unsigned int num_points) | |
8750 | { | ||
8751 | ✗ | __init_volk_32fc_x2_divide_32fc(); | |
8752 | ✗ | volk_32fc_x2_divide_32fc_u(cVector, aVector, bVector, num_points); | |
8753 | ✗ | } | |
8754 | |||
8755 | ✗ | static inline void __volk_32fc_x2_divide_32fc(lv_32fc_t* cVector, const lv_32fc_t* aVector, const lv_32fc_t* bVector, unsigned int num_points) | |
8756 | { | ||
8757 | ✗ | __init_volk_32fc_x2_divide_32fc(); | |
8758 | ✗ | volk_32fc_x2_divide_32fc(cVector, aVector, bVector, num_points); | |
8759 | ✗ | } | |
8760 | |||
8761 | p_32fc_x2_divide_32fc volk_32fc_x2_divide_32fc_a = &__volk_32fc_x2_divide_32fc_a; | ||
8762 | p_32fc_x2_divide_32fc volk_32fc_x2_divide_32fc_u = &__volk_32fc_x2_divide_32fc_u; | ||
8763 | p_32fc_x2_divide_32fc volk_32fc_x2_divide_32fc = &__volk_32fc_x2_divide_32fc; | ||
8764 | |||
8765 | 10 | void volk_32fc_x2_divide_32fc_manual(lv_32fc_t* cVector, const lv_32fc_t* aVector, const lv_32fc_t* bVector, unsigned int num_points, const char* impl_name) | |
8766 | { | ||
8767 | 10 | const int index = volk_get_index( | |
8768 | 10 | get_machine()->volk_32fc_x2_divide_32fc_impl_names, | |
8769 | 10 | get_machine()->volk_32fc_x2_divide_32fc_n_impls, | |
8770 | impl_name | ||
8771 | ); | ||
8772 | 10 | get_machine()->volk_32fc_x2_divide_32fc_impls[index]( | |
8773 | cVector, aVector, bVector, num_points | ||
8774 | ); | ||
8775 | 10 | } | |
8776 | |||
8777 | 282 | volk_func_desc_t volk_32fc_x2_divide_32fc_get_func_desc(void) { | |
8778 | 282 | const char **impl_names = get_machine()->volk_32fc_x2_divide_32fc_impl_names; | |
8779 | 282 | const int *impl_deps = get_machine()->volk_32fc_x2_divide_32fc_impl_deps; | |
8780 | 282 | const bool *alignment = get_machine()->volk_32fc_x2_divide_32fc_impl_alignment; | |
8781 | 282 | const size_t n_impls = get_machine()->volk_32fc_x2_divide_32fc_n_impls; | |
8782 | 282 | volk_func_desc_t desc = { | |
8783 | impl_names, | ||
8784 | impl_deps, | ||
8785 | alignment, | ||
8786 | n_impls | ||
8787 | }; | ||
8788 | 282 | return desc; | |
8789 | } | ||
8790 | |||
8791 | |||
8792 | |||
8793 | ✗ | static inline void __volk_32fc_x2_dot_prod_32fc_d(lv_32fc_t* result, const lv_32fc_t* input, const lv_32fc_t* taps, unsigned int num_points) | |
8794 | { | ||
8795 | |||
8796 | ✗ | if (volk_is_aligned( | |
8797 | ✗ | VOLK_OR_PTR(result, | |
8798 | VOLK_OR_PTR(input, | ||
8799 | VOLK_OR_PTR(taps, | ||
8800 | 0))) | ||
8801 | )){ | ||
8802 | ✗ | volk_32fc_x2_dot_prod_32fc_a(result, input, taps, num_points); | |
8803 | } | ||
8804 | else{ | ||
8805 | ✗ | volk_32fc_x2_dot_prod_32fc_u(result, input, taps, num_points); | |
8806 | } | ||
8807 | ✗ | } | |
8808 | |||
8809 | ✗ | static inline void __init_volk_32fc_x2_dot_prod_32fc(void) | |
8810 | { | ||
8811 | ✗ | const char *name = get_machine()->volk_32fc_x2_dot_prod_32fc_name; | |
8812 | ✗ | const char **impl_names = get_machine()->volk_32fc_x2_dot_prod_32fc_impl_names; | |
8813 | ✗ | const int *impl_deps = get_machine()->volk_32fc_x2_dot_prod_32fc_impl_deps; | |
8814 | ✗ | const bool *alignment = get_machine()->volk_32fc_x2_dot_prod_32fc_impl_alignment; | |
8815 | ✗ | const size_t n_impls = get_machine()->volk_32fc_x2_dot_prod_32fc_n_impls; | |
8816 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
8817 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
8818 | ✗ | volk_32fc_x2_dot_prod_32fc_a = get_machine()->volk_32fc_x2_dot_prod_32fc_impls[index_a]; | |
8819 | ✗ | volk_32fc_x2_dot_prod_32fc_u = get_machine()->volk_32fc_x2_dot_prod_32fc_impls[index_u]; | |
8820 | |||
8821 | ✗ | assert(volk_32fc_x2_dot_prod_32fc_a); | |
8822 | ✗ | assert(volk_32fc_x2_dot_prod_32fc_u); | |
8823 | |||
8824 | ✗ | volk_32fc_x2_dot_prod_32fc = &__volk_32fc_x2_dot_prod_32fc_d; | |
8825 | ✗ | } | |
8826 | |||
8827 | ✗ | static inline void __volk_32fc_x2_dot_prod_32fc_a(lv_32fc_t* result, const lv_32fc_t* input, const lv_32fc_t* taps, unsigned int num_points) | |
8828 | { | ||
8829 | ✗ | __init_volk_32fc_x2_dot_prod_32fc(); | |
8830 | ✗ | volk_32fc_x2_dot_prod_32fc_a(result, input, taps, num_points); | |
8831 | ✗ | } | |
8832 | |||
8833 | ✗ | static inline void __volk_32fc_x2_dot_prod_32fc_u(lv_32fc_t* result, const lv_32fc_t* input, const lv_32fc_t* taps, unsigned int num_points) | |
8834 | { | ||
8835 | ✗ | __init_volk_32fc_x2_dot_prod_32fc(); | |
8836 | ✗ | volk_32fc_x2_dot_prod_32fc_u(result, input, taps, num_points); | |
8837 | ✗ | } | |
8838 | |||
8839 | ✗ | static inline void __volk_32fc_x2_dot_prod_32fc(lv_32fc_t* result, const lv_32fc_t* input, const lv_32fc_t* taps, unsigned int num_points) | |
8840 | { | ||
8841 | ✗ | __init_volk_32fc_x2_dot_prod_32fc(); | |
8842 | ✗ | volk_32fc_x2_dot_prod_32fc(result, input, taps, num_points); | |
8843 | ✗ | } | |
8844 | |||
8845 | p_32fc_x2_dot_prod_32fc volk_32fc_x2_dot_prod_32fc_a = &__volk_32fc_x2_dot_prod_32fc_a; | ||
8846 | p_32fc_x2_dot_prod_32fc volk_32fc_x2_dot_prod_32fc_u = &__volk_32fc_x2_dot_prod_32fc_u; | ||
8847 | p_32fc_x2_dot_prod_32fc volk_32fc_x2_dot_prod_32fc = &__volk_32fc_x2_dot_prod_32fc; | ||
8848 | |||
8849 | 20 | void volk_32fc_x2_dot_prod_32fc_manual(lv_32fc_t* result, const lv_32fc_t* input, const lv_32fc_t* taps, unsigned int num_points, const char* impl_name) | |
8850 | { | ||
8851 | 20 | const int index = volk_get_index( | |
8852 | 20 | get_machine()->volk_32fc_x2_dot_prod_32fc_impl_names, | |
8853 | 20 | get_machine()->volk_32fc_x2_dot_prod_32fc_n_impls, | |
8854 | impl_name | ||
8855 | ); | ||
8856 | 20 | get_machine()->volk_32fc_x2_dot_prod_32fc_impls[index]( | |
8857 | result, input, taps, num_points | ||
8858 | ); | ||
8859 | 20 | } | |
8860 | |||
8861 | 282 | volk_func_desc_t volk_32fc_x2_dot_prod_32fc_get_func_desc(void) { | |
8862 | 282 | const char **impl_names = get_machine()->volk_32fc_x2_dot_prod_32fc_impl_names; | |
8863 | 282 | const int *impl_deps = get_machine()->volk_32fc_x2_dot_prod_32fc_impl_deps; | |
8864 | 282 | const bool *alignment = get_machine()->volk_32fc_x2_dot_prod_32fc_impl_alignment; | |
8865 | 282 | const size_t n_impls = get_machine()->volk_32fc_x2_dot_prod_32fc_n_impls; | |
8866 | 282 | volk_func_desc_t desc = { | |
8867 | impl_names, | ||
8868 | impl_deps, | ||
8869 | alignment, | ||
8870 | n_impls | ||
8871 | }; | ||
8872 | 282 | return desc; | |
8873 | } | ||
8874 | |||
8875 | |||
8876 | |||
8877 | ✗ | static inline void __volk_32fc_x2_multiply_32fc_d(lv_32fc_t* cVector, const lv_32fc_t* aVector, const lv_32fc_t* bVector, unsigned int num_points) | |
8878 | { | ||
8879 | |||
8880 | ✗ | if (volk_is_aligned( | |
8881 | ✗ | VOLK_OR_PTR(cVector, | |
8882 | VOLK_OR_PTR(aVector, | ||
8883 | VOLK_OR_PTR(bVector, | ||
8884 | 0))) | ||
8885 | )){ | ||
8886 | ✗ | volk_32fc_x2_multiply_32fc_a(cVector, aVector, bVector, num_points); | |
8887 | } | ||
8888 | else{ | ||
8889 | ✗ | volk_32fc_x2_multiply_32fc_u(cVector, aVector, bVector, num_points); | |
8890 | } | ||
8891 | ✗ | } | |
8892 | |||
8893 | ✗ | static inline void __init_volk_32fc_x2_multiply_32fc(void) | |
8894 | { | ||
8895 | ✗ | const char *name = get_machine()->volk_32fc_x2_multiply_32fc_name; | |
8896 | ✗ | const char **impl_names = get_machine()->volk_32fc_x2_multiply_32fc_impl_names; | |
8897 | ✗ | const int *impl_deps = get_machine()->volk_32fc_x2_multiply_32fc_impl_deps; | |
8898 | ✗ | const bool *alignment = get_machine()->volk_32fc_x2_multiply_32fc_impl_alignment; | |
8899 | ✗ | const size_t n_impls = get_machine()->volk_32fc_x2_multiply_32fc_n_impls; | |
8900 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
8901 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
8902 | ✗ | volk_32fc_x2_multiply_32fc_a = get_machine()->volk_32fc_x2_multiply_32fc_impls[index_a]; | |
8903 | ✗ | volk_32fc_x2_multiply_32fc_u = get_machine()->volk_32fc_x2_multiply_32fc_impls[index_u]; | |
8904 | |||
8905 | ✗ | assert(volk_32fc_x2_multiply_32fc_a); | |
8906 | ✗ | assert(volk_32fc_x2_multiply_32fc_u); | |
8907 | |||
8908 | ✗ | volk_32fc_x2_multiply_32fc = &__volk_32fc_x2_multiply_32fc_d; | |
8909 | ✗ | } | |
8910 | |||
8911 | ✗ | static inline void __volk_32fc_x2_multiply_32fc_a(lv_32fc_t* cVector, const lv_32fc_t* aVector, const lv_32fc_t* bVector, unsigned int num_points) | |
8912 | { | ||
8913 | ✗ | __init_volk_32fc_x2_multiply_32fc(); | |
8914 | ✗ | volk_32fc_x2_multiply_32fc_a(cVector, aVector, bVector, num_points); | |
8915 | ✗ | } | |
8916 | |||
8917 | ✗ | static inline void __volk_32fc_x2_multiply_32fc_u(lv_32fc_t* cVector, const lv_32fc_t* aVector, const lv_32fc_t* bVector, unsigned int num_points) | |
8918 | { | ||
8919 | ✗ | __init_volk_32fc_x2_multiply_32fc(); | |
8920 | ✗ | volk_32fc_x2_multiply_32fc_u(cVector, aVector, bVector, num_points); | |
8921 | ✗ | } | |
8922 | |||
8923 | ✗ | static inline void __volk_32fc_x2_multiply_32fc(lv_32fc_t* cVector, const lv_32fc_t* aVector, const lv_32fc_t* bVector, unsigned int num_points) | |
8924 | { | ||
8925 | ✗ | __init_volk_32fc_x2_multiply_32fc(); | |
8926 | ✗ | volk_32fc_x2_multiply_32fc(cVector, aVector, bVector, num_points); | |
8927 | ✗ | } | |
8928 | |||
8929 | p_32fc_x2_multiply_32fc volk_32fc_x2_multiply_32fc_a = &__volk_32fc_x2_multiply_32fc_a; | ||
8930 | p_32fc_x2_multiply_32fc volk_32fc_x2_multiply_32fc_u = &__volk_32fc_x2_multiply_32fc_u; | ||
8931 | p_32fc_x2_multiply_32fc volk_32fc_x2_multiply_32fc = &__volk_32fc_x2_multiply_32fc; | ||
8932 | |||
8933 | 18 | void volk_32fc_x2_multiply_32fc_manual(lv_32fc_t* cVector, const lv_32fc_t* aVector, const lv_32fc_t* bVector, unsigned int num_points, const char* impl_name) | |
8934 | { | ||
8935 | 18 | const int index = volk_get_index( | |
8936 | 18 | get_machine()->volk_32fc_x2_multiply_32fc_impl_names, | |
8937 | 18 | get_machine()->volk_32fc_x2_multiply_32fc_n_impls, | |
8938 | impl_name | ||
8939 | ); | ||
8940 | 18 | get_machine()->volk_32fc_x2_multiply_32fc_impls[index]( | |
8941 | cVector, aVector, bVector, num_points | ||
8942 | ); | ||
8943 | 18 | } | |
8944 | |||
8945 | 282 | volk_func_desc_t volk_32fc_x2_multiply_32fc_get_func_desc(void) { | |
8946 | 282 | const char **impl_names = get_machine()->volk_32fc_x2_multiply_32fc_impl_names; | |
8947 | 282 | const int *impl_deps = get_machine()->volk_32fc_x2_multiply_32fc_impl_deps; | |
8948 | 282 | const bool *alignment = get_machine()->volk_32fc_x2_multiply_32fc_impl_alignment; | |
8949 | 282 | const size_t n_impls = get_machine()->volk_32fc_x2_multiply_32fc_n_impls; | |
8950 | 282 | volk_func_desc_t desc = { | |
8951 | impl_names, | ||
8952 | impl_deps, | ||
8953 | alignment, | ||
8954 | n_impls | ||
8955 | }; | ||
8956 | 282 | return desc; | |
8957 | } | ||
8958 | |||
8959 | |||
8960 | |||
8961 | ✗ | static inline void __volk_32fc_x2_multiply_conjugate_32fc_d(lv_32fc_t* cVector, const lv_32fc_t* aVector, const lv_32fc_t* bVector, unsigned int num_points) | |
8962 | { | ||
8963 | |||
8964 | ✗ | if (volk_is_aligned( | |
8965 | ✗ | VOLK_OR_PTR(cVector, | |
8966 | VOLK_OR_PTR(aVector, | ||
8967 | VOLK_OR_PTR(bVector, | ||
8968 | 0))) | ||
8969 | )){ | ||
8970 | ✗ | volk_32fc_x2_multiply_conjugate_32fc_a(cVector, aVector, bVector, num_points); | |
8971 | } | ||
8972 | else{ | ||
8973 | ✗ | volk_32fc_x2_multiply_conjugate_32fc_u(cVector, aVector, bVector, num_points); | |
8974 | } | ||
8975 | ✗ | } | |
8976 | |||
8977 | ✗ | static inline void __init_volk_32fc_x2_multiply_conjugate_32fc(void) | |
8978 | { | ||
8979 | ✗ | const char *name = get_machine()->volk_32fc_x2_multiply_conjugate_32fc_name; | |
8980 | ✗ | const char **impl_names = get_machine()->volk_32fc_x2_multiply_conjugate_32fc_impl_names; | |
8981 | ✗ | const int *impl_deps = get_machine()->volk_32fc_x2_multiply_conjugate_32fc_impl_deps; | |
8982 | ✗ | const bool *alignment = get_machine()->volk_32fc_x2_multiply_conjugate_32fc_impl_alignment; | |
8983 | ✗ | const size_t n_impls = get_machine()->volk_32fc_x2_multiply_conjugate_32fc_n_impls; | |
8984 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
8985 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
8986 | ✗ | volk_32fc_x2_multiply_conjugate_32fc_a = get_machine()->volk_32fc_x2_multiply_conjugate_32fc_impls[index_a]; | |
8987 | ✗ | volk_32fc_x2_multiply_conjugate_32fc_u = get_machine()->volk_32fc_x2_multiply_conjugate_32fc_impls[index_u]; | |
8988 | |||
8989 | ✗ | assert(volk_32fc_x2_multiply_conjugate_32fc_a); | |
8990 | ✗ | assert(volk_32fc_x2_multiply_conjugate_32fc_u); | |
8991 | |||
8992 | ✗ | volk_32fc_x2_multiply_conjugate_32fc = &__volk_32fc_x2_multiply_conjugate_32fc_d; | |
8993 | ✗ | } | |
8994 | |||
8995 | ✗ | static inline void __volk_32fc_x2_multiply_conjugate_32fc_a(lv_32fc_t* cVector, const lv_32fc_t* aVector, const lv_32fc_t* bVector, unsigned int num_points) | |
8996 | { | ||
8997 | ✗ | __init_volk_32fc_x2_multiply_conjugate_32fc(); | |
8998 | ✗ | volk_32fc_x2_multiply_conjugate_32fc_a(cVector, aVector, bVector, num_points); | |
8999 | ✗ | } | |
9000 | |||
9001 | ✗ | static inline void __volk_32fc_x2_multiply_conjugate_32fc_u(lv_32fc_t* cVector, const lv_32fc_t* aVector, const lv_32fc_t* bVector, unsigned int num_points) | |
9002 | { | ||
9003 | ✗ | __init_volk_32fc_x2_multiply_conjugate_32fc(); | |
9004 | ✗ | volk_32fc_x2_multiply_conjugate_32fc_u(cVector, aVector, bVector, num_points); | |
9005 | ✗ | } | |
9006 | |||
9007 | ✗ | static inline void __volk_32fc_x2_multiply_conjugate_32fc(lv_32fc_t* cVector, const lv_32fc_t* aVector, const lv_32fc_t* bVector, unsigned int num_points) | |
9008 | { | ||
9009 | ✗ | __init_volk_32fc_x2_multiply_conjugate_32fc(); | |
9010 | ✗ | volk_32fc_x2_multiply_conjugate_32fc(cVector, aVector, bVector, num_points); | |
9011 | ✗ | } | |
9012 | |||
9013 | p_32fc_x2_multiply_conjugate_32fc volk_32fc_x2_multiply_conjugate_32fc_a = &__volk_32fc_x2_multiply_conjugate_32fc_a; | ||
9014 | p_32fc_x2_multiply_conjugate_32fc volk_32fc_x2_multiply_conjugate_32fc_u = &__volk_32fc_x2_multiply_conjugate_32fc_u; | ||
9015 | p_32fc_x2_multiply_conjugate_32fc volk_32fc_x2_multiply_conjugate_32fc = &__volk_32fc_x2_multiply_conjugate_32fc; | ||
9016 | |||
9017 | 12 | void volk_32fc_x2_multiply_conjugate_32fc_manual(lv_32fc_t* cVector, const lv_32fc_t* aVector, const lv_32fc_t* bVector, unsigned int num_points, const char* impl_name) | |
9018 | { | ||
9019 | 12 | const int index = volk_get_index( | |
9020 | 12 | get_machine()->volk_32fc_x2_multiply_conjugate_32fc_impl_names, | |
9021 | 12 | get_machine()->volk_32fc_x2_multiply_conjugate_32fc_n_impls, | |
9022 | impl_name | ||
9023 | ); | ||
9024 | 12 | get_machine()->volk_32fc_x2_multiply_conjugate_32fc_impls[index]( | |
9025 | cVector, aVector, bVector, num_points | ||
9026 | ); | ||
9027 | 12 | } | |
9028 | |||
9029 | 282 | volk_func_desc_t volk_32fc_x2_multiply_conjugate_32fc_get_func_desc(void) { | |
9030 | 282 | const char **impl_names = get_machine()->volk_32fc_x2_multiply_conjugate_32fc_impl_names; | |
9031 | 282 | const int *impl_deps = get_machine()->volk_32fc_x2_multiply_conjugate_32fc_impl_deps; | |
9032 | 282 | const bool *alignment = get_machine()->volk_32fc_x2_multiply_conjugate_32fc_impl_alignment; | |
9033 | 282 | const size_t n_impls = get_machine()->volk_32fc_x2_multiply_conjugate_32fc_n_impls; | |
9034 | 282 | volk_func_desc_t desc = { | |
9035 | impl_names, | ||
9036 | impl_deps, | ||
9037 | alignment, | ||
9038 | n_impls | ||
9039 | }; | ||
9040 | 282 | return desc; | |
9041 | } | ||
9042 | |||
9043 | |||
9044 | |||
9045 | ✗ | static inline void __volk_32fc_x2_s32f_square_dist_scalar_mult_32f_d(float* target, lv_32fc_t* src0, lv_32fc_t* points, float scalar, unsigned int num_points) | |
9046 | { | ||
9047 | |||
9048 | ✗ | if (volk_is_aligned( | |
9049 | ✗ | VOLK_OR_PTR(target, | |
9050 | VOLK_OR_PTR(src0, | ||
9051 | VOLK_OR_PTR(points, | ||
9052 | 0))) | ||
9053 | )){ | ||
9054 | ✗ | volk_32fc_x2_s32f_square_dist_scalar_mult_32f_a(target, src0, points, scalar, num_points); | |
9055 | } | ||
9056 | else{ | ||
9057 | ✗ | volk_32fc_x2_s32f_square_dist_scalar_mult_32f_u(target, src0, points, scalar, num_points); | |
9058 | } | ||
9059 | ✗ | } | |
9060 | |||
9061 | ✗ | static inline void __init_volk_32fc_x2_s32f_square_dist_scalar_mult_32f(void) | |
9062 | { | ||
9063 | ✗ | const char *name = get_machine()->volk_32fc_x2_s32f_square_dist_scalar_mult_32f_name; | |
9064 | ✗ | const char **impl_names = get_machine()->volk_32fc_x2_s32f_square_dist_scalar_mult_32f_impl_names; | |
9065 | ✗ | const int *impl_deps = get_machine()->volk_32fc_x2_s32f_square_dist_scalar_mult_32f_impl_deps; | |
9066 | ✗ | const bool *alignment = get_machine()->volk_32fc_x2_s32f_square_dist_scalar_mult_32f_impl_alignment; | |
9067 | ✗ | const size_t n_impls = get_machine()->volk_32fc_x2_s32f_square_dist_scalar_mult_32f_n_impls; | |
9068 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
9069 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
9070 | ✗ | volk_32fc_x2_s32f_square_dist_scalar_mult_32f_a = get_machine()->volk_32fc_x2_s32f_square_dist_scalar_mult_32f_impls[index_a]; | |
9071 | ✗ | volk_32fc_x2_s32f_square_dist_scalar_mult_32f_u = get_machine()->volk_32fc_x2_s32f_square_dist_scalar_mult_32f_impls[index_u]; | |
9072 | |||
9073 | ✗ | assert(volk_32fc_x2_s32f_square_dist_scalar_mult_32f_a); | |
9074 | ✗ | assert(volk_32fc_x2_s32f_square_dist_scalar_mult_32f_u); | |
9075 | |||
9076 | ✗ | volk_32fc_x2_s32f_square_dist_scalar_mult_32f = &__volk_32fc_x2_s32f_square_dist_scalar_mult_32f_d; | |
9077 | ✗ | } | |
9078 | |||
9079 | ✗ | static inline void __volk_32fc_x2_s32f_square_dist_scalar_mult_32f_a(float* target, lv_32fc_t* src0, lv_32fc_t* points, float scalar, unsigned int num_points) | |
9080 | { | ||
9081 | ✗ | __init_volk_32fc_x2_s32f_square_dist_scalar_mult_32f(); | |
9082 | ✗ | volk_32fc_x2_s32f_square_dist_scalar_mult_32f_a(target, src0, points, scalar, num_points); | |
9083 | ✗ | } | |
9084 | |||
9085 | ✗ | static inline void __volk_32fc_x2_s32f_square_dist_scalar_mult_32f_u(float* target, lv_32fc_t* src0, lv_32fc_t* points, float scalar, unsigned int num_points) | |
9086 | { | ||
9087 | ✗ | __init_volk_32fc_x2_s32f_square_dist_scalar_mult_32f(); | |
9088 | ✗ | volk_32fc_x2_s32f_square_dist_scalar_mult_32f_u(target, src0, points, scalar, num_points); | |
9089 | ✗ | } | |
9090 | |||
9091 | ✗ | static inline void __volk_32fc_x2_s32f_square_dist_scalar_mult_32f(float* target, lv_32fc_t* src0, lv_32fc_t* points, float scalar, unsigned int num_points) | |
9092 | { | ||
9093 | ✗ | __init_volk_32fc_x2_s32f_square_dist_scalar_mult_32f(); | |
9094 | ✗ | volk_32fc_x2_s32f_square_dist_scalar_mult_32f(target, src0, points, scalar, num_points); | |
9095 | ✗ | } | |
9096 | |||
9097 | p_32fc_x2_s32f_square_dist_scalar_mult_32f volk_32fc_x2_s32f_square_dist_scalar_mult_32f_a = &__volk_32fc_x2_s32f_square_dist_scalar_mult_32f_a; | ||
9098 | p_32fc_x2_s32f_square_dist_scalar_mult_32f volk_32fc_x2_s32f_square_dist_scalar_mult_32f_u = &__volk_32fc_x2_s32f_square_dist_scalar_mult_32f_u; | ||
9099 | p_32fc_x2_s32f_square_dist_scalar_mult_32f volk_32fc_x2_s32f_square_dist_scalar_mult_32f = &__volk_32fc_x2_s32f_square_dist_scalar_mult_32f; | ||
9100 | |||
9101 | 18 | void volk_32fc_x2_s32f_square_dist_scalar_mult_32f_manual(float* target, lv_32fc_t* src0, lv_32fc_t* points, float scalar, unsigned int num_points, const char* impl_name) | |
9102 | { | ||
9103 | 18 | const int index = volk_get_index( | |
9104 | 18 | get_machine()->volk_32fc_x2_s32f_square_dist_scalar_mult_32f_impl_names, | |
9105 | 18 | get_machine()->volk_32fc_x2_s32f_square_dist_scalar_mult_32f_n_impls, | |
9106 | impl_name | ||
9107 | ); | ||
9108 | 18 | get_machine()->volk_32fc_x2_s32f_square_dist_scalar_mult_32f_impls[index]( | |
9109 | target, src0, points, scalar, num_points | ||
9110 | ); | ||
9111 | 18 | } | |
9112 | |||
9113 | 282 | volk_func_desc_t volk_32fc_x2_s32f_square_dist_scalar_mult_32f_get_func_desc(void) { | |
9114 | 282 | const char **impl_names = get_machine()->volk_32fc_x2_s32f_square_dist_scalar_mult_32f_impl_names; | |
9115 | 282 | const int *impl_deps = get_machine()->volk_32fc_x2_s32f_square_dist_scalar_mult_32f_impl_deps; | |
9116 | 282 | const bool *alignment = get_machine()->volk_32fc_x2_s32f_square_dist_scalar_mult_32f_impl_alignment; | |
9117 | 282 | const size_t n_impls = get_machine()->volk_32fc_x2_s32f_square_dist_scalar_mult_32f_n_impls; | |
9118 | 282 | volk_func_desc_t desc = { | |
9119 | impl_names, | ||
9120 | impl_deps, | ||
9121 | alignment, | ||
9122 | n_impls | ||
9123 | }; | ||
9124 | 282 | return desc; | |
9125 | } | ||
9126 | |||
9127 | |||
9128 | |||
9129 | ✗ | static inline void __volk_32fc_x2_s32fc_multiply_conjugate_add_32fc_d(lv_32fc_t* cVector, const lv_32fc_t* aVector, const lv_32fc_t* bVector, const lv_32fc_t scalar, unsigned int num_points) | |
9130 | { | ||
9131 | |||
9132 | ✗ | if (volk_is_aligned( | |
9133 | ✗ | VOLK_OR_PTR(cVector, | |
9134 | VOLK_OR_PTR(aVector, | ||
9135 | VOLK_OR_PTR(bVector, | ||
9136 | 0))) | ||
9137 | )){ | ||
9138 | ✗ | volk_32fc_x2_s32fc_multiply_conjugate_add_32fc_a(cVector, aVector, bVector, scalar, num_points); | |
9139 | } | ||
9140 | else{ | ||
9141 | ✗ | volk_32fc_x2_s32fc_multiply_conjugate_add_32fc_u(cVector, aVector, bVector, scalar, num_points); | |
9142 | } | ||
9143 | ✗ | } | |
9144 | |||
9145 | ✗ | static inline void __init_volk_32fc_x2_s32fc_multiply_conjugate_add_32fc(void) | |
9146 | { | ||
9147 | ✗ | const char *name = get_machine()->volk_32fc_x2_s32fc_multiply_conjugate_add_32fc_name; | |
9148 | ✗ | const char **impl_names = get_machine()->volk_32fc_x2_s32fc_multiply_conjugate_add_32fc_impl_names; | |
9149 | ✗ | const int *impl_deps = get_machine()->volk_32fc_x2_s32fc_multiply_conjugate_add_32fc_impl_deps; | |
9150 | ✗ | const bool *alignment = get_machine()->volk_32fc_x2_s32fc_multiply_conjugate_add_32fc_impl_alignment; | |
9151 | ✗ | const size_t n_impls = get_machine()->volk_32fc_x2_s32fc_multiply_conjugate_add_32fc_n_impls; | |
9152 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
9153 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
9154 | ✗ | volk_32fc_x2_s32fc_multiply_conjugate_add_32fc_a = get_machine()->volk_32fc_x2_s32fc_multiply_conjugate_add_32fc_impls[index_a]; | |
9155 | ✗ | volk_32fc_x2_s32fc_multiply_conjugate_add_32fc_u = get_machine()->volk_32fc_x2_s32fc_multiply_conjugate_add_32fc_impls[index_u]; | |
9156 | |||
9157 | ✗ | assert(volk_32fc_x2_s32fc_multiply_conjugate_add_32fc_a); | |
9158 | ✗ | assert(volk_32fc_x2_s32fc_multiply_conjugate_add_32fc_u); | |
9159 | |||
9160 | ✗ | volk_32fc_x2_s32fc_multiply_conjugate_add_32fc = &__volk_32fc_x2_s32fc_multiply_conjugate_add_32fc_d; | |
9161 | ✗ | } | |
9162 | |||
9163 | ✗ | static inline void __volk_32fc_x2_s32fc_multiply_conjugate_add_32fc_a(lv_32fc_t* cVector, const lv_32fc_t* aVector, const lv_32fc_t* bVector, const lv_32fc_t scalar, unsigned int num_points) | |
9164 | { | ||
9165 | ✗ | __init_volk_32fc_x2_s32fc_multiply_conjugate_add_32fc(); | |
9166 | ✗ | volk_32fc_x2_s32fc_multiply_conjugate_add_32fc_a(cVector, aVector, bVector, scalar, num_points); | |
9167 | ✗ | } | |
9168 | |||
9169 | ✗ | static inline void __volk_32fc_x2_s32fc_multiply_conjugate_add_32fc_u(lv_32fc_t* cVector, const lv_32fc_t* aVector, const lv_32fc_t* bVector, const lv_32fc_t scalar, unsigned int num_points) | |
9170 | { | ||
9171 | ✗ | __init_volk_32fc_x2_s32fc_multiply_conjugate_add_32fc(); | |
9172 | ✗ | volk_32fc_x2_s32fc_multiply_conjugate_add_32fc_u(cVector, aVector, bVector, scalar, num_points); | |
9173 | ✗ | } | |
9174 | |||
9175 | ✗ | static inline void __volk_32fc_x2_s32fc_multiply_conjugate_add_32fc(lv_32fc_t* cVector, const lv_32fc_t* aVector, const lv_32fc_t* bVector, const lv_32fc_t scalar, unsigned int num_points) | |
9176 | { | ||
9177 | ✗ | __init_volk_32fc_x2_s32fc_multiply_conjugate_add_32fc(); | |
9178 | ✗ | volk_32fc_x2_s32fc_multiply_conjugate_add_32fc(cVector, aVector, bVector, scalar, num_points); | |
9179 | ✗ | } | |
9180 | |||
9181 | p_32fc_x2_s32fc_multiply_conjugate_add_32fc volk_32fc_x2_s32fc_multiply_conjugate_add_32fc_a = &__volk_32fc_x2_s32fc_multiply_conjugate_add_32fc_a; | ||
9182 | p_32fc_x2_s32fc_multiply_conjugate_add_32fc volk_32fc_x2_s32fc_multiply_conjugate_add_32fc_u = &__volk_32fc_x2_s32fc_multiply_conjugate_add_32fc_u; | ||
9183 | p_32fc_x2_s32fc_multiply_conjugate_add_32fc volk_32fc_x2_s32fc_multiply_conjugate_add_32fc = &__volk_32fc_x2_s32fc_multiply_conjugate_add_32fc; | ||
9184 | |||
9185 | 10 | void volk_32fc_x2_s32fc_multiply_conjugate_add_32fc_manual(lv_32fc_t* cVector, const lv_32fc_t* aVector, const lv_32fc_t* bVector, const lv_32fc_t scalar, unsigned int num_points, const char* impl_name) | |
9186 | { | ||
9187 | 10 | const int index = volk_get_index( | |
9188 | 10 | get_machine()->volk_32fc_x2_s32fc_multiply_conjugate_add_32fc_impl_names, | |
9189 | 10 | get_machine()->volk_32fc_x2_s32fc_multiply_conjugate_add_32fc_n_impls, | |
9190 | impl_name | ||
9191 | ); | ||
9192 | 10 | get_machine()->volk_32fc_x2_s32fc_multiply_conjugate_add_32fc_impls[index]( | |
9193 | cVector, aVector, bVector, scalar, num_points | ||
9194 | ); | ||
9195 | 10 | } | |
9196 | |||
9197 | 282 | volk_func_desc_t volk_32fc_x2_s32fc_multiply_conjugate_add_32fc_get_func_desc(void) { | |
9198 | 282 | const char **impl_names = get_machine()->volk_32fc_x2_s32fc_multiply_conjugate_add_32fc_impl_names; | |
9199 | 282 | const int *impl_deps = get_machine()->volk_32fc_x2_s32fc_multiply_conjugate_add_32fc_impl_deps; | |
9200 | 282 | const bool *alignment = get_machine()->volk_32fc_x2_s32fc_multiply_conjugate_add_32fc_impl_alignment; | |
9201 | 282 | const size_t n_impls = get_machine()->volk_32fc_x2_s32fc_multiply_conjugate_add_32fc_n_impls; | |
9202 | 282 | volk_func_desc_t desc = { | |
9203 | impl_names, | ||
9204 | impl_deps, | ||
9205 | alignment, | ||
9206 | n_impls | ||
9207 | }; | ||
9208 | 282 | return desc; | |
9209 | } | ||
9210 | |||
9211 | |||
9212 | |||
9213 | ✗ | static inline void __volk_32fc_x2_square_dist_32f_d(float* target, lv_32fc_t* src0, lv_32fc_t* points, unsigned int num_points) | |
9214 | { | ||
9215 | |||
9216 | ✗ | if (volk_is_aligned( | |
9217 | ✗ | VOLK_OR_PTR(target, | |
9218 | VOLK_OR_PTR(src0, | ||
9219 | VOLK_OR_PTR(points, | ||
9220 | 0))) | ||
9221 | )){ | ||
9222 | ✗ | volk_32fc_x2_square_dist_32f_a(target, src0, points, num_points); | |
9223 | } | ||
9224 | else{ | ||
9225 | ✗ | volk_32fc_x2_square_dist_32f_u(target, src0, points, num_points); | |
9226 | } | ||
9227 | ✗ | } | |
9228 | |||
9229 | ✗ | static inline void __init_volk_32fc_x2_square_dist_32f(void) | |
9230 | { | ||
9231 | ✗ | const char *name = get_machine()->volk_32fc_x2_square_dist_32f_name; | |
9232 | ✗ | const char **impl_names = get_machine()->volk_32fc_x2_square_dist_32f_impl_names; | |
9233 | ✗ | const int *impl_deps = get_machine()->volk_32fc_x2_square_dist_32f_impl_deps; | |
9234 | ✗ | const bool *alignment = get_machine()->volk_32fc_x2_square_dist_32f_impl_alignment; | |
9235 | ✗ | const size_t n_impls = get_machine()->volk_32fc_x2_square_dist_32f_n_impls; | |
9236 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
9237 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
9238 | ✗ | volk_32fc_x2_square_dist_32f_a = get_machine()->volk_32fc_x2_square_dist_32f_impls[index_a]; | |
9239 | ✗ | volk_32fc_x2_square_dist_32f_u = get_machine()->volk_32fc_x2_square_dist_32f_impls[index_u]; | |
9240 | |||
9241 | ✗ | assert(volk_32fc_x2_square_dist_32f_a); | |
9242 | ✗ | assert(volk_32fc_x2_square_dist_32f_u); | |
9243 | |||
9244 | ✗ | volk_32fc_x2_square_dist_32f = &__volk_32fc_x2_square_dist_32f_d; | |
9245 | ✗ | } | |
9246 | |||
9247 | ✗ | static inline void __volk_32fc_x2_square_dist_32f_a(float* target, lv_32fc_t* src0, lv_32fc_t* points, unsigned int num_points) | |
9248 | { | ||
9249 | ✗ | __init_volk_32fc_x2_square_dist_32f(); | |
9250 | ✗ | volk_32fc_x2_square_dist_32f_a(target, src0, points, num_points); | |
9251 | ✗ | } | |
9252 | |||
9253 | ✗ | static inline void __volk_32fc_x2_square_dist_32f_u(float* target, lv_32fc_t* src0, lv_32fc_t* points, unsigned int num_points) | |
9254 | { | ||
9255 | ✗ | __init_volk_32fc_x2_square_dist_32f(); | |
9256 | ✗ | volk_32fc_x2_square_dist_32f_u(target, src0, points, num_points); | |
9257 | ✗ | } | |
9258 | |||
9259 | ✗ | static inline void __volk_32fc_x2_square_dist_32f(float* target, lv_32fc_t* src0, lv_32fc_t* points, unsigned int num_points) | |
9260 | { | ||
9261 | ✗ | __init_volk_32fc_x2_square_dist_32f(); | |
9262 | ✗ | volk_32fc_x2_square_dist_32f(target, src0, points, num_points); | |
9263 | ✗ | } | |
9264 | |||
9265 | p_32fc_x2_square_dist_32f volk_32fc_x2_square_dist_32f_a = &__volk_32fc_x2_square_dist_32f_a; | ||
9266 | p_32fc_x2_square_dist_32f volk_32fc_x2_square_dist_32f_u = &__volk_32fc_x2_square_dist_32f_u; | ||
9267 | p_32fc_x2_square_dist_32f volk_32fc_x2_square_dist_32f = &__volk_32fc_x2_square_dist_32f; | ||
9268 | |||
9269 | 8 | void volk_32fc_x2_square_dist_32f_manual(float* target, lv_32fc_t* src0, lv_32fc_t* points, unsigned int num_points, const char* impl_name) | |
9270 | { | ||
9271 | 8 | const int index = volk_get_index( | |
9272 | 8 | get_machine()->volk_32fc_x2_square_dist_32f_impl_names, | |
9273 | 8 | get_machine()->volk_32fc_x2_square_dist_32f_n_impls, | |
9274 | impl_name | ||
9275 | ); | ||
9276 | 8 | get_machine()->volk_32fc_x2_square_dist_32f_impls[index]( | |
9277 | target, src0, points, num_points | ||
9278 | ); | ||
9279 | 8 | } | |
9280 | |||
9281 | 282 | volk_func_desc_t volk_32fc_x2_square_dist_32f_get_func_desc(void) { | |
9282 | 282 | const char **impl_names = get_machine()->volk_32fc_x2_square_dist_32f_impl_names; | |
9283 | 282 | const int *impl_deps = get_machine()->volk_32fc_x2_square_dist_32f_impl_deps; | |
9284 | 282 | const bool *alignment = get_machine()->volk_32fc_x2_square_dist_32f_impl_alignment; | |
9285 | 282 | const size_t n_impls = get_machine()->volk_32fc_x2_square_dist_32f_n_impls; | |
9286 | 282 | volk_func_desc_t desc = { | |
9287 | impl_names, | ||
9288 | impl_deps, | ||
9289 | alignment, | ||
9290 | n_impls | ||
9291 | }; | ||
9292 | 282 | return desc; | |
9293 | } | ||
9294 | |||
9295 | |||
9296 | |||
9297 | ✗ | static inline void __volk_32i_s32f_convert_32f_d(float* outputVector, const int32_t* inputVector, const float scalar, unsigned int num_points) | |
9298 | { | ||
9299 | |||
9300 | ✗ | if (volk_is_aligned( | |
9301 | ✗ | VOLK_OR_PTR(outputVector, | |
9302 | VOLK_OR_PTR(inputVector, | ||
9303 | 0)) | ||
9304 | )){ | ||
9305 | ✗ | volk_32i_s32f_convert_32f_a(outputVector, inputVector, scalar, num_points); | |
9306 | } | ||
9307 | else{ | ||
9308 | ✗ | volk_32i_s32f_convert_32f_u(outputVector, inputVector, scalar, num_points); | |
9309 | } | ||
9310 | ✗ | } | |
9311 | |||
9312 | ✗ | static inline void __init_volk_32i_s32f_convert_32f(void) | |
9313 | { | ||
9314 | ✗ | const char *name = get_machine()->volk_32i_s32f_convert_32f_name; | |
9315 | ✗ | const char **impl_names = get_machine()->volk_32i_s32f_convert_32f_impl_names; | |
9316 | ✗ | const int *impl_deps = get_machine()->volk_32i_s32f_convert_32f_impl_deps; | |
9317 | ✗ | const bool *alignment = get_machine()->volk_32i_s32f_convert_32f_impl_alignment; | |
9318 | ✗ | const size_t n_impls = get_machine()->volk_32i_s32f_convert_32f_n_impls; | |
9319 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
9320 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
9321 | ✗ | volk_32i_s32f_convert_32f_a = get_machine()->volk_32i_s32f_convert_32f_impls[index_a]; | |
9322 | ✗ | volk_32i_s32f_convert_32f_u = get_machine()->volk_32i_s32f_convert_32f_impls[index_u]; | |
9323 | |||
9324 | ✗ | assert(volk_32i_s32f_convert_32f_a); | |
9325 | ✗ | assert(volk_32i_s32f_convert_32f_u); | |
9326 | |||
9327 | ✗ | volk_32i_s32f_convert_32f = &__volk_32i_s32f_convert_32f_d; | |
9328 | ✗ | } | |
9329 | |||
9330 | ✗ | static inline void __volk_32i_s32f_convert_32f_a(float* outputVector, const int32_t* inputVector, const float scalar, unsigned int num_points) | |
9331 | { | ||
9332 | ✗ | __init_volk_32i_s32f_convert_32f(); | |
9333 | ✗ | volk_32i_s32f_convert_32f_a(outputVector, inputVector, scalar, num_points); | |
9334 | ✗ | } | |
9335 | |||
9336 | ✗ | static inline void __volk_32i_s32f_convert_32f_u(float* outputVector, const int32_t* inputVector, const float scalar, unsigned int num_points) | |
9337 | { | ||
9338 | ✗ | __init_volk_32i_s32f_convert_32f(); | |
9339 | ✗ | volk_32i_s32f_convert_32f_u(outputVector, inputVector, scalar, num_points); | |
9340 | ✗ | } | |
9341 | |||
9342 | ✗ | static inline void __volk_32i_s32f_convert_32f(float* outputVector, const int32_t* inputVector, const float scalar, unsigned int num_points) | |
9343 | { | ||
9344 | ✗ | __init_volk_32i_s32f_convert_32f(); | |
9345 | ✗ | volk_32i_s32f_convert_32f(outputVector, inputVector, scalar, num_points); | |
9346 | ✗ | } | |
9347 | |||
9348 | p_32i_s32f_convert_32f volk_32i_s32f_convert_32f_a = &__volk_32i_s32f_convert_32f_a; | ||
9349 | p_32i_s32f_convert_32f volk_32i_s32f_convert_32f_u = &__volk_32i_s32f_convert_32f_u; | ||
9350 | p_32i_s32f_convert_32f volk_32i_s32f_convert_32f = &__volk_32i_s32f_convert_32f; | ||
9351 | |||
9352 | 12 | void volk_32i_s32f_convert_32f_manual(float* outputVector, const int32_t* inputVector, const float scalar, unsigned int num_points, const char* impl_name) | |
9353 | { | ||
9354 | 12 | const int index = volk_get_index( | |
9355 | 12 | get_machine()->volk_32i_s32f_convert_32f_impl_names, | |
9356 | 12 | get_machine()->volk_32i_s32f_convert_32f_n_impls, | |
9357 | impl_name | ||
9358 | ); | ||
9359 | 12 | get_machine()->volk_32i_s32f_convert_32f_impls[index]( | |
9360 | outputVector, inputVector, scalar, num_points | ||
9361 | ); | ||
9362 | 12 | } | |
9363 | |||
9364 | 282 | volk_func_desc_t volk_32i_s32f_convert_32f_get_func_desc(void) { | |
9365 | 282 | const char **impl_names = get_machine()->volk_32i_s32f_convert_32f_impl_names; | |
9366 | 282 | const int *impl_deps = get_machine()->volk_32i_s32f_convert_32f_impl_deps; | |
9367 | 282 | const bool *alignment = get_machine()->volk_32i_s32f_convert_32f_impl_alignment; | |
9368 | 282 | const size_t n_impls = get_machine()->volk_32i_s32f_convert_32f_n_impls; | |
9369 | 282 | volk_func_desc_t desc = { | |
9370 | impl_names, | ||
9371 | impl_deps, | ||
9372 | alignment, | ||
9373 | n_impls | ||
9374 | }; | ||
9375 | 282 | return desc; | |
9376 | } | ||
9377 | |||
9378 | |||
9379 | |||
9380 | ✗ | static inline void __volk_32i_x2_and_32i_d(int32_t* cVector, const int32_t* aVector, const int32_t* bVector, unsigned int num_points) | |
9381 | { | ||
9382 | |||
9383 | ✗ | if (volk_is_aligned( | |
9384 | ✗ | VOLK_OR_PTR(cVector, | |
9385 | VOLK_OR_PTR(aVector, | ||
9386 | VOLK_OR_PTR(bVector, | ||
9387 | 0))) | ||
9388 | )){ | ||
9389 | ✗ | volk_32i_x2_and_32i_a(cVector, aVector, bVector, num_points); | |
9390 | } | ||
9391 | else{ | ||
9392 | ✗ | volk_32i_x2_and_32i_u(cVector, aVector, bVector, num_points); | |
9393 | } | ||
9394 | ✗ | } | |
9395 | |||
9396 | ✗ | static inline void __init_volk_32i_x2_and_32i(void) | |
9397 | { | ||
9398 | ✗ | const char *name = get_machine()->volk_32i_x2_and_32i_name; | |
9399 | ✗ | const char **impl_names = get_machine()->volk_32i_x2_and_32i_impl_names; | |
9400 | ✗ | const int *impl_deps = get_machine()->volk_32i_x2_and_32i_impl_deps; | |
9401 | ✗ | const bool *alignment = get_machine()->volk_32i_x2_and_32i_impl_alignment; | |
9402 | ✗ | const size_t n_impls = get_machine()->volk_32i_x2_and_32i_n_impls; | |
9403 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
9404 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
9405 | ✗ | volk_32i_x2_and_32i_a = get_machine()->volk_32i_x2_and_32i_impls[index_a]; | |
9406 | ✗ | volk_32i_x2_and_32i_u = get_machine()->volk_32i_x2_and_32i_impls[index_u]; | |
9407 | |||
9408 | ✗ | assert(volk_32i_x2_and_32i_a); | |
9409 | ✗ | assert(volk_32i_x2_and_32i_u); | |
9410 | |||
9411 | ✗ | volk_32i_x2_and_32i = &__volk_32i_x2_and_32i_d; | |
9412 | ✗ | } | |
9413 | |||
9414 | ✗ | static inline void __volk_32i_x2_and_32i_a(int32_t* cVector, const int32_t* aVector, const int32_t* bVector, unsigned int num_points) | |
9415 | { | ||
9416 | ✗ | __init_volk_32i_x2_and_32i(); | |
9417 | ✗ | volk_32i_x2_and_32i_a(cVector, aVector, bVector, num_points); | |
9418 | ✗ | } | |
9419 | |||
9420 | ✗ | static inline void __volk_32i_x2_and_32i_u(int32_t* cVector, const int32_t* aVector, const int32_t* bVector, unsigned int num_points) | |
9421 | { | ||
9422 | ✗ | __init_volk_32i_x2_and_32i(); | |
9423 | ✗ | volk_32i_x2_and_32i_u(cVector, aVector, bVector, num_points); | |
9424 | ✗ | } | |
9425 | |||
9426 | ✗ | static inline void __volk_32i_x2_and_32i(int32_t* cVector, const int32_t* aVector, const int32_t* bVector, unsigned int num_points) | |
9427 | { | ||
9428 | ✗ | __init_volk_32i_x2_and_32i(); | |
9429 | ✗ | volk_32i_x2_and_32i(cVector, aVector, bVector, num_points); | |
9430 | ✗ | } | |
9431 | |||
9432 | p_32i_x2_and_32i volk_32i_x2_and_32i_a = &__volk_32i_x2_and_32i_a; | ||
9433 | p_32i_x2_and_32i volk_32i_x2_and_32i_u = &__volk_32i_x2_and_32i_u; | ||
9434 | p_32i_x2_and_32i volk_32i_x2_and_32i = &__volk_32i_x2_and_32i; | ||
9435 | |||
9436 | 10 | void volk_32i_x2_and_32i_manual(int32_t* cVector, const int32_t* aVector, const int32_t* bVector, unsigned int num_points, const char* impl_name) | |
9437 | { | ||
9438 | 10 | const int index = volk_get_index( | |
9439 | 10 | get_machine()->volk_32i_x2_and_32i_impl_names, | |
9440 | 10 | get_machine()->volk_32i_x2_and_32i_n_impls, | |
9441 | impl_name | ||
9442 | ); | ||
9443 | 10 | get_machine()->volk_32i_x2_and_32i_impls[index]( | |
9444 | cVector, aVector, bVector, num_points | ||
9445 | ); | ||
9446 | 10 | } | |
9447 | |||
9448 | 282 | volk_func_desc_t volk_32i_x2_and_32i_get_func_desc(void) { | |
9449 | 282 | const char **impl_names = get_machine()->volk_32i_x2_and_32i_impl_names; | |
9450 | 282 | const int *impl_deps = get_machine()->volk_32i_x2_and_32i_impl_deps; | |
9451 | 282 | const bool *alignment = get_machine()->volk_32i_x2_and_32i_impl_alignment; | |
9452 | 282 | const size_t n_impls = get_machine()->volk_32i_x2_and_32i_n_impls; | |
9453 | 282 | volk_func_desc_t desc = { | |
9454 | impl_names, | ||
9455 | impl_deps, | ||
9456 | alignment, | ||
9457 | n_impls | ||
9458 | }; | ||
9459 | 282 | return desc; | |
9460 | } | ||
9461 | |||
9462 | |||
9463 | |||
9464 | ✗ | static inline void __volk_32i_x2_or_32i_d(int32_t* cVector, const int32_t* aVector, const int32_t* bVector, unsigned int num_points) | |
9465 | { | ||
9466 | |||
9467 | ✗ | if (volk_is_aligned( | |
9468 | ✗ | VOLK_OR_PTR(cVector, | |
9469 | VOLK_OR_PTR(aVector, | ||
9470 | VOLK_OR_PTR(bVector, | ||
9471 | 0))) | ||
9472 | )){ | ||
9473 | ✗ | volk_32i_x2_or_32i_a(cVector, aVector, bVector, num_points); | |
9474 | } | ||
9475 | else{ | ||
9476 | ✗ | volk_32i_x2_or_32i_u(cVector, aVector, bVector, num_points); | |
9477 | } | ||
9478 | ✗ | } | |
9479 | |||
9480 | ✗ | static inline void __init_volk_32i_x2_or_32i(void) | |
9481 | { | ||
9482 | ✗ | const char *name = get_machine()->volk_32i_x2_or_32i_name; | |
9483 | ✗ | const char **impl_names = get_machine()->volk_32i_x2_or_32i_impl_names; | |
9484 | ✗ | const int *impl_deps = get_machine()->volk_32i_x2_or_32i_impl_deps; | |
9485 | ✗ | const bool *alignment = get_machine()->volk_32i_x2_or_32i_impl_alignment; | |
9486 | ✗ | const size_t n_impls = get_machine()->volk_32i_x2_or_32i_n_impls; | |
9487 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
9488 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
9489 | ✗ | volk_32i_x2_or_32i_a = get_machine()->volk_32i_x2_or_32i_impls[index_a]; | |
9490 | ✗ | volk_32i_x2_or_32i_u = get_machine()->volk_32i_x2_or_32i_impls[index_u]; | |
9491 | |||
9492 | ✗ | assert(volk_32i_x2_or_32i_a); | |
9493 | ✗ | assert(volk_32i_x2_or_32i_u); | |
9494 | |||
9495 | ✗ | volk_32i_x2_or_32i = &__volk_32i_x2_or_32i_d; | |
9496 | ✗ | } | |
9497 | |||
9498 | ✗ | static inline void __volk_32i_x2_or_32i_a(int32_t* cVector, const int32_t* aVector, const int32_t* bVector, unsigned int num_points) | |
9499 | { | ||
9500 | ✗ | __init_volk_32i_x2_or_32i(); | |
9501 | ✗ | volk_32i_x2_or_32i_a(cVector, aVector, bVector, num_points); | |
9502 | ✗ | } | |
9503 | |||
9504 | ✗ | static inline void __volk_32i_x2_or_32i_u(int32_t* cVector, const int32_t* aVector, const int32_t* bVector, unsigned int num_points) | |
9505 | { | ||
9506 | ✗ | __init_volk_32i_x2_or_32i(); | |
9507 | ✗ | volk_32i_x2_or_32i_u(cVector, aVector, bVector, num_points); | |
9508 | ✗ | } | |
9509 | |||
9510 | ✗ | static inline void __volk_32i_x2_or_32i(int32_t* cVector, const int32_t* aVector, const int32_t* bVector, unsigned int num_points) | |
9511 | { | ||
9512 | ✗ | __init_volk_32i_x2_or_32i(); | |
9513 | ✗ | volk_32i_x2_or_32i(cVector, aVector, bVector, num_points); | |
9514 | ✗ | } | |
9515 | |||
9516 | p_32i_x2_or_32i volk_32i_x2_or_32i_a = &__volk_32i_x2_or_32i_a; | ||
9517 | p_32i_x2_or_32i volk_32i_x2_or_32i_u = &__volk_32i_x2_or_32i_u; | ||
9518 | p_32i_x2_or_32i volk_32i_x2_or_32i = &__volk_32i_x2_or_32i; | ||
9519 | |||
9520 | 10 | void volk_32i_x2_or_32i_manual(int32_t* cVector, const int32_t* aVector, const int32_t* bVector, unsigned int num_points, const char* impl_name) | |
9521 | { | ||
9522 | 10 | const int index = volk_get_index( | |
9523 | 10 | get_machine()->volk_32i_x2_or_32i_impl_names, | |
9524 | 10 | get_machine()->volk_32i_x2_or_32i_n_impls, | |
9525 | impl_name | ||
9526 | ); | ||
9527 | 10 | get_machine()->volk_32i_x2_or_32i_impls[index]( | |
9528 | cVector, aVector, bVector, num_points | ||
9529 | ); | ||
9530 | 10 | } | |
9531 | |||
9532 | 282 | volk_func_desc_t volk_32i_x2_or_32i_get_func_desc(void) { | |
9533 | 282 | const char **impl_names = get_machine()->volk_32i_x2_or_32i_impl_names; | |
9534 | 282 | const int *impl_deps = get_machine()->volk_32i_x2_or_32i_impl_deps; | |
9535 | 282 | const bool *alignment = get_machine()->volk_32i_x2_or_32i_impl_alignment; | |
9536 | 282 | const size_t n_impls = get_machine()->volk_32i_x2_or_32i_n_impls; | |
9537 | 282 | volk_func_desc_t desc = { | |
9538 | impl_names, | ||
9539 | impl_deps, | ||
9540 | alignment, | ||
9541 | n_impls | ||
9542 | }; | ||
9543 | 282 | return desc; | |
9544 | } | ||
9545 | |||
9546 | |||
9547 | |||
9548 | ✗ | static inline void __volk_32u_byteswap_d(uint32_t* intsToSwap, unsigned int num_points) | |
9549 | { | ||
9550 | |||
9551 | ✗ | if (volk_is_aligned( | |
9552 | VOLK_OR_PTR(intsToSwap, | ||
9553 | 0) | ||
9554 | )){ | ||
9555 | ✗ | volk_32u_byteswap_a(intsToSwap, num_points); | |
9556 | } | ||
9557 | else{ | ||
9558 | ✗ | volk_32u_byteswap_u(intsToSwap, num_points); | |
9559 | } | ||
9560 | ✗ | } | |
9561 | |||
9562 | ✗ | static inline void __init_volk_32u_byteswap(void) | |
9563 | { | ||
9564 | ✗ | const char *name = get_machine()->volk_32u_byteswap_name; | |
9565 | ✗ | const char **impl_names = get_machine()->volk_32u_byteswap_impl_names; | |
9566 | ✗ | const int *impl_deps = get_machine()->volk_32u_byteswap_impl_deps; | |
9567 | ✗ | const bool *alignment = get_machine()->volk_32u_byteswap_impl_alignment; | |
9568 | ✗ | const size_t n_impls = get_machine()->volk_32u_byteswap_n_impls; | |
9569 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
9570 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
9571 | ✗ | volk_32u_byteswap_a = get_machine()->volk_32u_byteswap_impls[index_a]; | |
9572 | ✗ | volk_32u_byteswap_u = get_machine()->volk_32u_byteswap_impls[index_u]; | |
9573 | |||
9574 | ✗ | assert(volk_32u_byteswap_a); | |
9575 | ✗ | assert(volk_32u_byteswap_u); | |
9576 | |||
9577 | ✗ | volk_32u_byteswap = &__volk_32u_byteswap_d; | |
9578 | ✗ | } | |
9579 | |||
9580 | ✗ | static inline void __volk_32u_byteswap_a(uint32_t* intsToSwap, unsigned int num_points) | |
9581 | { | ||
9582 | ✗ | __init_volk_32u_byteswap(); | |
9583 | ✗ | volk_32u_byteswap_a(intsToSwap, num_points); | |
9584 | ✗ | } | |
9585 | |||
9586 | ✗ | static inline void __volk_32u_byteswap_u(uint32_t* intsToSwap, unsigned int num_points) | |
9587 | { | ||
9588 | ✗ | __init_volk_32u_byteswap(); | |
9589 | ✗ | volk_32u_byteswap_u(intsToSwap, num_points); | |
9590 | ✗ | } | |
9591 | |||
9592 | ✗ | static inline void __volk_32u_byteswap(uint32_t* intsToSwap, unsigned int num_points) | |
9593 | { | ||
9594 | ✗ | __init_volk_32u_byteswap(); | |
9595 | ✗ | volk_32u_byteswap(intsToSwap, num_points); | |
9596 | ✗ | } | |
9597 | |||
9598 | p_32u_byteswap volk_32u_byteswap_a = &__volk_32u_byteswap_a; | ||
9599 | p_32u_byteswap volk_32u_byteswap_u = &__volk_32u_byteswap_u; | ||
9600 | p_32u_byteswap volk_32u_byteswap = &__volk_32u_byteswap; | ||
9601 | |||
9602 | ✗ | void volk_32u_byteswap_manual(uint32_t* intsToSwap, unsigned int num_points, const char* impl_name) | |
9603 | { | ||
9604 | ✗ | const int index = volk_get_index( | |
9605 | ✗ | get_machine()->volk_32u_byteswap_impl_names, | |
9606 | ✗ | get_machine()->volk_32u_byteswap_n_impls, | |
9607 | impl_name | ||
9608 | ); | ||
9609 | ✗ | get_machine()->volk_32u_byteswap_impls[index]( | |
9610 | intsToSwap, num_points | ||
9611 | ); | ||
9612 | ✗ | } | |
9613 | |||
9614 | ✗ | volk_func_desc_t volk_32u_byteswap_get_func_desc(void) { | |
9615 | ✗ | const char **impl_names = get_machine()->volk_32u_byteswap_impl_names; | |
9616 | ✗ | const int *impl_deps = get_machine()->volk_32u_byteswap_impl_deps; | |
9617 | ✗ | const bool *alignment = get_machine()->volk_32u_byteswap_impl_alignment; | |
9618 | ✗ | const size_t n_impls = get_machine()->volk_32u_byteswap_n_impls; | |
9619 | ✗ | volk_func_desc_t desc = { | |
9620 | impl_names, | ||
9621 | impl_deps, | ||
9622 | alignment, | ||
9623 | n_impls | ||
9624 | }; | ||
9625 | ✗ | return desc; | |
9626 | } | ||
9627 | |||
9628 | |||
9629 | |||
9630 | ✗ | static inline void __volk_32u_byteswappuppet_32u_d(uint32_t* output, uint32_t* intsToSwap, unsigned int num_points) | |
9631 | { | ||
9632 | |||
9633 | ✗ | if (volk_is_aligned( | |
9634 | ✗ | VOLK_OR_PTR(output, | |
9635 | VOLK_OR_PTR(intsToSwap, | ||
9636 | 0)) | ||
9637 | )){ | ||
9638 | ✗ | volk_32u_byteswappuppet_32u_a(output, intsToSwap, num_points); | |
9639 | } | ||
9640 | else{ | ||
9641 | ✗ | volk_32u_byteswappuppet_32u_u(output, intsToSwap, num_points); | |
9642 | } | ||
9643 | ✗ | } | |
9644 | |||
9645 | ✗ | static inline void __init_volk_32u_byteswappuppet_32u(void) | |
9646 | { | ||
9647 | ✗ | const char *name = get_machine()->volk_32u_byteswappuppet_32u_name; | |
9648 | ✗ | const char **impl_names = get_machine()->volk_32u_byteswappuppet_32u_impl_names; | |
9649 | ✗ | const int *impl_deps = get_machine()->volk_32u_byteswappuppet_32u_impl_deps; | |
9650 | ✗ | const bool *alignment = get_machine()->volk_32u_byteswappuppet_32u_impl_alignment; | |
9651 | ✗ | const size_t n_impls = get_machine()->volk_32u_byteswappuppet_32u_n_impls; | |
9652 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
9653 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
9654 | ✗ | volk_32u_byteswappuppet_32u_a = get_machine()->volk_32u_byteswappuppet_32u_impls[index_a]; | |
9655 | ✗ | volk_32u_byteswappuppet_32u_u = get_machine()->volk_32u_byteswappuppet_32u_impls[index_u]; | |
9656 | |||
9657 | ✗ | assert(volk_32u_byteswappuppet_32u_a); | |
9658 | ✗ | assert(volk_32u_byteswappuppet_32u_u); | |
9659 | |||
9660 | ✗ | volk_32u_byteswappuppet_32u = &__volk_32u_byteswappuppet_32u_d; | |
9661 | ✗ | } | |
9662 | |||
9663 | ✗ | static inline void __volk_32u_byteswappuppet_32u_a(uint32_t* output, uint32_t* intsToSwap, unsigned int num_points) | |
9664 | { | ||
9665 | ✗ | __init_volk_32u_byteswappuppet_32u(); | |
9666 | ✗ | volk_32u_byteswappuppet_32u_a(output, intsToSwap, num_points); | |
9667 | ✗ | } | |
9668 | |||
9669 | ✗ | static inline void __volk_32u_byteswappuppet_32u_u(uint32_t* output, uint32_t* intsToSwap, unsigned int num_points) | |
9670 | { | ||
9671 | ✗ | __init_volk_32u_byteswappuppet_32u(); | |
9672 | ✗ | volk_32u_byteswappuppet_32u_u(output, intsToSwap, num_points); | |
9673 | ✗ | } | |
9674 | |||
9675 | ✗ | static inline void __volk_32u_byteswappuppet_32u(uint32_t* output, uint32_t* intsToSwap, unsigned int num_points) | |
9676 | { | ||
9677 | ✗ | __init_volk_32u_byteswappuppet_32u(); | |
9678 | ✗ | volk_32u_byteswappuppet_32u(output, intsToSwap, num_points); | |
9679 | ✗ | } | |
9680 | |||
9681 | p_32u_byteswappuppet_32u volk_32u_byteswappuppet_32u_a = &__volk_32u_byteswappuppet_32u_a; | ||
9682 | p_32u_byteswappuppet_32u volk_32u_byteswappuppet_32u_u = &__volk_32u_byteswappuppet_32u_u; | ||
9683 | p_32u_byteswappuppet_32u volk_32u_byteswappuppet_32u = &__volk_32u_byteswappuppet_32u; | ||
9684 | |||
9685 | 10 | void volk_32u_byteswappuppet_32u_manual(uint32_t* output, uint32_t* intsToSwap, unsigned int num_points, const char* impl_name) | |
9686 | { | ||
9687 | 10 | const int index = volk_get_index( | |
9688 | 10 | get_machine()->volk_32u_byteswappuppet_32u_impl_names, | |
9689 | 10 | get_machine()->volk_32u_byteswappuppet_32u_n_impls, | |
9690 | impl_name | ||
9691 | ); | ||
9692 | 10 | get_machine()->volk_32u_byteswappuppet_32u_impls[index]( | |
9693 | output, intsToSwap, num_points | ||
9694 | ); | ||
9695 | 10 | } | |
9696 | |||
9697 | 282 | volk_func_desc_t volk_32u_byteswappuppet_32u_get_func_desc(void) { | |
9698 | 282 | const char **impl_names = get_machine()->volk_32u_byteswappuppet_32u_impl_names; | |
9699 | 282 | const int *impl_deps = get_machine()->volk_32u_byteswappuppet_32u_impl_deps; | |
9700 | 282 | const bool *alignment = get_machine()->volk_32u_byteswappuppet_32u_impl_alignment; | |
9701 | 282 | const size_t n_impls = get_machine()->volk_32u_byteswappuppet_32u_n_impls; | |
9702 | 282 | volk_func_desc_t desc = { | |
9703 | impl_names, | ||
9704 | impl_deps, | ||
9705 | alignment, | ||
9706 | n_impls | ||
9707 | }; | ||
9708 | 282 | return desc; | |
9709 | } | ||
9710 | |||
9711 | |||
9712 | |||
9713 | ✗ | static inline void __volk_32u_popcnt_d(uint32_t* ret, const uint32_t value) | |
9714 | { | ||
9715 | |||
9716 | ✗ | if (volk_is_aligned( | |
9717 | VOLK_OR_PTR(ret, | ||
9718 | 0) | ||
9719 | )){ | ||
9720 | ✗ | volk_32u_popcnt_a(ret, value); | |
9721 | } | ||
9722 | else{ | ||
9723 | ✗ | volk_32u_popcnt_u(ret, value); | |
9724 | } | ||
9725 | ✗ | } | |
9726 | |||
9727 | ✗ | static inline void __init_volk_32u_popcnt(void) | |
9728 | { | ||
9729 | ✗ | const char *name = get_machine()->volk_32u_popcnt_name; | |
9730 | ✗ | const char **impl_names = get_machine()->volk_32u_popcnt_impl_names; | |
9731 | ✗ | const int *impl_deps = get_machine()->volk_32u_popcnt_impl_deps; | |
9732 | ✗ | const bool *alignment = get_machine()->volk_32u_popcnt_impl_alignment; | |
9733 | ✗ | const size_t n_impls = get_machine()->volk_32u_popcnt_n_impls; | |
9734 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
9735 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
9736 | ✗ | volk_32u_popcnt_a = get_machine()->volk_32u_popcnt_impls[index_a]; | |
9737 | ✗ | volk_32u_popcnt_u = get_machine()->volk_32u_popcnt_impls[index_u]; | |
9738 | |||
9739 | ✗ | assert(volk_32u_popcnt_a); | |
9740 | ✗ | assert(volk_32u_popcnt_u); | |
9741 | |||
9742 | ✗ | volk_32u_popcnt = &__volk_32u_popcnt_d; | |
9743 | ✗ | } | |
9744 | |||
9745 | ✗ | static inline void __volk_32u_popcnt_a(uint32_t* ret, const uint32_t value) | |
9746 | { | ||
9747 | ✗ | __init_volk_32u_popcnt(); | |
9748 | ✗ | volk_32u_popcnt_a(ret, value); | |
9749 | ✗ | } | |
9750 | |||
9751 | ✗ | static inline void __volk_32u_popcnt_u(uint32_t* ret, const uint32_t value) | |
9752 | { | ||
9753 | ✗ | __init_volk_32u_popcnt(); | |
9754 | ✗ | volk_32u_popcnt_u(ret, value); | |
9755 | ✗ | } | |
9756 | |||
9757 | ✗ | static inline void __volk_32u_popcnt(uint32_t* ret, const uint32_t value) | |
9758 | { | ||
9759 | ✗ | __init_volk_32u_popcnt(); | |
9760 | ✗ | volk_32u_popcnt(ret, value); | |
9761 | ✗ | } | |
9762 | |||
9763 | p_32u_popcnt volk_32u_popcnt_a = &__volk_32u_popcnt_a; | ||
9764 | p_32u_popcnt volk_32u_popcnt_u = &__volk_32u_popcnt_u; | ||
9765 | p_32u_popcnt volk_32u_popcnt = &__volk_32u_popcnt; | ||
9766 | |||
9767 | ✗ | void volk_32u_popcnt_manual(uint32_t* ret, const uint32_t value, const char* impl_name) | |
9768 | { | ||
9769 | ✗ | const int index = volk_get_index( | |
9770 | ✗ | get_machine()->volk_32u_popcnt_impl_names, | |
9771 | ✗ | get_machine()->volk_32u_popcnt_n_impls, | |
9772 | impl_name | ||
9773 | ); | ||
9774 | ✗ | get_machine()->volk_32u_popcnt_impls[index]( | |
9775 | ret, value | ||
9776 | ); | ||
9777 | ✗ | } | |
9778 | |||
9779 | ✗ | volk_func_desc_t volk_32u_popcnt_get_func_desc(void) { | |
9780 | ✗ | const char **impl_names = get_machine()->volk_32u_popcnt_impl_names; | |
9781 | ✗ | const int *impl_deps = get_machine()->volk_32u_popcnt_impl_deps; | |
9782 | ✗ | const bool *alignment = get_machine()->volk_32u_popcnt_impl_alignment; | |
9783 | ✗ | const size_t n_impls = get_machine()->volk_32u_popcnt_n_impls; | |
9784 | ✗ | volk_func_desc_t desc = { | |
9785 | impl_names, | ||
9786 | impl_deps, | ||
9787 | alignment, | ||
9788 | n_impls | ||
9789 | }; | ||
9790 | ✗ | return desc; | |
9791 | } | ||
9792 | |||
9793 | |||
9794 | |||
9795 | ✗ | static inline void __volk_32u_popcntpuppet_32u_d(uint32_t* outVector, const uint32_t* inVector, unsigned int num_points) | |
9796 | { | ||
9797 | |||
9798 | ✗ | if (volk_is_aligned( | |
9799 | ✗ | VOLK_OR_PTR(outVector, | |
9800 | VOLK_OR_PTR(inVector, | ||
9801 | 0)) | ||
9802 | )){ | ||
9803 | ✗ | volk_32u_popcntpuppet_32u_a(outVector, inVector, num_points); | |
9804 | } | ||
9805 | else{ | ||
9806 | ✗ | volk_32u_popcntpuppet_32u_u(outVector, inVector, num_points); | |
9807 | } | ||
9808 | ✗ | } | |
9809 | |||
9810 | ✗ | static inline void __init_volk_32u_popcntpuppet_32u(void) | |
9811 | { | ||
9812 | ✗ | const char *name = get_machine()->volk_32u_popcntpuppet_32u_name; | |
9813 | ✗ | const char **impl_names = get_machine()->volk_32u_popcntpuppet_32u_impl_names; | |
9814 | ✗ | const int *impl_deps = get_machine()->volk_32u_popcntpuppet_32u_impl_deps; | |
9815 | ✗ | const bool *alignment = get_machine()->volk_32u_popcntpuppet_32u_impl_alignment; | |
9816 | ✗ | const size_t n_impls = get_machine()->volk_32u_popcntpuppet_32u_n_impls; | |
9817 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
9818 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
9819 | ✗ | volk_32u_popcntpuppet_32u_a = get_machine()->volk_32u_popcntpuppet_32u_impls[index_a]; | |
9820 | ✗ | volk_32u_popcntpuppet_32u_u = get_machine()->volk_32u_popcntpuppet_32u_impls[index_u]; | |
9821 | |||
9822 | ✗ | assert(volk_32u_popcntpuppet_32u_a); | |
9823 | ✗ | assert(volk_32u_popcntpuppet_32u_u); | |
9824 | |||
9825 | ✗ | volk_32u_popcntpuppet_32u = &__volk_32u_popcntpuppet_32u_d; | |
9826 | ✗ | } | |
9827 | |||
9828 | ✗ | static inline void __volk_32u_popcntpuppet_32u_a(uint32_t* outVector, const uint32_t* inVector, unsigned int num_points) | |
9829 | { | ||
9830 | ✗ | __init_volk_32u_popcntpuppet_32u(); | |
9831 | ✗ | volk_32u_popcntpuppet_32u_a(outVector, inVector, num_points); | |
9832 | ✗ | } | |
9833 | |||
9834 | ✗ | static inline void __volk_32u_popcntpuppet_32u_u(uint32_t* outVector, const uint32_t* inVector, unsigned int num_points) | |
9835 | { | ||
9836 | ✗ | __init_volk_32u_popcntpuppet_32u(); | |
9837 | ✗ | volk_32u_popcntpuppet_32u_u(outVector, inVector, num_points); | |
9838 | ✗ | } | |
9839 | |||
9840 | ✗ | static inline void __volk_32u_popcntpuppet_32u(uint32_t* outVector, const uint32_t* inVector, unsigned int num_points) | |
9841 | { | ||
9842 | ✗ | __init_volk_32u_popcntpuppet_32u(); | |
9843 | ✗ | volk_32u_popcntpuppet_32u(outVector, inVector, num_points); | |
9844 | ✗ | } | |
9845 | |||
9846 | p_32u_popcntpuppet_32u volk_32u_popcntpuppet_32u_a = &__volk_32u_popcntpuppet_32u_a; | ||
9847 | p_32u_popcntpuppet_32u volk_32u_popcntpuppet_32u_u = &__volk_32u_popcntpuppet_32u_u; | ||
9848 | p_32u_popcntpuppet_32u volk_32u_popcntpuppet_32u = &__volk_32u_popcntpuppet_32u; | ||
9849 | |||
9850 | 4 | void volk_32u_popcntpuppet_32u_manual(uint32_t* outVector, const uint32_t* inVector, unsigned int num_points, const char* impl_name) | |
9851 | { | ||
9852 | 4 | const int index = volk_get_index( | |
9853 | 4 | get_machine()->volk_32u_popcntpuppet_32u_impl_names, | |
9854 | 4 | get_machine()->volk_32u_popcntpuppet_32u_n_impls, | |
9855 | impl_name | ||
9856 | ); | ||
9857 | 4 | get_machine()->volk_32u_popcntpuppet_32u_impls[index]( | |
9858 | outVector, inVector, num_points | ||
9859 | ); | ||
9860 | 4 | } | |
9861 | |||
9862 | 282 | volk_func_desc_t volk_32u_popcntpuppet_32u_get_func_desc(void) { | |
9863 | 282 | const char **impl_names = get_machine()->volk_32u_popcntpuppet_32u_impl_names; | |
9864 | 282 | const int *impl_deps = get_machine()->volk_32u_popcntpuppet_32u_impl_deps; | |
9865 | 282 | const bool *alignment = get_machine()->volk_32u_popcntpuppet_32u_impl_alignment; | |
9866 | 282 | const size_t n_impls = get_machine()->volk_32u_popcntpuppet_32u_n_impls; | |
9867 | 282 | volk_func_desc_t desc = { | |
9868 | impl_names, | ||
9869 | impl_deps, | ||
9870 | alignment, | ||
9871 | n_impls | ||
9872 | }; | ||
9873 | 282 | return desc; | |
9874 | } | ||
9875 | |||
9876 | |||
9877 | |||
9878 | ✗ | static inline void __volk_32u_reverse_32u_d(uint32_t* out, const uint32_t* in, unsigned int num_points) | |
9879 | { | ||
9880 | |||
9881 | ✗ | if (volk_is_aligned( | |
9882 | ✗ | VOLK_OR_PTR(out, | |
9883 | VOLK_OR_PTR(in, | ||
9884 | 0)) | ||
9885 | )){ | ||
9886 | ✗ | volk_32u_reverse_32u_a(out, in, num_points); | |
9887 | } | ||
9888 | else{ | ||
9889 | ✗ | volk_32u_reverse_32u_u(out, in, num_points); | |
9890 | } | ||
9891 | ✗ | } | |
9892 | |||
9893 | ✗ | static inline void __init_volk_32u_reverse_32u(void) | |
9894 | { | ||
9895 | ✗ | const char *name = get_machine()->volk_32u_reverse_32u_name; | |
9896 | ✗ | const char **impl_names = get_machine()->volk_32u_reverse_32u_impl_names; | |
9897 | ✗ | const int *impl_deps = get_machine()->volk_32u_reverse_32u_impl_deps; | |
9898 | ✗ | const bool *alignment = get_machine()->volk_32u_reverse_32u_impl_alignment; | |
9899 | ✗ | const size_t n_impls = get_machine()->volk_32u_reverse_32u_n_impls; | |
9900 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
9901 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
9902 | ✗ | volk_32u_reverse_32u_a = get_machine()->volk_32u_reverse_32u_impls[index_a]; | |
9903 | ✗ | volk_32u_reverse_32u_u = get_machine()->volk_32u_reverse_32u_impls[index_u]; | |
9904 | |||
9905 | ✗ | assert(volk_32u_reverse_32u_a); | |
9906 | ✗ | assert(volk_32u_reverse_32u_u); | |
9907 | |||
9908 | ✗ | volk_32u_reverse_32u = &__volk_32u_reverse_32u_d; | |
9909 | ✗ | } | |
9910 | |||
9911 | ✗ | static inline void __volk_32u_reverse_32u_a(uint32_t* out, const uint32_t* in, unsigned int num_points) | |
9912 | { | ||
9913 | ✗ | __init_volk_32u_reverse_32u(); | |
9914 | ✗ | volk_32u_reverse_32u_a(out, in, num_points); | |
9915 | ✗ | } | |
9916 | |||
9917 | ✗ | static inline void __volk_32u_reverse_32u_u(uint32_t* out, const uint32_t* in, unsigned int num_points) | |
9918 | { | ||
9919 | ✗ | __init_volk_32u_reverse_32u(); | |
9920 | ✗ | volk_32u_reverse_32u_u(out, in, num_points); | |
9921 | ✗ | } | |
9922 | |||
9923 | ✗ | static inline void __volk_32u_reverse_32u(uint32_t* out, const uint32_t* in, unsigned int num_points) | |
9924 | { | ||
9925 | ✗ | __init_volk_32u_reverse_32u(); | |
9926 | ✗ | volk_32u_reverse_32u(out, in, num_points); | |
9927 | ✗ | } | |
9928 | |||
9929 | p_32u_reverse_32u volk_32u_reverse_32u_a = &__volk_32u_reverse_32u_a; | ||
9930 | p_32u_reverse_32u volk_32u_reverse_32u_u = &__volk_32u_reverse_32u_u; | ||
9931 | p_32u_reverse_32u volk_32u_reverse_32u = &__volk_32u_reverse_32u; | ||
9932 | |||
9933 | 14 | void volk_32u_reverse_32u_manual(uint32_t* out, const uint32_t* in, unsigned int num_points, const char* impl_name) | |
9934 | { | ||
9935 | 14 | const int index = volk_get_index( | |
9936 | 14 | get_machine()->volk_32u_reverse_32u_impl_names, | |
9937 | 14 | get_machine()->volk_32u_reverse_32u_n_impls, | |
9938 | impl_name | ||
9939 | ); | ||
9940 | 14 | get_machine()->volk_32u_reverse_32u_impls[index]( | |
9941 | out, in, num_points | ||
9942 | ); | ||
9943 | 14 | } | |
9944 | |||
9945 | 282 | volk_func_desc_t volk_32u_reverse_32u_get_func_desc(void) { | |
9946 | 282 | const char **impl_names = get_machine()->volk_32u_reverse_32u_impl_names; | |
9947 | 282 | const int *impl_deps = get_machine()->volk_32u_reverse_32u_impl_deps; | |
9948 | 282 | const bool *alignment = get_machine()->volk_32u_reverse_32u_impl_alignment; | |
9949 | 282 | const size_t n_impls = get_machine()->volk_32u_reverse_32u_n_impls; | |
9950 | 282 | volk_func_desc_t desc = { | |
9951 | impl_names, | ||
9952 | impl_deps, | ||
9953 | alignment, | ||
9954 | n_impls | ||
9955 | }; | ||
9956 | 282 | return desc; | |
9957 | } | ||
9958 | |||
9959 | |||
9960 | |||
9961 | ✗ | static inline void __volk_64f_convert_32f_d(float* outputVector, const double* inputVector, unsigned int num_points) | |
9962 | { | ||
9963 | |||
9964 | ✗ | if (volk_is_aligned( | |
9965 | ✗ | VOLK_OR_PTR(outputVector, | |
9966 | VOLK_OR_PTR(inputVector, | ||
9967 | 0)) | ||
9968 | )){ | ||
9969 | ✗ | volk_64f_convert_32f_a(outputVector, inputVector, num_points); | |
9970 | } | ||
9971 | else{ | ||
9972 | ✗ | volk_64f_convert_32f_u(outputVector, inputVector, num_points); | |
9973 | } | ||
9974 | ✗ | } | |
9975 | |||
9976 | ✗ | static inline void __init_volk_64f_convert_32f(void) | |
9977 | { | ||
9978 | ✗ | const char *name = get_machine()->volk_64f_convert_32f_name; | |
9979 | ✗ | const char **impl_names = get_machine()->volk_64f_convert_32f_impl_names; | |
9980 | ✗ | const int *impl_deps = get_machine()->volk_64f_convert_32f_impl_deps; | |
9981 | ✗ | const bool *alignment = get_machine()->volk_64f_convert_32f_impl_alignment; | |
9982 | ✗ | const size_t n_impls = get_machine()->volk_64f_convert_32f_n_impls; | |
9983 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
9984 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
9985 | ✗ | volk_64f_convert_32f_a = get_machine()->volk_64f_convert_32f_impls[index_a]; | |
9986 | ✗ | volk_64f_convert_32f_u = get_machine()->volk_64f_convert_32f_impls[index_u]; | |
9987 | |||
9988 | ✗ | assert(volk_64f_convert_32f_a); | |
9989 | ✗ | assert(volk_64f_convert_32f_u); | |
9990 | |||
9991 | ✗ | volk_64f_convert_32f = &__volk_64f_convert_32f_d; | |
9992 | ✗ | } | |
9993 | |||
9994 | ✗ | static inline void __volk_64f_convert_32f_a(float* outputVector, const double* inputVector, unsigned int num_points) | |
9995 | { | ||
9996 | ✗ | __init_volk_64f_convert_32f(); | |
9997 | ✗ | volk_64f_convert_32f_a(outputVector, inputVector, num_points); | |
9998 | ✗ | } | |
9999 | |||
10000 | ✗ | static inline void __volk_64f_convert_32f_u(float* outputVector, const double* inputVector, unsigned int num_points) | |
10001 | { | ||
10002 | ✗ | __init_volk_64f_convert_32f(); | |
10003 | ✗ | volk_64f_convert_32f_u(outputVector, inputVector, num_points); | |
10004 | ✗ | } | |
10005 | |||
10006 | ✗ | static inline void __volk_64f_convert_32f(float* outputVector, const double* inputVector, unsigned int num_points) | |
10007 | { | ||
10008 | ✗ | __init_volk_64f_convert_32f(); | |
10009 | ✗ | volk_64f_convert_32f(outputVector, inputVector, num_points); | |
10010 | ✗ | } | |
10011 | |||
10012 | p_64f_convert_32f volk_64f_convert_32f_a = &__volk_64f_convert_32f_a; | ||
10013 | p_64f_convert_32f volk_64f_convert_32f_u = &__volk_64f_convert_32f_u; | ||
10014 | p_64f_convert_32f volk_64f_convert_32f = &__volk_64f_convert_32f; | ||
10015 | |||
10016 | 12 | void volk_64f_convert_32f_manual(float* outputVector, const double* inputVector, unsigned int num_points, const char* impl_name) | |
10017 | { | ||
10018 | 12 | const int index = volk_get_index( | |
10019 | 12 | get_machine()->volk_64f_convert_32f_impl_names, | |
10020 | 12 | get_machine()->volk_64f_convert_32f_n_impls, | |
10021 | impl_name | ||
10022 | ); | ||
10023 | 12 | get_machine()->volk_64f_convert_32f_impls[index]( | |
10024 | outputVector, inputVector, num_points | ||
10025 | ); | ||
10026 | 12 | } | |
10027 | |||
10028 | 282 | volk_func_desc_t volk_64f_convert_32f_get_func_desc(void) { | |
10029 | 282 | const char **impl_names = get_machine()->volk_64f_convert_32f_impl_names; | |
10030 | 282 | const int *impl_deps = get_machine()->volk_64f_convert_32f_impl_deps; | |
10031 | 282 | const bool *alignment = get_machine()->volk_64f_convert_32f_impl_alignment; | |
10032 | 282 | const size_t n_impls = get_machine()->volk_64f_convert_32f_n_impls; | |
10033 | 282 | volk_func_desc_t desc = { | |
10034 | impl_names, | ||
10035 | impl_deps, | ||
10036 | alignment, | ||
10037 | n_impls | ||
10038 | }; | ||
10039 | 282 | return desc; | |
10040 | } | ||
10041 | |||
10042 | |||
10043 | |||
10044 | ✗ | static inline void __volk_64f_x2_add_64f_d(double* cVector, const double* aVector, const double* bVector, unsigned int num_points) | |
10045 | { | ||
10046 | |||
10047 | ✗ | if (volk_is_aligned( | |
10048 | ✗ | VOLK_OR_PTR(cVector, | |
10049 | VOLK_OR_PTR(aVector, | ||
10050 | VOLK_OR_PTR(bVector, | ||
10051 | 0))) | ||
10052 | )){ | ||
10053 | ✗ | volk_64f_x2_add_64f_a(cVector, aVector, bVector, num_points); | |
10054 | } | ||
10055 | else{ | ||
10056 | ✗ | volk_64f_x2_add_64f_u(cVector, aVector, bVector, num_points); | |
10057 | } | ||
10058 | ✗ | } | |
10059 | |||
10060 | ✗ | static inline void __init_volk_64f_x2_add_64f(void) | |
10061 | { | ||
10062 | ✗ | const char *name = get_machine()->volk_64f_x2_add_64f_name; | |
10063 | ✗ | const char **impl_names = get_machine()->volk_64f_x2_add_64f_impl_names; | |
10064 | ✗ | const int *impl_deps = get_machine()->volk_64f_x2_add_64f_impl_deps; | |
10065 | ✗ | const bool *alignment = get_machine()->volk_64f_x2_add_64f_impl_alignment; | |
10066 | ✗ | const size_t n_impls = get_machine()->volk_64f_x2_add_64f_n_impls; | |
10067 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
10068 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
10069 | ✗ | volk_64f_x2_add_64f_a = get_machine()->volk_64f_x2_add_64f_impls[index_a]; | |
10070 | ✗ | volk_64f_x2_add_64f_u = get_machine()->volk_64f_x2_add_64f_impls[index_u]; | |
10071 | |||
10072 | ✗ | assert(volk_64f_x2_add_64f_a); | |
10073 | ✗ | assert(volk_64f_x2_add_64f_u); | |
10074 | |||
10075 | ✗ | volk_64f_x2_add_64f = &__volk_64f_x2_add_64f_d; | |
10076 | ✗ | } | |
10077 | |||
10078 | ✗ | static inline void __volk_64f_x2_add_64f_a(double* cVector, const double* aVector, const double* bVector, unsigned int num_points) | |
10079 | { | ||
10080 | ✗ | __init_volk_64f_x2_add_64f(); | |
10081 | ✗ | volk_64f_x2_add_64f_a(cVector, aVector, bVector, num_points); | |
10082 | ✗ | } | |
10083 | |||
10084 | ✗ | static inline void __volk_64f_x2_add_64f_u(double* cVector, const double* aVector, const double* bVector, unsigned int num_points) | |
10085 | { | ||
10086 | ✗ | __init_volk_64f_x2_add_64f(); | |
10087 | ✗ | volk_64f_x2_add_64f_u(cVector, aVector, bVector, num_points); | |
10088 | ✗ | } | |
10089 | |||
10090 | ✗ | static inline void __volk_64f_x2_add_64f(double* cVector, const double* aVector, const double* bVector, unsigned int num_points) | |
10091 | { | ||
10092 | ✗ | __init_volk_64f_x2_add_64f(); | |
10093 | ✗ | volk_64f_x2_add_64f(cVector, aVector, bVector, num_points); | |
10094 | ✗ | } | |
10095 | |||
10096 | p_64f_x2_add_64f volk_64f_x2_add_64f_a = &__volk_64f_x2_add_64f_a; | ||
10097 | p_64f_x2_add_64f volk_64f_x2_add_64f_u = &__volk_64f_x2_add_64f_u; | ||
10098 | p_64f_x2_add_64f volk_64f_x2_add_64f = &__volk_64f_x2_add_64f; | ||
10099 | |||
10100 | 10 | void volk_64f_x2_add_64f_manual(double* cVector, const double* aVector, const double* bVector, unsigned int num_points, const char* impl_name) | |
10101 | { | ||
10102 | 10 | const int index = volk_get_index( | |
10103 | 10 | get_machine()->volk_64f_x2_add_64f_impl_names, | |
10104 | 10 | get_machine()->volk_64f_x2_add_64f_n_impls, | |
10105 | impl_name | ||
10106 | ); | ||
10107 | 10 | get_machine()->volk_64f_x2_add_64f_impls[index]( | |
10108 | cVector, aVector, bVector, num_points | ||
10109 | ); | ||
10110 | 10 | } | |
10111 | |||
10112 | 282 | volk_func_desc_t volk_64f_x2_add_64f_get_func_desc(void) { | |
10113 | 282 | const char **impl_names = get_machine()->volk_64f_x2_add_64f_impl_names; | |
10114 | 282 | const int *impl_deps = get_machine()->volk_64f_x2_add_64f_impl_deps; | |
10115 | 282 | const bool *alignment = get_machine()->volk_64f_x2_add_64f_impl_alignment; | |
10116 | 282 | const size_t n_impls = get_machine()->volk_64f_x2_add_64f_n_impls; | |
10117 | 282 | volk_func_desc_t desc = { | |
10118 | impl_names, | ||
10119 | impl_deps, | ||
10120 | alignment, | ||
10121 | n_impls | ||
10122 | }; | ||
10123 | 282 | return desc; | |
10124 | } | ||
10125 | |||
10126 | |||
10127 | |||
10128 | ✗ | static inline void __volk_64f_x2_max_64f_d(double* cVector, const double* aVector, const double* bVector, unsigned int num_points) | |
10129 | { | ||
10130 | |||
10131 | ✗ | if (volk_is_aligned( | |
10132 | ✗ | VOLK_OR_PTR(cVector, | |
10133 | VOLK_OR_PTR(aVector, | ||
10134 | VOLK_OR_PTR(bVector, | ||
10135 | 0))) | ||
10136 | )){ | ||
10137 | ✗ | volk_64f_x2_max_64f_a(cVector, aVector, bVector, num_points); | |
10138 | } | ||
10139 | else{ | ||
10140 | ✗ | volk_64f_x2_max_64f_u(cVector, aVector, bVector, num_points); | |
10141 | } | ||
10142 | ✗ | } | |
10143 | |||
10144 | ✗ | static inline void __init_volk_64f_x2_max_64f(void) | |
10145 | { | ||
10146 | ✗ | const char *name = get_machine()->volk_64f_x2_max_64f_name; | |
10147 | ✗ | const char **impl_names = get_machine()->volk_64f_x2_max_64f_impl_names; | |
10148 | ✗ | const int *impl_deps = get_machine()->volk_64f_x2_max_64f_impl_deps; | |
10149 | ✗ | const bool *alignment = get_machine()->volk_64f_x2_max_64f_impl_alignment; | |
10150 | ✗ | const size_t n_impls = get_machine()->volk_64f_x2_max_64f_n_impls; | |
10151 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
10152 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
10153 | ✗ | volk_64f_x2_max_64f_a = get_machine()->volk_64f_x2_max_64f_impls[index_a]; | |
10154 | ✗ | volk_64f_x2_max_64f_u = get_machine()->volk_64f_x2_max_64f_impls[index_u]; | |
10155 | |||
10156 | ✗ | assert(volk_64f_x2_max_64f_a); | |
10157 | ✗ | assert(volk_64f_x2_max_64f_u); | |
10158 | |||
10159 | ✗ | volk_64f_x2_max_64f = &__volk_64f_x2_max_64f_d; | |
10160 | ✗ | } | |
10161 | |||
10162 | ✗ | static inline void __volk_64f_x2_max_64f_a(double* cVector, const double* aVector, const double* bVector, unsigned int num_points) | |
10163 | { | ||
10164 | ✗ | __init_volk_64f_x2_max_64f(); | |
10165 | ✗ | volk_64f_x2_max_64f_a(cVector, aVector, bVector, num_points); | |
10166 | ✗ | } | |
10167 | |||
10168 | ✗ | static inline void __volk_64f_x2_max_64f_u(double* cVector, const double* aVector, const double* bVector, unsigned int num_points) | |
10169 | { | ||
10170 | ✗ | __init_volk_64f_x2_max_64f(); | |
10171 | ✗ | volk_64f_x2_max_64f_u(cVector, aVector, bVector, num_points); | |
10172 | ✗ | } | |
10173 | |||
10174 | ✗ | static inline void __volk_64f_x2_max_64f(double* cVector, const double* aVector, const double* bVector, unsigned int num_points) | |
10175 | { | ||
10176 | ✗ | __init_volk_64f_x2_max_64f(); | |
10177 | ✗ | volk_64f_x2_max_64f(cVector, aVector, bVector, num_points); | |
10178 | ✗ | } | |
10179 | |||
10180 | p_64f_x2_max_64f volk_64f_x2_max_64f_a = &__volk_64f_x2_max_64f_a; | ||
10181 | p_64f_x2_max_64f volk_64f_x2_max_64f_u = &__volk_64f_x2_max_64f_u; | ||
10182 | p_64f_x2_max_64f volk_64f_x2_max_64f = &__volk_64f_x2_max_64f; | ||
10183 | |||
10184 | 8 | void volk_64f_x2_max_64f_manual(double* cVector, const double* aVector, const double* bVector, unsigned int num_points, const char* impl_name) | |
10185 | { | ||
10186 | 8 | const int index = volk_get_index( | |
10187 | 8 | get_machine()->volk_64f_x2_max_64f_impl_names, | |
10188 | 8 | get_machine()->volk_64f_x2_max_64f_n_impls, | |
10189 | impl_name | ||
10190 | ); | ||
10191 | 8 | get_machine()->volk_64f_x2_max_64f_impls[index]( | |
10192 | cVector, aVector, bVector, num_points | ||
10193 | ); | ||
10194 | 8 | } | |
10195 | |||
10196 | 282 | volk_func_desc_t volk_64f_x2_max_64f_get_func_desc(void) { | |
10197 | 282 | const char **impl_names = get_machine()->volk_64f_x2_max_64f_impl_names; | |
10198 | 282 | const int *impl_deps = get_machine()->volk_64f_x2_max_64f_impl_deps; | |
10199 | 282 | const bool *alignment = get_machine()->volk_64f_x2_max_64f_impl_alignment; | |
10200 | 282 | const size_t n_impls = get_machine()->volk_64f_x2_max_64f_n_impls; | |
10201 | 282 | volk_func_desc_t desc = { | |
10202 | impl_names, | ||
10203 | impl_deps, | ||
10204 | alignment, | ||
10205 | n_impls | ||
10206 | }; | ||
10207 | 282 | return desc; | |
10208 | } | ||
10209 | |||
10210 | |||
10211 | |||
10212 | ✗ | static inline void __volk_64f_x2_min_64f_d(double* cVector, const double* aVector, const double* bVector, unsigned int num_points) | |
10213 | { | ||
10214 | |||
10215 | ✗ | if (volk_is_aligned( | |
10216 | ✗ | VOLK_OR_PTR(cVector, | |
10217 | VOLK_OR_PTR(aVector, | ||
10218 | VOLK_OR_PTR(bVector, | ||
10219 | 0))) | ||
10220 | )){ | ||
10221 | ✗ | volk_64f_x2_min_64f_a(cVector, aVector, bVector, num_points); | |
10222 | } | ||
10223 | else{ | ||
10224 | ✗ | volk_64f_x2_min_64f_u(cVector, aVector, bVector, num_points); | |
10225 | } | ||
10226 | ✗ | } | |
10227 | |||
10228 | ✗ | static inline void __init_volk_64f_x2_min_64f(void) | |
10229 | { | ||
10230 | ✗ | const char *name = get_machine()->volk_64f_x2_min_64f_name; | |
10231 | ✗ | const char **impl_names = get_machine()->volk_64f_x2_min_64f_impl_names; | |
10232 | ✗ | const int *impl_deps = get_machine()->volk_64f_x2_min_64f_impl_deps; | |
10233 | ✗ | const bool *alignment = get_machine()->volk_64f_x2_min_64f_impl_alignment; | |
10234 | ✗ | const size_t n_impls = get_machine()->volk_64f_x2_min_64f_n_impls; | |
10235 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
10236 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
10237 | ✗ | volk_64f_x2_min_64f_a = get_machine()->volk_64f_x2_min_64f_impls[index_a]; | |
10238 | ✗ | volk_64f_x2_min_64f_u = get_machine()->volk_64f_x2_min_64f_impls[index_u]; | |
10239 | |||
10240 | ✗ | assert(volk_64f_x2_min_64f_a); | |
10241 | ✗ | assert(volk_64f_x2_min_64f_u); | |
10242 | |||
10243 | ✗ | volk_64f_x2_min_64f = &__volk_64f_x2_min_64f_d; | |
10244 | ✗ | } | |
10245 | |||
10246 | ✗ | static inline void __volk_64f_x2_min_64f_a(double* cVector, const double* aVector, const double* bVector, unsigned int num_points) | |
10247 | { | ||
10248 | ✗ | __init_volk_64f_x2_min_64f(); | |
10249 | ✗ | volk_64f_x2_min_64f_a(cVector, aVector, bVector, num_points); | |
10250 | ✗ | } | |
10251 | |||
10252 | ✗ | static inline void __volk_64f_x2_min_64f_u(double* cVector, const double* aVector, const double* bVector, unsigned int num_points) | |
10253 | { | ||
10254 | ✗ | __init_volk_64f_x2_min_64f(); | |
10255 | ✗ | volk_64f_x2_min_64f_u(cVector, aVector, bVector, num_points); | |
10256 | ✗ | } | |
10257 | |||
10258 | ✗ | static inline void __volk_64f_x2_min_64f(double* cVector, const double* aVector, const double* bVector, unsigned int num_points) | |
10259 | { | ||
10260 | ✗ | __init_volk_64f_x2_min_64f(); | |
10261 | ✗ | volk_64f_x2_min_64f(cVector, aVector, bVector, num_points); | |
10262 | ✗ | } | |
10263 | |||
10264 | p_64f_x2_min_64f volk_64f_x2_min_64f_a = &__volk_64f_x2_min_64f_a; | ||
10265 | p_64f_x2_min_64f volk_64f_x2_min_64f_u = &__volk_64f_x2_min_64f_u; | ||
10266 | p_64f_x2_min_64f volk_64f_x2_min_64f = &__volk_64f_x2_min_64f; | ||
10267 | |||
10268 | 8 | void volk_64f_x2_min_64f_manual(double* cVector, const double* aVector, const double* bVector, unsigned int num_points, const char* impl_name) | |
10269 | { | ||
10270 | 8 | const int index = volk_get_index( | |
10271 | 8 | get_machine()->volk_64f_x2_min_64f_impl_names, | |
10272 | 8 | get_machine()->volk_64f_x2_min_64f_n_impls, | |
10273 | impl_name | ||
10274 | ); | ||
10275 | 8 | get_machine()->volk_64f_x2_min_64f_impls[index]( | |
10276 | cVector, aVector, bVector, num_points | ||
10277 | ); | ||
10278 | 8 | } | |
10279 | |||
10280 | 282 | volk_func_desc_t volk_64f_x2_min_64f_get_func_desc(void) { | |
10281 | 282 | const char **impl_names = get_machine()->volk_64f_x2_min_64f_impl_names; | |
10282 | 282 | const int *impl_deps = get_machine()->volk_64f_x2_min_64f_impl_deps; | |
10283 | 282 | const bool *alignment = get_machine()->volk_64f_x2_min_64f_impl_alignment; | |
10284 | 282 | const size_t n_impls = get_machine()->volk_64f_x2_min_64f_n_impls; | |
10285 | 282 | volk_func_desc_t desc = { | |
10286 | impl_names, | ||
10287 | impl_deps, | ||
10288 | alignment, | ||
10289 | n_impls | ||
10290 | }; | ||
10291 | 282 | return desc; | |
10292 | } | ||
10293 | |||
10294 | |||
10295 | |||
10296 | ✗ | static inline void __volk_64f_x2_multiply_64f_d(double* cVector, const double* aVector, const double* bVector, unsigned int num_points) | |
10297 | { | ||
10298 | |||
10299 | ✗ | if (volk_is_aligned( | |
10300 | ✗ | VOLK_OR_PTR(cVector, | |
10301 | VOLK_OR_PTR(aVector, | ||
10302 | VOLK_OR_PTR(bVector, | ||
10303 | 0))) | ||
10304 | )){ | ||
10305 | ✗ | volk_64f_x2_multiply_64f_a(cVector, aVector, bVector, num_points); | |
10306 | } | ||
10307 | else{ | ||
10308 | ✗ | volk_64f_x2_multiply_64f_u(cVector, aVector, bVector, num_points); | |
10309 | } | ||
10310 | ✗ | } | |
10311 | |||
10312 | ✗ | static inline void __init_volk_64f_x2_multiply_64f(void) | |
10313 | { | ||
10314 | ✗ | const char *name = get_machine()->volk_64f_x2_multiply_64f_name; | |
10315 | ✗ | const char **impl_names = get_machine()->volk_64f_x2_multiply_64f_impl_names; | |
10316 | ✗ | const int *impl_deps = get_machine()->volk_64f_x2_multiply_64f_impl_deps; | |
10317 | ✗ | const bool *alignment = get_machine()->volk_64f_x2_multiply_64f_impl_alignment; | |
10318 | ✗ | const size_t n_impls = get_machine()->volk_64f_x2_multiply_64f_n_impls; | |
10319 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
10320 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
10321 | ✗ | volk_64f_x2_multiply_64f_a = get_machine()->volk_64f_x2_multiply_64f_impls[index_a]; | |
10322 | ✗ | volk_64f_x2_multiply_64f_u = get_machine()->volk_64f_x2_multiply_64f_impls[index_u]; | |
10323 | |||
10324 | ✗ | assert(volk_64f_x2_multiply_64f_a); | |
10325 | ✗ | assert(volk_64f_x2_multiply_64f_u); | |
10326 | |||
10327 | ✗ | volk_64f_x2_multiply_64f = &__volk_64f_x2_multiply_64f_d; | |
10328 | ✗ | } | |
10329 | |||
10330 | ✗ | static inline void __volk_64f_x2_multiply_64f_a(double* cVector, const double* aVector, const double* bVector, unsigned int num_points) | |
10331 | { | ||
10332 | ✗ | __init_volk_64f_x2_multiply_64f(); | |
10333 | ✗ | volk_64f_x2_multiply_64f_a(cVector, aVector, bVector, num_points); | |
10334 | ✗ | } | |
10335 | |||
10336 | ✗ | static inline void __volk_64f_x2_multiply_64f_u(double* cVector, const double* aVector, const double* bVector, unsigned int num_points) | |
10337 | { | ||
10338 | ✗ | __init_volk_64f_x2_multiply_64f(); | |
10339 | ✗ | volk_64f_x2_multiply_64f_u(cVector, aVector, bVector, num_points); | |
10340 | ✗ | } | |
10341 | |||
10342 | ✗ | static inline void __volk_64f_x2_multiply_64f(double* cVector, const double* aVector, const double* bVector, unsigned int num_points) | |
10343 | { | ||
10344 | ✗ | __init_volk_64f_x2_multiply_64f(); | |
10345 | ✗ | volk_64f_x2_multiply_64f(cVector, aVector, bVector, num_points); | |
10346 | ✗ | } | |
10347 | |||
10348 | p_64f_x2_multiply_64f volk_64f_x2_multiply_64f_a = &__volk_64f_x2_multiply_64f_a; | ||
10349 | p_64f_x2_multiply_64f volk_64f_x2_multiply_64f_u = &__volk_64f_x2_multiply_64f_u; | ||
10350 | p_64f_x2_multiply_64f volk_64f_x2_multiply_64f = &__volk_64f_x2_multiply_64f; | ||
10351 | |||
10352 | 10 | void volk_64f_x2_multiply_64f_manual(double* cVector, const double* aVector, const double* bVector, unsigned int num_points, const char* impl_name) | |
10353 | { | ||
10354 | 10 | const int index = volk_get_index( | |
10355 | 10 | get_machine()->volk_64f_x2_multiply_64f_impl_names, | |
10356 | 10 | get_machine()->volk_64f_x2_multiply_64f_n_impls, | |
10357 | impl_name | ||
10358 | ); | ||
10359 | 10 | get_machine()->volk_64f_x2_multiply_64f_impls[index]( | |
10360 | cVector, aVector, bVector, num_points | ||
10361 | ); | ||
10362 | 10 | } | |
10363 | |||
10364 | 282 | volk_func_desc_t volk_64f_x2_multiply_64f_get_func_desc(void) { | |
10365 | 282 | const char **impl_names = get_machine()->volk_64f_x2_multiply_64f_impl_names; | |
10366 | 282 | const int *impl_deps = get_machine()->volk_64f_x2_multiply_64f_impl_deps; | |
10367 | 282 | const bool *alignment = get_machine()->volk_64f_x2_multiply_64f_impl_alignment; | |
10368 | 282 | const size_t n_impls = get_machine()->volk_64f_x2_multiply_64f_n_impls; | |
10369 | 282 | volk_func_desc_t desc = { | |
10370 | impl_names, | ||
10371 | impl_deps, | ||
10372 | alignment, | ||
10373 | n_impls | ||
10374 | }; | ||
10375 | 282 | return desc; | |
10376 | } | ||
10377 | |||
10378 | |||
10379 | |||
10380 | ✗ | static inline void __volk_64u_byteswap_d(uint64_t* intsToSwap, unsigned int num_points) | |
10381 | { | ||
10382 | |||
10383 | ✗ | if (volk_is_aligned( | |
10384 | VOLK_OR_PTR(intsToSwap, | ||
10385 | 0) | ||
10386 | )){ | ||
10387 | ✗ | volk_64u_byteswap_a(intsToSwap, num_points); | |
10388 | } | ||
10389 | else{ | ||
10390 | ✗ | volk_64u_byteswap_u(intsToSwap, num_points); | |
10391 | } | ||
10392 | ✗ | } | |
10393 | |||
10394 | ✗ | static inline void __init_volk_64u_byteswap(void) | |
10395 | { | ||
10396 | ✗ | const char *name = get_machine()->volk_64u_byteswap_name; | |
10397 | ✗ | const char **impl_names = get_machine()->volk_64u_byteswap_impl_names; | |
10398 | ✗ | const int *impl_deps = get_machine()->volk_64u_byteswap_impl_deps; | |
10399 | ✗ | const bool *alignment = get_machine()->volk_64u_byteswap_impl_alignment; | |
10400 | ✗ | const size_t n_impls = get_machine()->volk_64u_byteswap_n_impls; | |
10401 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
10402 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
10403 | ✗ | volk_64u_byteswap_a = get_machine()->volk_64u_byteswap_impls[index_a]; | |
10404 | ✗ | volk_64u_byteswap_u = get_machine()->volk_64u_byteswap_impls[index_u]; | |
10405 | |||
10406 | ✗ | assert(volk_64u_byteswap_a); | |
10407 | ✗ | assert(volk_64u_byteswap_u); | |
10408 | |||
10409 | ✗ | volk_64u_byteswap = &__volk_64u_byteswap_d; | |
10410 | ✗ | } | |
10411 | |||
10412 | ✗ | static inline void __volk_64u_byteswap_a(uint64_t* intsToSwap, unsigned int num_points) | |
10413 | { | ||
10414 | ✗ | __init_volk_64u_byteswap(); | |
10415 | ✗ | volk_64u_byteswap_a(intsToSwap, num_points); | |
10416 | ✗ | } | |
10417 | |||
10418 | ✗ | static inline void __volk_64u_byteswap_u(uint64_t* intsToSwap, unsigned int num_points) | |
10419 | { | ||
10420 | ✗ | __init_volk_64u_byteswap(); | |
10421 | ✗ | volk_64u_byteswap_u(intsToSwap, num_points); | |
10422 | ✗ | } | |
10423 | |||
10424 | ✗ | static inline void __volk_64u_byteswap(uint64_t* intsToSwap, unsigned int num_points) | |
10425 | { | ||
10426 | ✗ | __init_volk_64u_byteswap(); | |
10427 | ✗ | volk_64u_byteswap(intsToSwap, num_points); | |
10428 | ✗ | } | |
10429 | |||
10430 | p_64u_byteswap volk_64u_byteswap_a = &__volk_64u_byteswap_a; | ||
10431 | p_64u_byteswap volk_64u_byteswap_u = &__volk_64u_byteswap_u; | ||
10432 | p_64u_byteswap volk_64u_byteswap = &__volk_64u_byteswap; | ||
10433 | |||
10434 | ✗ | void volk_64u_byteswap_manual(uint64_t* intsToSwap, unsigned int num_points, const char* impl_name) | |
10435 | { | ||
10436 | ✗ | const int index = volk_get_index( | |
10437 | ✗ | get_machine()->volk_64u_byteswap_impl_names, | |
10438 | ✗ | get_machine()->volk_64u_byteswap_n_impls, | |
10439 | impl_name | ||
10440 | ); | ||
10441 | ✗ | get_machine()->volk_64u_byteswap_impls[index]( | |
10442 | intsToSwap, num_points | ||
10443 | ); | ||
10444 | ✗ | } | |
10445 | |||
10446 | ✗ | volk_func_desc_t volk_64u_byteswap_get_func_desc(void) { | |
10447 | ✗ | const char **impl_names = get_machine()->volk_64u_byteswap_impl_names; | |
10448 | ✗ | const int *impl_deps = get_machine()->volk_64u_byteswap_impl_deps; | |
10449 | ✗ | const bool *alignment = get_machine()->volk_64u_byteswap_impl_alignment; | |
10450 | ✗ | const size_t n_impls = get_machine()->volk_64u_byteswap_n_impls; | |
10451 | ✗ | volk_func_desc_t desc = { | |
10452 | impl_names, | ||
10453 | impl_deps, | ||
10454 | alignment, | ||
10455 | n_impls | ||
10456 | }; | ||
10457 | ✗ | return desc; | |
10458 | } | ||
10459 | |||
10460 | |||
10461 | |||
10462 | ✗ | static inline void __volk_64u_byteswappuppet_64u_d(uint64_t* output, uint64_t* intsToSwap, unsigned int num_points) | |
10463 | { | ||
10464 | |||
10465 | ✗ | if (volk_is_aligned( | |
10466 | ✗ | VOLK_OR_PTR(output, | |
10467 | VOLK_OR_PTR(intsToSwap, | ||
10468 | 0)) | ||
10469 | )){ | ||
10470 | ✗ | volk_64u_byteswappuppet_64u_a(output, intsToSwap, num_points); | |
10471 | } | ||
10472 | else{ | ||
10473 | ✗ | volk_64u_byteswappuppet_64u_u(output, intsToSwap, num_points); | |
10474 | } | ||
10475 | ✗ | } | |
10476 | |||
10477 | ✗ | static inline void __init_volk_64u_byteswappuppet_64u(void) | |
10478 | { | ||
10479 | ✗ | const char *name = get_machine()->volk_64u_byteswappuppet_64u_name; | |
10480 | ✗ | const char **impl_names = get_machine()->volk_64u_byteswappuppet_64u_impl_names; | |
10481 | ✗ | const int *impl_deps = get_machine()->volk_64u_byteswappuppet_64u_impl_deps; | |
10482 | ✗ | const bool *alignment = get_machine()->volk_64u_byteswappuppet_64u_impl_alignment; | |
10483 | ✗ | const size_t n_impls = get_machine()->volk_64u_byteswappuppet_64u_n_impls; | |
10484 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
10485 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
10486 | ✗ | volk_64u_byteswappuppet_64u_a = get_machine()->volk_64u_byteswappuppet_64u_impls[index_a]; | |
10487 | ✗ | volk_64u_byteswappuppet_64u_u = get_machine()->volk_64u_byteswappuppet_64u_impls[index_u]; | |
10488 | |||
10489 | ✗ | assert(volk_64u_byteswappuppet_64u_a); | |
10490 | ✗ | assert(volk_64u_byteswappuppet_64u_u); | |
10491 | |||
10492 | ✗ | volk_64u_byteswappuppet_64u = &__volk_64u_byteswappuppet_64u_d; | |
10493 | ✗ | } | |
10494 | |||
10495 | ✗ | static inline void __volk_64u_byteswappuppet_64u_a(uint64_t* output, uint64_t* intsToSwap, unsigned int num_points) | |
10496 | { | ||
10497 | ✗ | __init_volk_64u_byteswappuppet_64u(); | |
10498 | ✗ | volk_64u_byteswappuppet_64u_a(output, intsToSwap, num_points); | |
10499 | ✗ | } | |
10500 | |||
10501 | ✗ | static inline void __volk_64u_byteswappuppet_64u_u(uint64_t* output, uint64_t* intsToSwap, unsigned int num_points) | |
10502 | { | ||
10503 | ✗ | __init_volk_64u_byteswappuppet_64u(); | |
10504 | ✗ | volk_64u_byteswappuppet_64u_u(output, intsToSwap, num_points); | |
10505 | ✗ | } | |
10506 | |||
10507 | ✗ | static inline void __volk_64u_byteswappuppet_64u(uint64_t* output, uint64_t* intsToSwap, unsigned int num_points) | |
10508 | { | ||
10509 | ✗ | __init_volk_64u_byteswappuppet_64u(); | |
10510 | ✗ | volk_64u_byteswappuppet_64u(output, intsToSwap, num_points); | |
10511 | ✗ | } | |
10512 | |||
10513 | p_64u_byteswappuppet_64u volk_64u_byteswappuppet_64u_a = &__volk_64u_byteswappuppet_64u_a; | ||
10514 | p_64u_byteswappuppet_64u volk_64u_byteswappuppet_64u_u = &__volk_64u_byteswappuppet_64u_u; | ||
10515 | p_64u_byteswappuppet_64u volk_64u_byteswappuppet_64u = &__volk_64u_byteswappuppet_64u; | ||
10516 | |||
10517 | 14 | void volk_64u_byteswappuppet_64u_manual(uint64_t* output, uint64_t* intsToSwap, unsigned int num_points, const char* impl_name) | |
10518 | { | ||
10519 | 14 | const int index = volk_get_index( | |
10520 | 14 | get_machine()->volk_64u_byteswappuppet_64u_impl_names, | |
10521 | 14 | get_machine()->volk_64u_byteswappuppet_64u_n_impls, | |
10522 | impl_name | ||
10523 | ); | ||
10524 | 14 | get_machine()->volk_64u_byteswappuppet_64u_impls[index]( | |
10525 | output, intsToSwap, num_points | ||
10526 | ); | ||
10527 | 14 | } | |
10528 | |||
10529 | 282 | volk_func_desc_t volk_64u_byteswappuppet_64u_get_func_desc(void) { | |
10530 | 282 | const char **impl_names = get_machine()->volk_64u_byteswappuppet_64u_impl_names; | |
10531 | 282 | const int *impl_deps = get_machine()->volk_64u_byteswappuppet_64u_impl_deps; | |
10532 | 282 | const bool *alignment = get_machine()->volk_64u_byteswappuppet_64u_impl_alignment; | |
10533 | 282 | const size_t n_impls = get_machine()->volk_64u_byteswappuppet_64u_n_impls; | |
10534 | 282 | volk_func_desc_t desc = { | |
10535 | impl_names, | ||
10536 | impl_deps, | ||
10537 | alignment, | ||
10538 | n_impls | ||
10539 | }; | ||
10540 | 282 | return desc; | |
10541 | } | ||
10542 | |||
10543 | |||
10544 | |||
10545 | ✗ | static inline void __volk_64u_popcnt_d(uint64_t* ret, const uint64_t value) | |
10546 | { | ||
10547 | |||
10548 | ✗ | if (volk_is_aligned( | |
10549 | VOLK_OR_PTR(ret, | ||
10550 | 0) | ||
10551 | )){ | ||
10552 | ✗ | volk_64u_popcnt_a(ret, value); | |
10553 | } | ||
10554 | else{ | ||
10555 | ✗ | volk_64u_popcnt_u(ret, value); | |
10556 | } | ||
10557 | ✗ | } | |
10558 | |||
10559 | ✗ | static inline void __init_volk_64u_popcnt(void) | |
10560 | { | ||
10561 | ✗ | const char *name = get_machine()->volk_64u_popcnt_name; | |
10562 | ✗ | const char **impl_names = get_machine()->volk_64u_popcnt_impl_names; | |
10563 | ✗ | const int *impl_deps = get_machine()->volk_64u_popcnt_impl_deps; | |
10564 | ✗ | const bool *alignment = get_machine()->volk_64u_popcnt_impl_alignment; | |
10565 | ✗ | const size_t n_impls = get_machine()->volk_64u_popcnt_n_impls; | |
10566 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
10567 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
10568 | ✗ | volk_64u_popcnt_a = get_machine()->volk_64u_popcnt_impls[index_a]; | |
10569 | ✗ | volk_64u_popcnt_u = get_machine()->volk_64u_popcnt_impls[index_u]; | |
10570 | |||
10571 | ✗ | assert(volk_64u_popcnt_a); | |
10572 | ✗ | assert(volk_64u_popcnt_u); | |
10573 | |||
10574 | ✗ | volk_64u_popcnt = &__volk_64u_popcnt_d; | |
10575 | ✗ | } | |
10576 | |||
10577 | ✗ | static inline void __volk_64u_popcnt_a(uint64_t* ret, const uint64_t value) | |
10578 | { | ||
10579 | ✗ | __init_volk_64u_popcnt(); | |
10580 | ✗ | volk_64u_popcnt_a(ret, value); | |
10581 | ✗ | } | |
10582 | |||
10583 | ✗ | static inline void __volk_64u_popcnt_u(uint64_t* ret, const uint64_t value) | |
10584 | { | ||
10585 | ✗ | __init_volk_64u_popcnt(); | |
10586 | ✗ | volk_64u_popcnt_u(ret, value); | |
10587 | ✗ | } | |
10588 | |||
10589 | ✗ | static inline void __volk_64u_popcnt(uint64_t* ret, const uint64_t value) | |
10590 | { | ||
10591 | ✗ | __init_volk_64u_popcnt(); | |
10592 | ✗ | volk_64u_popcnt(ret, value); | |
10593 | ✗ | } | |
10594 | |||
10595 | p_64u_popcnt volk_64u_popcnt_a = &__volk_64u_popcnt_a; | ||
10596 | p_64u_popcnt volk_64u_popcnt_u = &__volk_64u_popcnt_u; | ||
10597 | p_64u_popcnt volk_64u_popcnt = &__volk_64u_popcnt; | ||
10598 | |||
10599 | ✗ | void volk_64u_popcnt_manual(uint64_t* ret, const uint64_t value, const char* impl_name) | |
10600 | { | ||
10601 | ✗ | const int index = volk_get_index( | |
10602 | ✗ | get_machine()->volk_64u_popcnt_impl_names, | |
10603 | ✗ | get_machine()->volk_64u_popcnt_n_impls, | |
10604 | impl_name | ||
10605 | ); | ||
10606 | ✗ | get_machine()->volk_64u_popcnt_impls[index]( | |
10607 | ret, value | ||
10608 | ); | ||
10609 | ✗ | } | |
10610 | |||
10611 | ✗ | volk_func_desc_t volk_64u_popcnt_get_func_desc(void) { | |
10612 | ✗ | const char **impl_names = get_machine()->volk_64u_popcnt_impl_names; | |
10613 | ✗ | const int *impl_deps = get_machine()->volk_64u_popcnt_impl_deps; | |
10614 | ✗ | const bool *alignment = get_machine()->volk_64u_popcnt_impl_alignment; | |
10615 | ✗ | const size_t n_impls = get_machine()->volk_64u_popcnt_n_impls; | |
10616 | ✗ | volk_func_desc_t desc = { | |
10617 | impl_names, | ||
10618 | impl_deps, | ||
10619 | alignment, | ||
10620 | n_impls | ||
10621 | }; | ||
10622 | ✗ | return desc; | |
10623 | } | ||
10624 | |||
10625 | |||
10626 | |||
10627 | ✗ | static inline void __volk_64u_popcntpuppet_64u_d(uint64_t* outVector, const uint64_t* inVector, unsigned int num_points) | |
10628 | { | ||
10629 | |||
10630 | ✗ | if (volk_is_aligned( | |
10631 | ✗ | VOLK_OR_PTR(outVector, | |
10632 | VOLK_OR_PTR(inVector, | ||
10633 | 0)) | ||
10634 | )){ | ||
10635 | ✗ | volk_64u_popcntpuppet_64u_a(outVector, inVector, num_points); | |
10636 | } | ||
10637 | else{ | ||
10638 | ✗ | volk_64u_popcntpuppet_64u_u(outVector, inVector, num_points); | |
10639 | } | ||
10640 | ✗ | } | |
10641 | |||
10642 | ✗ | static inline void __init_volk_64u_popcntpuppet_64u(void) | |
10643 | { | ||
10644 | ✗ | const char *name = get_machine()->volk_64u_popcntpuppet_64u_name; | |
10645 | ✗ | const char **impl_names = get_machine()->volk_64u_popcntpuppet_64u_impl_names; | |
10646 | ✗ | const int *impl_deps = get_machine()->volk_64u_popcntpuppet_64u_impl_deps; | |
10647 | ✗ | const bool *alignment = get_machine()->volk_64u_popcntpuppet_64u_impl_alignment; | |
10648 | ✗ | const size_t n_impls = get_machine()->volk_64u_popcntpuppet_64u_n_impls; | |
10649 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
10650 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
10651 | ✗ | volk_64u_popcntpuppet_64u_a = get_machine()->volk_64u_popcntpuppet_64u_impls[index_a]; | |
10652 | ✗ | volk_64u_popcntpuppet_64u_u = get_machine()->volk_64u_popcntpuppet_64u_impls[index_u]; | |
10653 | |||
10654 | ✗ | assert(volk_64u_popcntpuppet_64u_a); | |
10655 | ✗ | assert(volk_64u_popcntpuppet_64u_u); | |
10656 | |||
10657 | ✗ | volk_64u_popcntpuppet_64u = &__volk_64u_popcntpuppet_64u_d; | |
10658 | ✗ | } | |
10659 | |||
10660 | ✗ | static inline void __volk_64u_popcntpuppet_64u_a(uint64_t* outVector, const uint64_t* inVector, unsigned int num_points) | |
10661 | { | ||
10662 | ✗ | __init_volk_64u_popcntpuppet_64u(); | |
10663 | ✗ | volk_64u_popcntpuppet_64u_a(outVector, inVector, num_points); | |
10664 | ✗ | } | |
10665 | |||
10666 | ✗ | static inline void __volk_64u_popcntpuppet_64u_u(uint64_t* outVector, const uint64_t* inVector, unsigned int num_points) | |
10667 | { | ||
10668 | ✗ | __init_volk_64u_popcntpuppet_64u(); | |
10669 | ✗ | volk_64u_popcntpuppet_64u_u(outVector, inVector, num_points); | |
10670 | ✗ | } | |
10671 | |||
10672 | ✗ | static inline void __volk_64u_popcntpuppet_64u(uint64_t* outVector, const uint64_t* inVector, unsigned int num_points) | |
10673 | { | ||
10674 | ✗ | __init_volk_64u_popcntpuppet_64u(); | |
10675 | ✗ | volk_64u_popcntpuppet_64u(outVector, inVector, num_points); | |
10676 | ✗ | } | |
10677 | |||
10678 | p_64u_popcntpuppet_64u volk_64u_popcntpuppet_64u_a = &__volk_64u_popcntpuppet_64u_a; | ||
10679 | p_64u_popcntpuppet_64u volk_64u_popcntpuppet_64u_u = &__volk_64u_popcntpuppet_64u_u; | ||
10680 | p_64u_popcntpuppet_64u volk_64u_popcntpuppet_64u = &__volk_64u_popcntpuppet_64u; | ||
10681 | |||
10682 | 4 | void volk_64u_popcntpuppet_64u_manual(uint64_t* outVector, const uint64_t* inVector, unsigned int num_points, const char* impl_name) | |
10683 | { | ||
10684 | 4 | const int index = volk_get_index( | |
10685 | 4 | get_machine()->volk_64u_popcntpuppet_64u_impl_names, | |
10686 | 4 | get_machine()->volk_64u_popcntpuppet_64u_n_impls, | |
10687 | impl_name | ||
10688 | ); | ||
10689 | 4 | get_machine()->volk_64u_popcntpuppet_64u_impls[index]( | |
10690 | outVector, inVector, num_points | ||
10691 | ); | ||
10692 | 4 | } | |
10693 | |||
10694 | 282 | volk_func_desc_t volk_64u_popcntpuppet_64u_get_func_desc(void) { | |
10695 | 282 | const char **impl_names = get_machine()->volk_64u_popcntpuppet_64u_impl_names; | |
10696 | 282 | const int *impl_deps = get_machine()->volk_64u_popcntpuppet_64u_impl_deps; | |
10697 | 282 | const bool *alignment = get_machine()->volk_64u_popcntpuppet_64u_impl_alignment; | |
10698 | 282 | const size_t n_impls = get_machine()->volk_64u_popcntpuppet_64u_n_impls; | |
10699 | 282 | volk_func_desc_t desc = { | |
10700 | impl_names, | ||
10701 | impl_deps, | ||
10702 | alignment, | ||
10703 | n_impls | ||
10704 | }; | ||
10705 | 282 | return desc; | |
10706 | } | ||
10707 | |||
10708 | |||
10709 | |||
10710 | ✗ | static inline void __volk_8i_convert_16i_d(int16_t* outputVector, const int8_t* inputVector, unsigned int num_points) | |
10711 | { | ||
10712 | |||
10713 | ✗ | if (volk_is_aligned( | |
10714 | ✗ | VOLK_OR_PTR(outputVector, | |
10715 | VOLK_OR_PTR(inputVector, | ||
10716 | 0)) | ||
10717 | )){ | ||
10718 | ✗ | volk_8i_convert_16i_a(outputVector, inputVector, num_points); | |
10719 | } | ||
10720 | else{ | ||
10721 | ✗ | volk_8i_convert_16i_u(outputVector, inputVector, num_points); | |
10722 | } | ||
10723 | ✗ | } | |
10724 | |||
10725 | ✗ | static inline void __init_volk_8i_convert_16i(void) | |
10726 | { | ||
10727 | ✗ | const char *name = get_machine()->volk_8i_convert_16i_name; | |
10728 | ✗ | const char **impl_names = get_machine()->volk_8i_convert_16i_impl_names; | |
10729 | ✗ | const int *impl_deps = get_machine()->volk_8i_convert_16i_impl_deps; | |
10730 | ✗ | const bool *alignment = get_machine()->volk_8i_convert_16i_impl_alignment; | |
10731 | ✗ | const size_t n_impls = get_machine()->volk_8i_convert_16i_n_impls; | |
10732 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
10733 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
10734 | ✗ | volk_8i_convert_16i_a = get_machine()->volk_8i_convert_16i_impls[index_a]; | |
10735 | ✗ | volk_8i_convert_16i_u = get_machine()->volk_8i_convert_16i_impls[index_u]; | |
10736 | |||
10737 | ✗ | assert(volk_8i_convert_16i_a); | |
10738 | ✗ | assert(volk_8i_convert_16i_u); | |
10739 | |||
10740 | ✗ | volk_8i_convert_16i = &__volk_8i_convert_16i_d; | |
10741 | ✗ | } | |
10742 | |||
10743 | ✗ | static inline void __volk_8i_convert_16i_a(int16_t* outputVector, const int8_t* inputVector, unsigned int num_points) | |
10744 | { | ||
10745 | ✗ | __init_volk_8i_convert_16i(); | |
10746 | ✗ | volk_8i_convert_16i_a(outputVector, inputVector, num_points); | |
10747 | ✗ | } | |
10748 | |||
10749 | ✗ | static inline void __volk_8i_convert_16i_u(int16_t* outputVector, const int8_t* inputVector, unsigned int num_points) | |
10750 | { | ||
10751 | ✗ | __init_volk_8i_convert_16i(); | |
10752 | ✗ | volk_8i_convert_16i_u(outputVector, inputVector, num_points); | |
10753 | ✗ | } | |
10754 | |||
10755 | ✗ | static inline void __volk_8i_convert_16i(int16_t* outputVector, const int8_t* inputVector, unsigned int num_points) | |
10756 | { | ||
10757 | ✗ | __init_volk_8i_convert_16i(); | |
10758 | ✗ | volk_8i_convert_16i(outputVector, inputVector, num_points); | |
10759 | ✗ | } | |
10760 | |||
10761 | p_8i_convert_16i volk_8i_convert_16i_a = &__volk_8i_convert_16i_a; | ||
10762 | p_8i_convert_16i volk_8i_convert_16i_u = &__volk_8i_convert_16i_u; | ||
10763 | p_8i_convert_16i volk_8i_convert_16i = &__volk_8i_convert_16i; | ||
10764 | |||
10765 | 14 | void volk_8i_convert_16i_manual(int16_t* outputVector, const int8_t* inputVector, unsigned int num_points, const char* impl_name) | |
10766 | { | ||
10767 | 14 | const int index = volk_get_index( | |
10768 | 14 | get_machine()->volk_8i_convert_16i_impl_names, | |
10769 | 14 | get_machine()->volk_8i_convert_16i_n_impls, | |
10770 | impl_name | ||
10771 | ); | ||
10772 | 14 | get_machine()->volk_8i_convert_16i_impls[index]( | |
10773 | outputVector, inputVector, num_points | ||
10774 | ); | ||
10775 | 14 | } | |
10776 | |||
10777 | 282 | volk_func_desc_t volk_8i_convert_16i_get_func_desc(void) { | |
10778 | 282 | const char **impl_names = get_machine()->volk_8i_convert_16i_impl_names; | |
10779 | 282 | const int *impl_deps = get_machine()->volk_8i_convert_16i_impl_deps; | |
10780 | 282 | const bool *alignment = get_machine()->volk_8i_convert_16i_impl_alignment; | |
10781 | 282 | const size_t n_impls = get_machine()->volk_8i_convert_16i_n_impls; | |
10782 | 282 | volk_func_desc_t desc = { | |
10783 | impl_names, | ||
10784 | impl_deps, | ||
10785 | alignment, | ||
10786 | n_impls | ||
10787 | }; | ||
10788 | 282 | return desc; | |
10789 | } | ||
10790 | |||
10791 | |||
10792 | |||
10793 | ✗ | static inline void __volk_8i_s32f_convert_32f_d(float* outputVector, const int8_t* inputVector, const float scalar, unsigned int num_points) | |
10794 | { | ||
10795 | |||
10796 | ✗ | if (volk_is_aligned( | |
10797 | ✗ | VOLK_OR_PTR(outputVector, | |
10798 | VOLK_OR_PTR(inputVector, | ||
10799 | 0)) | ||
10800 | )){ | ||
10801 | ✗ | volk_8i_s32f_convert_32f_a(outputVector, inputVector, scalar, num_points); | |
10802 | } | ||
10803 | else{ | ||
10804 | ✗ | volk_8i_s32f_convert_32f_u(outputVector, inputVector, scalar, num_points); | |
10805 | } | ||
10806 | ✗ | } | |
10807 | |||
10808 | ✗ | static inline void __init_volk_8i_s32f_convert_32f(void) | |
10809 | { | ||
10810 | ✗ | const char *name = get_machine()->volk_8i_s32f_convert_32f_name; | |
10811 | ✗ | const char **impl_names = get_machine()->volk_8i_s32f_convert_32f_impl_names; | |
10812 | ✗ | const int *impl_deps = get_machine()->volk_8i_s32f_convert_32f_impl_deps; | |
10813 | ✗ | const bool *alignment = get_machine()->volk_8i_s32f_convert_32f_impl_alignment; | |
10814 | ✗ | const size_t n_impls = get_machine()->volk_8i_s32f_convert_32f_n_impls; | |
10815 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
10816 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
10817 | ✗ | volk_8i_s32f_convert_32f_a = get_machine()->volk_8i_s32f_convert_32f_impls[index_a]; | |
10818 | ✗ | volk_8i_s32f_convert_32f_u = get_machine()->volk_8i_s32f_convert_32f_impls[index_u]; | |
10819 | |||
10820 | ✗ | assert(volk_8i_s32f_convert_32f_a); | |
10821 | ✗ | assert(volk_8i_s32f_convert_32f_u); | |
10822 | |||
10823 | ✗ | volk_8i_s32f_convert_32f = &__volk_8i_s32f_convert_32f_d; | |
10824 | ✗ | } | |
10825 | |||
10826 | ✗ | static inline void __volk_8i_s32f_convert_32f_a(float* outputVector, const int8_t* inputVector, const float scalar, unsigned int num_points) | |
10827 | { | ||
10828 | ✗ | __init_volk_8i_s32f_convert_32f(); | |
10829 | ✗ | volk_8i_s32f_convert_32f_a(outputVector, inputVector, scalar, num_points); | |
10830 | ✗ | } | |
10831 | |||
10832 | ✗ | static inline void __volk_8i_s32f_convert_32f_u(float* outputVector, const int8_t* inputVector, const float scalar, unsigned int num_points) | |
10833 | { | ||
10834 | ✗ | __init_volk_8i_s32f_convert_32f(); | |
10835 | ✗ | volk_8i_s32f_convert_32f_u(outputVector, inputVector, scalar, num_points); | |
10836 | ✗ | } | |
10837 | |||
10838 | ✗ | static inline void __volk_8i_s32f_convert_32f(float* outputVector, const int8_t* inputVector, const float scalar, unsigned int num_points) | |
10839 | { | ||
10840 | ✗ | __init_volk_8i_s32f_convert_32f(); | |
10841 | ✗ | volk_8i_s32f_convert_32f(outputVector, inputVector, scalar, num_points); | |
10842 | ✗ | } | |
10843 | |||
10844 | p_8i_s32f_convert_32f volk_8i_s32f_convert_32f_a = &__volk_8i_s32f_convert_32f_a; | ||
10845 | p_8i_s32f_convert_32f volk_8i_s32f_convert_32f_u = &__volk_8i_s32f_convert_32f_u; | ||
10846 | p_8i_s32f_convert_32f volk_8i_s32f_convert_32f = &__volk_8i_s32f_convert_32f; | ||
10847 | |||
10848 | 14 | void volk_8i_s32f_convert_32f_manual(float* outputVector, const int8_t* inputVector, const float scalar, unsigned int num_points, const char* impl_name) | |
10849 | { | ||
10850 | 14 | const int index = volk_get_index( | |
10851 | 14 | get_machine()->volk_8i_s32f_convert_32f_impl_names, | |
10852 | 14 | get_machine()->volk_8i_s32f_convert_32f_n_impls, | |
10853 | impl_name | ||
10854 | ); | ||
10855 | 14 | get_machine()->volk_8i_s32f_convert_32f_impls[index]( | |
10856 | outputVector, inputVector, scalar, num_points | ||
10857 | ); | ||
10858 | 14 | } | |
10859 | |||
10860 | 282 | volk_func_desc_t volk_8i_s32f_convert_32f_get_func_desc(void) { | |
10861 | 282 | const char **impl_names = get_machine()->volk_8i_s32f_convert_32f_impl_names; | |
10862 | 282 | const int *impl_deps = get_machine()->volk_8i_s32f_convert_32f_impl_deps; | |
10863 | 282 | const bool *alignment = get_machine()->volk_8i_s32f_convert_32f_impl_alignment; | |
10864 | 282 | const size_t n_impls = get_machine()->volk_8i_s32f_convert_32f_n_impls; | |
10865 | 282 | volk_func_desc_t desc = { | |
10866 | impl_names, | ||
10867 | impl_deps, | ||
10868 | alignment, | ||
10869 | n_impls | ||
10870 | }; | ||
10871 | 282 | return desc; | |
10872 | } | ||
10873 | |||
10874 | |||
10875 | |||
10876 | ✗ | static inline void __volk_8ic_deinterleave_16i_x2_d(int16_t* iBuffer, int16_t* qBuffer, const lv_8sc_t* complexVector, unsigned int num_points) | |
10877 | { | ||
10878 | |||
10879 | ✗ | if (volk_is_aligned( | |
10880 | ✗ | VOLK_OR_PTR(iBuffer, | |
10881 | VOLK_OR_PTR(qBuffer, | ||
10882 | VOLK_OR_PTR(complexVector, | ||
10883 | 0))) | ||
10884 | )){ | ||
10885 | ✗ | volk_8ic_deinterleave_16i_x2_a(iBuffer, qBuffer, complexVector, num_points); | |
10886 | } | ||
10887 | else{ | ||
10888 | ✗ | volk_8ic_deinterleave_16i_x2_u(iBuffer, qBuffer, complexVector, num_points); | |
10889 | } | ||
10890 | ✗ | } | |
10891 | |||
10892 | ✗ | static inline void __init_volk_8ic_deinterleave_16i_x2(void) | |
10893 | { | ||
10894 | ✗ | const char *name = get_machine()->volk_8ic_deinterleave_16i_x2_name; | |
10895 | ✗ | const char **impl_names = get_machine()->volk_8ic_deinterleave_16i_x2_impl_names; | |
10896 | ✗ | const int *impl_deps = get_machine()->volk_8ic_deinterleave_16i_x2_impl_deps; | |
10897 | ✗ | const bool *alignment = get_machine()->volk_8ic_deinterleave_16i_x2_impl_alignment; | |
10898 | ✗ | const size_t n_impls = get_machine()->volk_8ic_deinterleave_16i_x2_n_impls; | |
10899 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
10900 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
10901 | ✗ | volk_8ic_deinterleave_16i_x2_a = get_machine()->volk_8ic_deinterleave_16i_x2_impls[index_a]; | |
10902 | ✗ | volk_8ic_deinterleave_16i_x2_u = get_machine()->volk_8ic_deinterleave_16i_x2_impls[index_u]; | |
10903 | |||
10904 | ✗ | assert(volk_8ic_deinterleave_16i_x2_a); | |
10905 | ✗ | assert(volk_8ic_deinterleave_16i_x2_u); | |
10906 | |||
10907 | ✗ | volk_8ic_deinterleave_16i_x2 = &__volk_8ic_deinterleave_16i_x2_d; | |
10908 | ✗ | } | |
10909 | |||
10910 | ✗ | static inline void __volk_8ic_deinterleave_16i_x2_a(int16_t* iBuffer, int16_t* qBuffer, const lv_8sc_t* complexVector, unsigned int num_points) | |
10911 | { | ||
10912 | ✗ | __init_volk_8ic_deinterleave_16i_x2(); | |
10913 | ✗ | volk_8ic_deinterleave_16i_x2_a(iBuffer, qBuffer, complexVector, num_points); | |
10914 | ✗ | } | |
10915 | |||
10916 | ✗ | static inline void __volk_8ic_deinterleave_16i_x2_u(int16_t* iBuffer, int16_t* qBuffer, const lv_8sc_t* complexVector, unsigned int num_points) | |
10917 | { | ||
10918 | ✗ | __init_volk_8ic_deinterleave_16i_x2(); | |
10919 | ✗ | volk_8ic_deinterleave_16i_x2_u(iBuffer, qBuffer, complexVector, num_points); | |
10920 | ✗ | } | |
10921 | |||
10922 | ✗ | static inline void __volk_8ic_deinterleave_16i_x2(int16_t* iBuffer, int16_t* qBuffer, const lv_8sc_t* complexVector, unsigned int num_points) | |
10923 | { | ||
10924 | ✗ | __init_volk_8ic_deinterleave_16i_x2(); | |
10925 | ✗ | volk_8ic_deinterleave_16i_x2(iBuffer, qBuffer, complexVector, num_points); | |
10926 | ✗ | } | |
10927 | |||
10928 | p_8ic_deinterleave_16i_x2 volk_8ic_deinterleave_16i_x2_a = &__volk_8ic_deinterleave_16i_x2_a; | ||
10929 | p_8ic_deinterleave_16i_x2 volk_8ic_deinterleave_16i_x2_u = &__volk_8ic_deinterleave_16i_x2_u; | ||
10930 | p_8ic_deinterleave_16i_x2 volk_8ic_deinterleave_16i_x2 = &__volk_8ic_deinterleave_16i_x2; | ||
10931 | |||
10932 | 10 | void volk_8ic_deinterleave_16i_x2_manual(int16_t* iBuffer, int16_t* qBuffer, const lv_8sc_t* complexVector, unsigned int num_points, const char* impl_name) | |
10933 | { | ||
10934 | 10 | const int index = volk_get_index( | |
10935 | 10 | get_machine()->volk_8ic_deinterleave_16i_x2_impl_names, | |
10936 | 10 | get_machine()->volk_8ic_deinterleave_16i_x2_n_impls, | |
10937 | impl_name | ||
10938 | ); | ||
10939 | 10 | get_machine()->volk_8ic_deinterleave_16i_x2_impls[index]( | |
10940 | iBuffer, qBuffer, complexVector, num_points | ||
10941 | ); | ||
10942 | 10 | } | |
10943 | |||
10944 | 282 | volk_func_desc_t volk_8ic_deinterleave_16i_x2_get_func_desc(void) { | |
10945 | 282 | const char **impl_names = get_machine()->volk_8ic_deinterleave_16i_x2_impl_names; | |
10946 | 282 | const int *impl_deps = get_machine()->volk_8ic_deinterleave_16i_x2_impl_deps; | |
10947 | 282 | const bool *alignment = get_machine()->volk_8ic_deinterleave_16i_x2_impl_alignment; | |
10948 | 282 | const size_t n_impls = get_machine()->volk_8ic_deinterleave_16i_x2_n_impls; | |
10949 | 282 | volk_func_desc_t desc = { | |
10950 | impl_names, | ||
10951 | impl_deps, | ||
10952 | alignment, | ||
10953 | n_impls | ||
10954 | }; | ||
10955 | 282 | return desc; | |
10956 | } | ||
10957 | |||
10958 | |||
10959 | |||
10960 | ✗ | static inline void __volk_8ic_deinterleave_real_16i_d(int16_t* iBuffer, const lv_8sc_t* complexVector, unsigned int num_points) | |
10961 | { | ||
10962 | |||
10963 | ✗ | if (volk_is_aligned( | |
10964 | ✗ | VOLK_OR_PTR(iBuffer, | |
10965 | VOLK_OR_PTR(complexVector, | ||
10966 | 0)) | ||
10967 | )){ | ||
10968 | ✗ | volk_8ic_deinterleave_real_16i_a(iBuffer, complexVector, num_points); | |
10969 | } | ||
10970 | else{ | ||
10971 | ✗ | volk_8ic_deinterleave_real_16i_u(iBuffer, complexVector, num_points); | |
10972 | } | ||
10973 | ✗ | } | |
10974 | |||
10975 | ✗ | static inline void __init_volk_8ic_deinterleave_real_16i(void) | |
10976 | { | ||
10977 | ✗ | const char *name = get_machine()->volk_8ic_deinterleave_real_16i_name; | |
10978 | ✗ | const char **impl_names = get_machine()->volk_8ic_deinterleave_real_16i_impl_names; | |
10979 | ✗ | const int *impl_deps = get_machine()->volk_8ic_deinterleave_real_16i_impl_deps; | |
10980 | ✗ | const bool *alignment = get_machine()->volk_8ic_deinterleave_real_16i_impl_alignment; | |
10981 | ✗ | const size_t n_impls = get_machine()->volk_8ic_deinterleave_real_16i_n_impls; | |
10982 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
10983 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
10984 | ✗ | volk_8ic_deinterleave_real_16i_a = get_machine()->volk_8ic_deinterleave_real_16i_impls[index_a]; | |
10985 | ✗ | volk_8ic_deinterleave_real_16i_u = get_machine()->volk_8ic_deinterleave_real_16i_impls[index_u]; | |
10986 | |||
10987 | ✗ | assert(volk_8ic_deinterleave_real_16i_a); | |
10988 | ✗ | assert(volk_8ic_deinterleave_real_16i_u); | |
10989 | |||
10990 | ✗ | volk_8ic_deinterleave_real_16i = &__volk_8ic_deinterleave_real_16i_d; | |
10991 | ✗ | } | |
10992 | |||
10993 | ✗ | static inline void __volk_8ic_deinterleave_real_16i_a(int16_t* iBuffer, const lv_8sc_t* complexVector, unsigned int num_points) | |
10994 | { | ||
10995 | ✗ | __init_volk_8ic_deinterleave_real_16i(); | |
10996 | ✗ | volk_8ic_deinterleave_real_16i_a(iBuffer, complexVector, num_points); | |
10997 | ✗ | } | |
10998 | |||
10999 | ✗ | static inline void __volk_8ic_deinterleave_real_16i_u(int16_t* iBuffer, const lv_8sc_t* complexVector, unsigned int num_points) | |
11000 | { | ||
11001 | ✗ | __init_volk_8ic_deinterleave_real_16i(); | |
11002 | ✗ | volk_8ic_deinterleave_real_16i_u(iBuffer, complexVector, num_points); | |
11003 | ✗ | } | |
11004 | |||
11005 | ✗ | static inline void __volk_8ic_deinterleave_real_16i(int16_t* iBuffer, const lv_8sc_t* complexVector, unsigned int num_points) | |
11006 | { | ||
11007 | ✗ | __init_volk_8ic_deinterleave_real_16i(); | |
11008 | ✗ | volk_8ic_deinterleave_real_16i(iBuffer, complexVector, num_points); | |
11009 | ✗ | } | |
11010 | |||
11011 | p_8ic_deinterleave_real_16i volk_8ic_deinterleave_real_16i_a = &__volk_8ic_deinterleave_real_16i_a; | ||
11012 | p_8ic_deinterleave_real_16i volk_8ic_deinterleave_real_16i_u = &__volk_8ic_deinterleave_real_16i_u; | ||
11013 | p_8ic_deinterleave_real_16i volk_8ic_deinterleave_real_16i = &__volk_8ic_deinterleave_real_16i; | ||
11014 | |||
11015 | 10 | void volk_8ic_deinterleave_real_16i_manual(int16_t* iBuffer, const lv_8sc_t* complexVector, unsigned int num_points, const char* impl_name) | |
11016 | { | ||
11017 | 10 | const int index = volk_get_index( | |
11018 | 10 | get_machine()->volk_8ic_deinterleave_real_16i_impl_names, | |
11019 | 10 | get_machine()->volk_8ic_deinterleave_real_16i_n_impls, | |
11020 | impl_name | ||
11021 | ); | ||
11022 | 10 | get_machine()->volk_8ic_deinterleave_real_16i_impls[index]( | |
11023 | iBuffer, complexVector, num_points | ||
11024 | ); | ||
11025 | 10 | } | |
11026 | |||
11027 | 282 | volk_func_desc_t volk_8ic_deinterleave_real_16i_get_func_desc(void) { | |
11028 | 282 | const char **impl_names = get_machine()->volk_8ic_deinterleave_real_16i_impl_names; | |
11029 | 282 | const int *impl_deps = get_machine()->volk_8ic_deinterleave_real_16i_impl_deps; | |
11030 | 282 | const bool *alignment = get_machine()->volk_8ic_deinterleave_real_16i_impl_alignment; | |
11031 | 282 | const size_t n_impls = get_machine()->volk_8ic_deinterleave_real_16i_n_impls; | |
11032 | 282 | volk_func_desc_t desc = { | |
11033 | impl_names, | ||
11034 | impl_deps, | ||
11035 | alignment, | ||
11036 | n_impls | ||
11037 | }; | ||
11038 | 282 | return desc; | |
11039 | } | ||
11040 | |||
11041 | |||
11042 | |||
11043 | ✗ | static inline void __volk_8ic_deinterleave_real_8i_d(int8_t* iBuffer, const lv_8sc_t* complexVector, unsigned int num_points) | |
11044 | { | ||
11045 | |||
11046 | ✗ | if (volk_is_aligned( | |
11047 | ✗ | VOLK_OR_PTR(iBuffer, | |
11048 | VOLK_OR_PTR(complexVector, | ||
11049 | 0)) | ||
11050 | )){ | ||
11051 | ✗ | volk_8ic_deinterleave_real_8i_a(iBuffer, complexVector, num_points); | |
11052 | } | ||
11053 | else{ | ||
11054 | ✗ | volk_8ic_deinterleave_real_8i_u(iBuffer, complexVector, num_points); | |
11055 | } | ||
11056 | ✗ | } | |
11057 | |||
11058 | ✗ | static inline void __init_volk_8ic_deinterleave_real_8i(void) | |
11059 | { | ||
11060 | ✗ | const char *name = get_machine()->volk_8ic_deinterleave_real_8i_name; | |
11061 | ✗ | const char **impl_names = get_machine()->volk_8ic_deinterleave_real_8i_impl_names; | |
11062 | ✗ | const int *impl_deps = get_machine()->volk_8ic_deinterleave_real_8i_impl_deps; | |
11063 | ✗ | const bool *alignment = get_machine()->volk_8ic_deinterleave_real_8i_impl_alignment; | |
11064 | ✗ | const size_t n_impls = get_machine()->volk_8ic_deinterleave_real_8i_n_impls; | |
11065 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
11066 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
11067 | ✗ | volk_8ic_deinterleave_real_8i_a = get_machine()->volk_8ic_deinterleave_real_8i_impls[index_a]; | |
11068 | ✗ | volk_8ic_deinterleave_real_8i_u = get_machine()->volk_8ic_deinterleave_real_8i_impls[index_u]; | |
11069 | |||
11070 | ✗ | assert(volk_8ic_deinterleave_real_8i_a); | |
11071 | ✗ | assert(volk_8ic_deinterleave_real_8i_u); | |
11072 | |||
11073 | ✗ | volk_8ic_deinterleave_real_8i = &__volk_8ic_deinterleave_real_8i_d; | |
11074 | ✗ | } | |
11075 | |||
11076 | ✗ | static inline void __volk_8ic_deinterleave_real_8i_a(int8_t* iBuffer, const lv_8sc_t* complexVector, unsigned int num_points) | |
11077 | { | ||
11078 | ✗ | __init_volk_8ic_deinterleave_real_8i(); | |
11079 | ✗ | volk_8ic_deinterleave_real_8i_a(iBuffer, complexVector, num_points); | |
11080 | ✗ | } | |
11081 | |||
11082 | ✗ | static inline void __volk_8ic_deinterleave_real_8i_u(int8_t* iBuffer, const lv_8sc_t* complexVector, unsigned int num_points) | |
11083 | { | ||
11084 | ✗ | __init_volk_8ic_deinterleave_real_8i(); | |
11085 | ✗ | volk_8ic_deinterleave_real_8i_u(iBuffer, complexVector, num_points); | |
11086 | ✗ | } | |
11087 | |||
11088 | ✗ | static inline void __volk_8ic_deinterleave_real_8i(int8_t* iBuffer, const lv_8sc_t* complexVector, unsigned int num_points) | |
11089 | { | ||
11090 | ✗ | __init_volk_8ic_deinterleave_real_8i(); | |
11091 | ✗ | volk_8ic_deinterleave_real_8i(iBuffer, complexVector, num_points); | |
11092 | ✗ | } | |
11093 | |||
11094 | p_8ic_deinterleave_real_8i volk_8ic_deinterleave_real_8i_a = &__volk_8ic_deinterleave_real_8i_a; | ||
11095 | p_8ic_deinterleave_real_8i volk_8ic_deinterleave_real_8i_u = &__volk_8ic_deinterleave_real_8i_u; | ||
11096 | p_8ic_deinterleave_real_8i volk_8ic_deinterleave_real_8i = &__volk_8ic_deinterleave_real_8i; | ||
11097 | |||
11098 | 10 | void volk_8ic_deinterleave_real_8i_manual(int8_t* iBuffer, const lv_8sc_t* complexVector, unsigned int num_points, const char* impl_name) | |
11099 | { | ||
11100 | 10 | const int index = volk_get_index( | |
11101 | 10 | get_machine()->volk_8ic_deinterleave_real_8i_impl_names, | |
11102 | 10 | get_machine()->volk_8ic_deinterleave_real_8i_n_impls, | |
11103 | impl_name | ||
11104 | ); | ||
11105 | 10 | get_machine()->volk_8ic_deinterleave_real_8i_impls[index]( | |
11106 | iBuffer, complexVector, num_points | ||
11107 | ); | ||
11108 | 10 | } | |
11109 | |||
11110 | 282 | volk_func_desc_t volk_8ic_deinterleave_real_8i_get_func_desc(void) { | |
11111 | 282 | const char **impl_names = get_machine()->volk_8ic_deinterleave_real_8i_impl_names; | |
11112 | 282 | const int *impl_deps = get_machine()->volk_8ic_deinterleave_real_8i_impl_deps; | |
11113 | 282 | const bool *alignment = get_machine()->volk_8ic_deinterleave_real_8i_impl_alignment; | |
11114 | 282 | const size_t n_impls = get_machine()->volk_8ic_deinterleave_real_8i_n_impls; | |
11115 | 282 | volk_func_desc_t desc = { | |
11116 | impl_names, | ||
11117 | impl_deps, | ||
11118 | alignment, | ||
11119 | n_impls | ||
11120 | }; | ||
11121 | 282 | return desc; | |
11122 | } | ||
11123 | |||
11124 | |||
11125 | |||
11126 | ✗ | static inline void __volk_8ic_s32f_deinterleave_32f_x2_d(float* iBuffer, float* qBuffer, const lv_8sc_t* complexVector, const float scalar, unsigned int num_points) | |
11127 | { | ||
11128 | |||
11129 | ✗ | if (volk_is_aligned( | |
11130 | ✗ | VOLK_OR_PTR(iBuffer, | |
11131 | VOLK_OR_PTR(qBuffer, | ||
11132 | VOLK_OR_PTR(complexVector, | ||
11133 | 0))) | ||
11134 | )){ | ||
11135 | ✗ | volk_8ic_s32f_deinterleave_32f_x2_a(iBuffer, qBuffer, complexVector, scalar, num_points); | |
11136 | } | ||
11137 | else{ | ||
11138 | ✗ | volk_8ic_s32f_deinterleave_32f_x2_u(iBuffer, qBuffer, complexVector, scalar, num_points); | |
11139 | } | ||
11140 | ✗ | } | |
11141 | |||
11142 | ✗ | static inline void __init_volk_8ic_s32f_deinterleave_32f_x2(void) | |
11143 | { | ||
11144 | ✗ | const char *name = get_machine()->volk_8ic_s32f_deinterleave_32f_x2_name; | |
11145 | ✗ | const char **impl_names = get_machine()->volk_8ic_s32f_deinterleave_32f_x2_impl_names; | |
11146 | ✗ | const int *impl_deps = get_machine()->volk_8ic_s32f_deinterleave_32f_x2_impl_deps; | |
11147 | ✗ | const bool *alignment = get_machine()->volk_8ic_s32f_deinterleave_32f_x2_impl_alignment; | |
11148 | ✗ | const size_t n_impls = get_machine()->volk_8ic_s32f_deinterleave_32f_x2_n_impls; | |
11149 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
11150 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
11151 | ✗ | volk_8ic_s32f_deinterleave_32f_x2_a = get_machine()->volk_8ic_s32f_deinterleave_32f_x2_impls[index_a]; | |
11152 | ✗ | volk_8ic_s32f_deinterleave_32f_x2_u = get_machine()->volk_8ic_s32f_deinterleave_32f_x2_impls[index_u]; | |
11153 | |||
11154 | ✗ | assert(volk_8ic_s32f_deinterleave_32f_x2_a); | |
11155 | ✗ | assert(volk_8ic_s32f_deinterleave_32f_x2_u); | |
11156 | |||
11157 | ✗ | volk_8ic_s32f_deinterleave_32f_x2 = &__volk_8ic_s32f_deinterleave_32f_x2_d; | |
11158 | ✗ | } | |
11159 | |||
11160 | ✗ | static inline void __volk_8ic_s32f_deinterleave_32f_x2_a(float* iBuffer, float* qBuffer, const lv_8sc_t* complexVector, const float scalar, unsigned int num_points) | |
11161 | { | ||
11162 | ✗ | __init_volk_8ic_s32f_deinterleave_32f_x2(); | |
11163 | ✗ | volk_8ic_s32f_deinterleave_32f_x2_a(iBuffer, qBuffer, complexVector, scalar, num_points); | |
11164 | ✗ | } | |
11165 | |||
11166 | ✗ | static inline void __volk_8ic_s32f_deinterleave_32f_x2_u(float* iBuffer, float* qBuffer, const lv_8sc_t* complexVector, const float scalar, unsigned int num_points) | |
11167 | { | ||
11168 | ✗ | __init_volk_8ic_s32f_deinterleave_32f_x2(); | |
11169 | ✗ | volk_8ic_s32f_deinterleave_32f_x2_u(iBuffer, qBuffer, complexVector, scalar, num_points); | |
11170 | ✗ | } | |
11171 | |||
11172 | ✗ | static inline void __volk_8ic_s32f_deinterleave_32f_x2(float* iBuffer, float* qBuffer, const lv_8sc_t* complexVector, const float scalar, unsigned int num_points) | |
11173 | { | ||
11174 | ✗ | __init_volk_8ic_s32f_deinterleave_32f_x2(); | |
11175 | ✗ | volk_8ic_s32f_deinterleave_32f_x2(iBuffer, qBuffer, complexVector, scalar, num_points); | |
11176 | ✗ | } | |
11177 | |||
11178 | p_8ic_s32f_deinterleave_32f_x2 volk_8ic_s32f_deinterleave_32f_x2_a = &__volk_8ic_s32f_deinterleave_32f_x2_a; | ||
11179 | p_8ic_s32f_deinterleave_32f_x2 volk_8ic_s32f_deinterleave_32f_x2_u = &__volk_8ic_s32f_deinterleave_32f_x2_u; | ||
11180 | p_8ic_s32f_deinterleave_32f_x2 volk_8ic_s32f_deinterleave_32f_x2 = &__volk_8ic_s32f_deinterleave_32f_x2; | ||
11181 | |||
11182 | 10 | void volk_8ic_s32f_deinterleave_32f_x2_manual(float* iBuffer, float* qBuffer, const lv_8sc_t* complexVector, const float scalar, unsigned int num_points, const char* impl_name) | |
11183 | { | ||
11184 | 10 | const int index = volk_get_index( | |
11185 | 10 | get_machine()->volk_8ic_s32f_deinterleave_32f_x2_impl_names, | |
11186 | 10 | get_machine()->volk_8ic_s32f_deinterleave_32f_x2_n_impls, | |
11187 | impl_name | ||
11188 | ); | ||
11189 | 10 | get_machine()->volk_8ic_s32f_deinterleave_32f_x2_impls[index]( | |
11190 | iBuffer, qBuffer, complexVector, scalar, num_points | ||
11191 | ); | ||
11192 | 10 | } | |
11193 | |||
11194 | 282 | volk_func_desc_t volk_8ic_s32f_deinterleave_32f_x2_get_func_desc(void) { | |
11195 | 282 | const char **impl_names = get_machine()->volk_8ic_s32f_deinterleave_32f_x2_impl_names; | |
11196 | 282 | const int *impl_deps = get_machine()->volk_8ic_s32f_deinterleave_32f_x2_impl_deps; | |
11197 | 282 | const bool *alignment = get_machine()->volk_8ic_s32f_deinterleave_32f_x2_impl_alignment; | |
11198 | 282 | const size_t n_impls = get_machine()->volk_8ic_s32f_deinterleave_32f_x2_n_impls; | |
11199 | 282 | volk_func_desc_t desc = { | |
11200 | impl_names, | ||
11201 | impl_deps, | ||
11202 | alignment, | ||
11203 | n_impls | ||
11204 | }; | ||
11205 | 282 | return desc; | |
11206 | } | ||
11207 | |||
11208 | |||
11209 | |||
11210 | ✗ | static inline void __volk_8ic_s32f_deinterleave_real_32f_d(float* iBuffer, const lv_8sc_t* complexVector, const float scalar, unsigned int num_points) | |
11211 | { | ||
11212 | |||
11213 | ✗ | if (volk_is_aligned( | |
11214 | ✗ | VOLK_OR_PTR(iBuffer, | |
11215 | VOLK_OR_PTR(complexVector, | ||
11216 | 0)) | ||
11217 | )){ | ||
11218 | ✗ | volk_8ic_s32f_deinterleave_real_32f_a(iBuffer, complexVector, scalar, num_points); | |
11219 | } | ||
11220 | else{ | ||
11221 | ✗ | volk_8ic_s32f_deinterleave_real_32f_u(iBuffer, complexVector, scalar, num_points); | |
11222 | } | ||
11223 | ✗ | } | |
11224 | |||
11225 | ✗ | static inline void __init_volk_8ic_s32f_deinterleave_real_32f(void) | |
11226 | { | ||
11227 | ✗ | const char *name = get_machine()->volk_8ic_s32f_deinterleave_real_32f_name; | |
11228 | ✗ | const char **impl_names = get_machine()->volk_8ic_s32f_deinterleave_real_32f_impl_names; | |
11229 | ✗ | const int *impl_deps = get_machine()->volk_8ic_s32f_deinterleave_real_32f_impl_deps; | |
11230 | ✗ | const bool *alignment = get_machine()->volk_8ic_s32f_deinterleave_real_32f_impl_alignment; | |
11231 | ✗ | const size_t n_impls = get_machine()->volk_8ic_s32f_deinterleave_real_32f_n_impls; | |
11232 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
11233 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
11234 | ✗ | volk_8ic_s32f_deinterleave_real_32f_a = get_machine()->volk_8ic_s32f_deinterleave_real_32f_impls[index_a]; | |
11235 | ✗ | volk_8ic_s32f_deinterleave_real_32f_u = get_machine()->volk_8ic_s32f_deinterleave_real_32f_impls[index_u]; | |
11236 | |||
11237 | ✗ | assert(volk_8ic_s32f_deinterleave_real_32f_a); | |
11238 | ✗ | assert(volk_8ic_s32f_deinterleave_real_32f_u); | |
11239 | |||
11240 | ✗ | volk_8ic_s32f_deinterleave_real_32f = &__volk_8ic_s32f_deinterleave_real_32f_d; | |
11241 | ✗ | } | |
11242 | |||
11243 | ✗ | static inline void __volk_8ic_s32f_deinterleave_real_32f_a(float* iBuffer, const lv_8sc_t* complexVector, const float scalar, unsigned int num_points) | |
11244 | { | ||
11245 | ✗ | __init_volk_8ic_s32f_deinterleave_real_32f(); | |
11246 | ✗ | volk_8ic_s32f_deinterleave_real_32f_a(iBuffer, complexVector, scalar, num_points); | |
11247 | ✗ | } | |
11248 | |||
11249 | ✗ | static inline void __volk_8ic_s32f_deinterleave_real_32f_u(float* iBuffer, const lv_8sc_t* complexVector, const float scalar, unsigned int num_points) | |
11250 | { | ||
11251 | ✗ | __init_volk_8ic_s32f_deinterleave_real_32f(); | |
11252 | ✗ | volk_8ic_s32f_deinterleave_real_32f_u(iBuffer, complexVector, scalar, num_points); | |
11253 | ✗ | } | |
11254 | |||
11255 | ✗ | static inline void __volk_8ic_s32f_deinterleave_real_32f(float* iBuffer, const lv_8sc_t* complexVector, const float scalar, unsigned int num_points) | |
11256 | { | ||
11257 | ✗ | __init_volk_8ic_s32f_deinterleave_real_32f(); | |
11258 | ✗ | volk_8ic_s32f_deinterleave_real_32f(iBuffer, complexVector, scalar, num_points); | |
11259 | ✗ | } | |
11260 | |||
11261 | p_8ic_s32f_deinterleave_real_32f volk_8ic_s32f_deinterleave_real_32f_a = &__volk_8ic_s32f_deinterleave_real_32f_a; | ||
11262 | p_8ic_s32f_deinterleave_real_32f volk_8ic_s32f_deinterleave_real_32f_u = &__volk_8ic_s32f_deinterleave_real_32f_u; | ||
11263 | p_8ic_s32f_deinterleave_real_32f volk_8ic_s32f_deinterleave_real_32f = &__volk_8ic_s32f_deinterleave_real_32f; | ||
11264 | |||
11265 | 10 | void volk_8ic_s32f_deinterleave_real_32f_manual(float* iBuffer, const lv_8sc_t* complexVector, const float scalar, unsigned int num_points, const char* impl_name) | |
11266 | { | ||
11267 | 10 | const int index = volk_get_index( | |
11268 | 10 | get_machine()->volk_8ic_s32f_deinterleave_real_32f_impl_names, | |
11269 | 10 | get_machine()->volk_8ic_s32f_deinterleave_real_32f_n_impls, | |
11270 | impl_name | ||
11271 | ); | ||
11272 | 10 | get_machine()->volk_8ic_s32f_deinterleave_real_32f_impls[index]( | |
11273 | iBuffer, complexVector, scalar, num_points | ||
11274 | ); | ||
11275 | 10 | } | |
11276 | |||
11277 | 282 | volk_func_desc_t volk_8ic_s32f_deinterleave_real_32f_get_func_desc(void) { | |
11278 | 282 | const char **impl_names = get_machine()->volk_8ic_s32f_deinterleave_real_32f_impl_names; | |
11279 | 282 | const int *impl_deps = get_machine()->volk_8ic_s32f_deinterleave_real_32f_impl_deps; | |
11280 | 282 | const bool *alignment = get_machine()->volk_8ic_s32f_deinterleave_real_32f_impl_alignment; | |
11281 | 282 | const size_t n_impls = get_machine()->volk_8ic_s32f_deinterleave_real_32f_n_impls; | |
11282 | 282 | volk_func_desc_t desc = { | |
11283 | impl_names, | ||
11284 | impl_deps, | ||
11285 | alignment, | ||
11286 | n_impls | ||
11287 | }; | ||
11288 | 282 | return desc; | |
11289 | } | ||
11290 | |||
11291 | |||
11292 | |||
11293 | ✗ | static inline void __volk_8ic_x2_multiply_conjugate_16ic_d(lv_16sc_t* cVector, const lv_8sc_t* aVector, const lv_8sc_t* bVector, unsigned int num_points) | |
11294 | { | ||
11295 | |||
11296 | ✗ | if (volk_is_aligned( | |
11297 | ✗ | VOLK_OR_PTR(cVector, | |
11298 | VOLK_OR_PTR(aVector, | ||
11299 | VOLK_OR_PTR(bVector, | ||
11300 | 0))) | ||
11301 | )){ | ||
11302 | ✗ | volk_8ic_x2_multiply_conjugate_16ic_a(cVector, aVector, bVector, num_points); | |
11303 | } | ||
11304 | else{ | ||
11305 | ✗ | volk_8ic_x2_multiply_conjugate_16ic_u(cVector, aVector, bVector, num_points); | |
11306 | } | ||
11307 | ✗ | } | |
11308 | |||
11309 | ✗ | static inline void __init_volk_8ic_x2_multiply_conjugate_16ic(void) | |
11310 | { | ||
11311 | ✗ | const char *name = get_machine()->volk_8ic_x2_multiply_conjugate_16ic_name; | |
11312 | ✗ | const char **impl_names = get_machine()->volk_8ic_x2_multiply_conjugate_16ic_impl_names; | |
11313 | ✗ | const int *impl_deps = get_machine()->volk_8ic_x2_multiply_conjugate_16ic_impl_deps; | |
11314 | ✗ | const bool *alignment = get_machine()->volk_8ic_x2_multiply_conjugate_16ic_impl_alignment; | |
11315 | ✗ | const size_t n_impls = get_machine()->volk_8ic_x2_multiply_conjugate_16ic_n_impls; | |
11316 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
11317 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
11318 | ✗ | volk_8ic_x2_multiply_conjugate_16ic_a = get_machine()->volk_8ic_x2_multiply_conjugate_16ic_impls[index_a]; | |
11319 | ✗ | volk_8ic_x2_multiply_conjugate_16ic_u = get_machine()->volk_8ic_x2_multiply_conjugate_16ic_impls[index_u]; | |
11320 | |||
11321 | ✗ | assert(volk_8ic_x2_multiply_conjugate_16ic_a); | |
11322 | ✗ | assert(volk_8ic_x2_multiply_conjugate_16ic_u); | |
11323 | |||
11324 | ✗ | volk_8ic_x2_multiply_conjugate_16ic = &__volk_8ic_x2_multiply_conjugate_16ic_d; | |
11325 | ✗ | } | |
11326 | |||
11327 | ✗ | static inline void __volk_8ic_x2_multiply_conjugate_16ic_a(lv_16sc_t* cVector, const lv_8sc_t* aVector, const lv_8sc_t* bVector, unsigned int num_points) | |
11328 | { | ||
11329 | ✗ | __init_volk_8ic_x2_multiply_conjugate_16ic(); | |
11330 | ✗ | volk_8ic_x2_multiply_conjugate_16ic_a(cVector, aVector, bVector, num_points); | |
11331 | ✗ | } | |
11332 | |||
11333 | ✗ | static inline void __volk_8ic_x2_multiply_conjugate_16ic_u(lv_16sc_t* cVector, const lv_8sc_t* aVector, const lv_8sc_t* bVector, unsigned int num_points) | |
11334 | { | ||
11335 | ✗ | __init_volk_8ic_x2_multiply_conjugate_16ic(); | |
11336 | ✗ | volk_8ic_x2_multiply_conjugate_16ic_u(cVector, aVector, bVector, num_points); | |
11337 | ✗ | } | |
11338 | |||
11339 | ✗ | static inline void __volk_8ic_x2_multiply_conjugate_16ic(lv_16sc_t* cVector, const lv_8sc_t* aVector, const lv_8sc_t* bVector, unsigned int num_points) | |
11340 | { | ||
11341 | ✗ | __init_volk_8ic_x2_multiply_conjugate_16ic(); | |
11342 | ✗ | volk_8ic_x2_multiply_conjugate_16ic(cVector, aVector, bVector, num_points); | |
11343 | ✗ | } | |
11344 | |||
11345 | p_8ic_x2_multiply_conjugate_16ic volk_8ic_x2_multiply_conjugate_16ic_a = &__volk_8ic_x2_multiply_conjugate_16ic_a; | ||
11346 | p_8ic_x2_multiply_conjugate_16ic volk_8ic_x2_multiply_conjugate_16ic_u = &__volk_8ic_x2_multiply_conjugate_16ic_u; | ||
11347 | p_8ic_x2_multiply_conjugate_16ic volk_8ic_x2_multiply_conjugate_16ic = &__volk_8ic_x2_multiply_conjugate_16ic; | ||
11348 | |||
11349 | 8 | void volk_8ic_x2_multiply_conjugate_16ic_manual(lv_16sc_t* cVector, const lv_8sc_t* aVector, const lv_8sc_t* bVector, unsigned int num_points, const char* impl_name) | |
11350 | { | ||
11351 | 8 | const int index = volk_get_index( | |
11352 | 8 | get_machine()->volk_8ic_x2_multiply_conjugate_16ic_impl_names, | |
11353 | 8 | get_machine()->volk_8ic_x2_multiply_conjugate_16ic_n_impls, | |
11354 | impl_name | ||
11355 | ); | ||
11356 | 8 | get_machine()->volk_8ic_x2_multiply_conjugate_16ic_impls[index]( | |
11357 | cVector, aVector, bVector, num_points | ||
11358 | ); | ||
11359 | 8 | } | |
11360 | |||
11361 | 282 | volk_func_desc_t volk_8ic_x2_multiply_conjugate_16ic_get_func_desc(void) { | |
11362 | 282 | const char **impl_names = get_machine()->volk_8ic_x2_multiply_conjugate_16ic_impl_names; | |
11363 | 282 | const int *impl_deps = get_machine()->volk_8ic_x2_multiply_conjugate_16ic_impl_deps; | |
11364 | 282 | const bool *alignment = get_machine()->volk_8ic_x2_multiply_conjugate_16ic_impl_alignment; | |
11365 | 282 | const size_t n_impls = get_machine()->volk_8ic_x2_multiply_conjugate_16ic_n_impls; | |
11366 | 282 | volk_func_desc_t desc = { | |
11367 | impl_names, | ||
11368 | impl_deps, | ||
11369 | alignment, | ||
11370 | n_impls | ||
11371 | }; | ||
11372 | 282 | return desc; | |
11373 | } | ||
11374 | |||
11375 | |||
11376 | |||
11377 | ✗ | static inline void __volk_8ic_x2_s32f_multiply_conjugate_32fc_d(lv_32fc_t* cVector, const lv_8sc_t* aVector, const lv_8sc_t* bVector, const float scalar, unsigned int num_points) | |
11378 | { | ||
11379 | |||
11380 | ✗ | if (volk_is_aligned( | |
11381 | ✗ | VOLK_OR_PTR(cVector, | |
11382 | VOLK_OR_PTR(aVector, | ||
11383 | VOLK_OR_PTR(bVector, | ||
11384 | 0))) | ||
11385 | )){ | ||
11386 | ✗ | volk_8ic_x2_s32f_multiply_conjugate_32fc_a(cVector, aVector, bVector, scalar, num_points); | |
11387 | } | ||
11388 | else{ | ||
11389 | ✗ | volk_8ic_x2_s32f_multiply_conjugate_32fc_u(cVector, aVector, bVector, scalar, num_points); | |
11390 | } | ||
11391 | ✗ | } | |
11392 | |||
11393 | ✗ | static inline void __init_volk_8ic_x2_s32f_multiply_conjugate_32fc(void) | |
11394 | { | ||
11395 | ✗ | const char *name = get_machine()->volk_8ic_x2_s32f_multiply_conjugate_32fc_name; | |
11396 | ✗ | const char **impl_names = get_machine()->volk_8ic_x2_s32f_multiply_conjugate_32fc_impl_names; | |
11397 | ✗ | const int *impl_deps = get_machine()->volk_8ic_x2_s32f_multiply_conjugate_32fc_impl_deps; | |
11398 | ✗ | const bool *alignment = get_machine()->volk_8ic_x2_s32f_multiply_conjugate_32fc_impl_alignment; | |
11399 | ✗ | const size_t n_impls = get_machine()->volk_8ic_x2_s32f_multiply_conjugate_32fc_n_impls; | |
11400 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
11401 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
11402 | ✗ | volk_8ic_x2_s32f_multiply_conjugate_32fc_a = get_machine()->volk_8ic_x2_s32f_multiply_conjugate_32fc_impls[index_a]; | |
11403 | ✗ | volk_8ic_x2_s32f_multiply_conjugate_32fc_u = get_machine()->volk_8ic_x2_s32f_multiply_conjugate_32fc_impls[index_u]; | |
11404 | |||
11405 | ✗ | assert(volk_8ic_x2_s32f_multiply_conjugate_32fc_a); | |
11406 | ✗ | assert(volk_8ic_x2_s32f_multiply_conjugate_32fc_u); | |
11407 | |||
11408 | ✗ | volk_8ic_x2_s32f_multiply_conjugate_32fc = &__volk_8ic_x2_s32f_multiply_conjugate_32fc_d; | |
11409 | ✗ | } | |
11410 | |||
11411 | ✗ | static inline void __volk_8ic_x2_s32f_multiply_conjugate_32fc_a(lv_32fc_t* cVector, const lv_8sc_t* aVector, const lv_8sc_t* bVector, const float scalar, unsigned int num_points) | |
11412 | { | ||
11413 | ✗ | __init_volk_8ic_x2_s32f_multiply_conjugate_32fc(); | |
11414 | ✗ | volk_8ic_x2_s32f_multiply_conjugate_32fc_a(cVector, aVector, bVector, scalar, num_points); | |
11415 | ✗ | } | |
11416 | |||
11417 | ✗ | static inline void __volk_8ic_x2_s32f_multiply_conjugate_32fc_u(lv_32fc_t* cVector, const lv_8sc_t* aVector, const lv_8sc_t* bVector, const float scalar, unsigned int num_points) | |
11418 | { | ||
11419 | ✗ | __init_volk_8ic_x2_s32f_multiply_conjugate_32fc(); | |
11420 | ✗ | volk_8ic_x2_s32f_multiply_conjugate_32fc_u(cVector, aVector, bVector, scalar, num_points); | |
11421 | ✗ | } | |
11422 | |||
11423 | ✗ | static inline void __volk_8ic_x2_s32f_multiply_conjugate_32fc(lv_32fc_t* cVector, const lv_8sc_t* aVector, const lv_8sc_t* bVector, const float scalar, unsigned int num_points) | |
11424 | { | ||
11425 | ✗ | __init_volk_8ic_x2_s32f_multiply_conjugate_32fc(); | |
11426 | ✗ | volk_8ic_x2_s32f_multiply_conjugate_32fc(cVector, aVector, bVector, scalar, num_points); | |
11427 | ✗ | } | |
11428 | |||
11429 | p_8ic_x2_s32f_multiply_conjugate_32fc volk_8ic_x2_s32f_multiply_conjugate_32fc_a = &__volk_8ic_x2_s32f_multiply_conjugate_32fc_a; | ||
11430 | p_8ic_x2_s32f_multiply_conjugate_32fc volk_8ic_x2_s32f_multiply_conjugate_32fc_u = &__volk_8ic_x2_s32f_multiply_conjugate_32fc_u; | ||
11431 | p_8ic_x2_s32f_multiply_conjugate_32fc volk_8ic_x2_s32f_multiply_conjugate_32fc = &__volk_8ic_x2_s32f_multiply_conjugate_32fc; | ||
11432 | |||
11433 | 8 | void volk_8ic_x2_s32f_multiply_conjugate_32fc_manual(lv_32fc_t* cVector, const lv_8sc_t* aVector, const lv_8sc_t* bVector, const float scalar, unsigned int num_points, const char* impl_name) | |
11434 | { | ||
11435 | 8 | const int index = volk_get_index( | |
11436 | 8 | get_machine()->volk_8ic_x2_s32f_multiply_conjugate_32fc_impl_names, | |
11437 | 8 | get_machine()->volk_8ic_x2_s32f_multiply_conjugate_32fc_n_impls, | |
11438 | impl_name | ||
11439 | ); | ||
11440 | 8 | get_machine()->volk_8ic_x2_s32f_multiply_conjugate_32fc_impls[index]( | |
11441 | cVector, aVector, bVector, scalar, num_points | ||
11442 | ); | ||
11443 | 8 | } | |
11444 | |||
11445 | 282 | volk_func_desc_t volk_8ic_x2_s32f_multiply_conjugate_32fc_get_func_desc(void) { | |
11446 | 282 | const char **impl_names = get_machine()->volk_8ic_x2_s32f_multiply_conjugate_32fc_impl_names; | |
11447 | 282 | const int *impl_deps = get_machine()->volk_8ic_x2_s32f_multiply_conjugate_32fc_impl_deps; | |
11448 | 282 | const bool *alignment = get_machine()->volk_8ic_x2_s32f_multiply_conjugate_32fc_impl_alignment; | |
11449 | 282 | const size_t n_impls = get_machine()->volk_8ic_x2_s32f_multiply_conjugate_32fc_n_impls; | |
11450 | 282 | volk_func_desc_t desc = { | |
11451 | impl_names, | ||
11452 | impl_deps, | ||
11453 | alignment, | ||
11454 | n_impls | ||
11455 | }; | ||
11456 | 282 | return desc; | |
11457 | } | ||
11458 | |||
11459 | |||
11460 | |||
11461 | ✗ | static inline void __volk_8u_conv_k7_r2puppet_8u_d(unsigned char* syms, unsigned char* dec, unsigned int framebits) | |
11462 | { | ||
11463 | |||
11464 | ✗ | if (volk_is_aligned( | |
11465 | ✗ | VOLK_OR_PTR(syms, | |
11466 | VOLK_OR_PTR(dec, | ||
11467 | 0)) | ||
11468 | )){ | ||
11469 | ✗ | volk_8u_conv_k7_r2puppet_8u_a(syms, dec, framebits); | |
11470 | } | ||
11471 | else{ | ||
11472 | ✗ | volk_8u_conv_k7_r2puppet_8u_u(syms, dec, framebits); | |
11473 | } | ||
11474 | ✗ | } | |
11475 | |||
11476 | ✗ | static inline void __init_volk_8u_conv_k7_r2puppet_8u(void) | |
11477 | { | ||
11478 | ✗ | const char *name = get_machine()->volk_8u_conv_k7_r2puppet_8u_name; | |
11479 | ✗ | const char **impl_names = get_machine()->volk_8u_conv_k7_r2puppet_8u_impl_names; | |
11480 | ✗ | const int *impl_deps = get_machine()->volk_8u_conv_k7_r2puppet_8u_impl_deps; | |
11481 | ✗ | const bool *alignment = get_machine()->volk_8u_conv_k7_r2puppet_8u_impl_alignment; | |
11482 | ✗ | const size_t n_impls = get_machine()->volk_8u_conv_k7_r2puppet_8u_n_impls; | |
11483 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
11484 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
11485 | ✗ | volk_8u_conv_k7_r2puppet_8u_a = get_machine()->volk_8u_conv_k7_r2puppet_8u_impls[index_a]; | |
11486 | ✗ | volk_8u_conv_k7_r2puppet_8u_u = get_machine()->volk_8u_conv_k7_r2puppet_8u_impls[index_u]; | |
11487 | |||
11488 | ✗ | assert(volk_8u_conv_k7_r2puppet_8u_a); | |
11489 | ✗ | assert(volk_8u_conv_k7_r2puppet_8u_u); | |
11490 | |||
11491 | ✗ | volk_8u_conv_k7_r2puppet_8u = &__volk_8u_conv_k7_r2puppet_8u_d; | |
11492 | ✗ | } | |
11493 | |||
11494 | ✗ | static inline void __volk_8u_conv_k7_r2puppet_8u_a(unsigned char* syms, unsigned char* dec, unsigned int framebits) | |
11495 | { | ||
11496 | ✗ | __init_volk_8u_conv_k7_r2puppet_8u(); | |
11497 | ✗ | volk_8u_conv_k7_r2puppet_8u_a(syms, dec, framebits); | |
11498 | ✗ | } | |
11499 | |||
11500 | ✗ | static inline void __volk_8u_conv_k7_r2puppet_8u_u(unsigned char* syms, unsigned char* dec, unsigned int framebits) | |
11501 | { | ||
11502 | ✗ | __init_volk_8u_conv_k7_r2puppet_8u(); | |
11503 | ✗ | volk_8u_conv_k7_r2puppet_8u_u(syms, dec, framebits); | |
11504 | ✗ | } | |
11505 | |||
11506 | ✗ | static inline void __volk_8u_conv_k7_r2puppet_8u(unsigned char* syms, unsigned char* dec, unsigned int framebits) | |
11507 | { | ||
11508 | ✗ | __init_volk_8u_conv_k7_r2puppet_8u(); | |
11509 | ✗ | volk_8u_conv_k7_r2puppet_8u(syms, dec, framebits); | |
11510 | ✗ | } | |
11511 | |||
11512 | p_8u_conv_k7_r2puppet_8u volk_8u_conv_k7_r2puppet_8u_a = &__volk_8u_conv_k7_r2puppet_8u_a; | ||
11513 | p_8u_conv_k7_r2puppet_8u volk_8u_conv_k7_r2puppet_8u_u = &__volk_8u_conv_k7_r2puppet_8u_u; | ||
11514 | p_8u_conv_k7_r2puppet_8u volk_8u_conv_k7_r2puppet_8u = &__volk_8u_conv_k7_r2puppet_8u; | ||
11515 | |||
11516 | 4 | void volk_8u_conv_k7_r2puppet_8u_manual(unsigned char* syms, unsigned char* dec, unsigned int framebits, const char* impl_name) | |
11517 | { | ||
11518 | 4 | const int index = volk_get_index( | |
11519 | 4 | get_machine()->volk_8u_conv_k7_r2puppet_8u_impl_names, | |
11520 | 4 | get_machine()->volk_8u_conv_k7_r2puppet_8u_n_impls, | |
11521 | impl_name | ||
11522 | ); | ||
11523 | 4 | get_machine()->volk_8u_conv_k7_r2puppet_8u_impls[index]( | |
11524 | syms, dec, framebits | ||
11525 | ); | ||
11526 | 4 | } | |
11527 | |||
11528 | 282 | volk_func_desc_t volk_8u_conv_k7_r2puppet_8u_get_func_desc(void) { | |
11529 | 282 | const char **impl_names = get_machine()->volk_8u_conv_k7_r2puppet_8u_impl_names; | |
11530 | 282 | const int *impl_deps = get_machine()->volk_8u_conv_k7_r2puppet_8u_impl_deps; | |
11531 | 282 | const bool *alignment = get_machine()->volk_8u_conv_k7_r2puppet_8u_impl_alignment; | |
11532 | 282 | const size_t n_impls = get_machine()->volk_8u_conv_k7_r2puppet_8u_n_impls; | |
11533 | 282 | volk_func_desc_t desc = { | |
11534 | impl_names, | ||
11535 | impl_deps, | ||
11536 | alignment, | ||
11537 | n_impls | ||
11538 | }; | ||
11539 | 282 | return desc; | |
11540 | } | ||
11541 | |||
11542 | |||
11543 | |||
11544 | ✗ | static inline void __volk_8u_x2_encodeframepolar_8u_d(unsigned char* frame, unsigned char* temp, unsigned int frame_size) | |
11545 | { | ||
11546 | |||
11547 | ✗ | if (volk_is_aligned( | |
11548 | ✗ | VOLK_OR_PTR(frame, | |
11549 | VOLK_OR_PTR(temp, | ||
11550 | 0)) | ||
11551 | )){ | ||
11552 | ✗ | volk_8u_x2_encodeframepolar_8u_a(frame, temp, frame_size); | |
11553 | } | ||
11554 | else{ | ||
11555 | ✗ | volk_8u_x2_encodeframepolar_8u_u(frame, temp, frame_size); | |
11556 | } | ||
11557 | ✗ | } | |
11558 | |||
11559 | ✗ | static inline void __init_volk_8u_x2_encodeframepolar_8u(void) | |
11560 | { | ||
11561 | ✗ | const char *name = get_machine()->volk_8u_x2_encodeframepolar_8u_name; | |
11562 | ✗ | const char **impl_names = get_machine()->volk_8u_x2_encodeframepolar_8u_impl_names; | |
11563 | ✗ | const int *impl_deps = get_machine()->volk_8u_x2_encodeframepolar_8u_impl_deps; | |
11564 | ✗ | const bool *alignment = get_machine()->volk_8u_x2_encodeframepolar_8u_impl_alignment; | |
11565 | ✗ | const size_t n_impls = get_machine()->volk_8u_x2_encodeframepolar_8u_n_impls; | |
11566 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
11567 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
11568 | ✗ | volk_8u_x2_encodeframepolar_8u_a = get_machine()->volk_8u_x2_encodeframepolar_8u_impls[index_a]; | |
11569 | ✗ | volk_8u_x2_encodeframepolar_8u_u = get_machine()->volk_8u_x2_encodeframepolar_8u_impls[index_u]; | |
11570 | |||
11571 | ✗ | assert(volk_8u_x2_encodeframepolar_8u_a); | |
11572 | ✗ | assert(volk_8u_x2_encodeframepolar_8u_u); | |
11573 | |||
11574 | ✗ | volk_8u_x2_encodeframepolar_8u = &__volk_8u_x2_encodeframepolar_8u_d; | |
11575 | ✗ | } | |
11576 | |||
11577 | ✗ | static inline void __volk_8u_x2_encodeframepolar_8u_a(unsigned char* frame, unsigned char* temp, unsigned int frame_size) | |
11578 | { | ||
11579 | ✗ | __init_volk_8u_x2_encodeframepolar_8u(); | |
11580 | ✗ | volk_8u_x2_encodeframepolar_8u_a(frame, temp, frame_size); | |
11581 | ✗ | } | |
11582 | |||
11583 | ✗ | static inline void __volk_8u_x2_encodeframepolar_8u_u(unsigned char* frame, unsigned char* temp, unsigned int frame_size) | |
11584 | { | ||
11585 | ✗ | __init_volk_8u_x2_encodeframepolar_8u(); | |
11586 | ✗ | volk_8u_x2_encodeframepolar_8u_u(frame, temp, frame_size); | |
11587 | ✗ | } | |
11588 | |||
11589 | ✗ | static inline void __volk_8u_x2_encodeframepolar_8u(unsigned char* frame, unsigned char* temp, unsigned int frame_size) | |
11590 | { | ||
11591 | ✗ | __init_volk_8u_x2_encodeframepolar_8u(); | |
11592 | ✗ | volk_8u_x2_encodeframepolar_8u(frame, temp, frame_size); | |
11593 | ✗ | } | |
11594 | |||
11595 | p_8u_x2_encodeframepolar_8u volk_8u_x2_encodeframepolar_8u_a = &__volk_8u_x2_encodeframepolar_8u_a; | ||
11596 | p_8u_x2_encodeframepolar_8u volk_8u_x2_encodeframepolar_8u_u = &__volk_8u_x2_encodeframepolar_8u_u; | ||
11597 | p_8u_x2_encodeframepolar_8u volk_8u_x2_encodeframepolar_8u = &__volk_8u_x2_encodeframepolar_8u; | ||
11598 | |||
11599 | ✗ | void volk_8u_x2_encodeframepolar_8u_manual(unsigned char* frame, unsigned char* temp, unsigned int frame_size, const char* impl_name) | |
11600 | { | ||
11601 | ✗ | const int index = volk_get_index( | |
11602 | ✗ | get_machine()->volk_8u_x2_encodeframepolar_8u_impl_names, | |
11603 | ✗ | get_machine()->volk_8u_x2_encodeframepolar_8u_n_impls, | |
11604 | impl_name | ||
11605 | ); | ||
11606 | ✗ | get_machine()->volk_8u_x2_encodeframepolar_8u_impls[index]( | |
11607 | frame, temp, frame_size | ||
11608 | ); | ||
11609 | ✗ | } | |
11610 | |||
11611 | ✗ | volk_func_desc_t volk_8u_x2_encodeframepolar_8u_get_func_desc(void) { | |
11612 | ✗ | const char **impl_names = get_machine()->volk_8u_x2_encodeframepolar_8u_impl_names; | |
11613 | ✗ | const int *impl_deps = get_machine()->volk_8u_x2_encodeframepolar_8u_impl_deps; | |
11614 | ✗ | const bool *alignment = get_machine()->volk_8u_x2_encodeframepolar_8u_impl_alignment; | |
11615 | ✗ | const size_t n_impls = get_machine()->volk_8u_x2_encodeframepolar_8u_n_impls; | |
11616 | ✗ | volk_func_desc_t desc = { | |
11617 | impl_names, | ||
11618 | impl_deps, | ||
11619 | alignment, | ||
11620 | n_impls | ||
11621 | }; | ||
11622 | ✗ | return desc; | |
11623 | } | ||
11624 | |||
11625 | |||
11626 | |||
11627 | ✗ | static inline void __volk_8u_x3_encodepolar_8u_x2_d(unsigned char* frame, unsigned char* temp, const unsigned char* frozen_bit_mask, const unsigned char* frozen_bits, const unsigned char* info_bits, unsigned int frame_size) | |
11628 | { | ||
11629 | |||
11630 | ✗ | if (volk_is_aligned( | |
11631 | ✗ | VOLK_OR_PTR(frame, | |
11632 | VOLK_OR_PTR(temp, | ||
11633 | VOLK_OR_PTR(frozen_bit_mask, | ||
11634 | VOLK_OR_PTR(frozen_bits, | ||
11635 | VOLK_OR_PTR(info_bits, | ||
11636 | 0))))) | ||
11637 | )){ | ||
11638 | ✗ | volk_8u_x3_encodepolar_8u_x2_a(frame, temp, frozen_bit_mask, frozen_bits, info_bits, frame_size); | |
11639 | } | ||
11640 | else{ | ||
11641 | ✗ | volk_8u_x3_encodepolar_8u_x2_u(frame, temp, frozen_bit_mask, frozen_bits, info_bits, frame_size); | |
11642 | } | ||
11643 | ✗ | } | |
11644 | |||
11645 | ✗ | static inline void __init_volk_8u_x3_encodepolar_8u_x2(void) | |
11646 | { | ||
11647 | ✗ | const char *name = get_machine()->volk_8u_x3_encodepolar_8u_x2_name; | |
11648 | ✗ | const char **impl_names = get_machine()->volk_8u_x3_encodepolar_8u_x2_impl_names; | |
11649 | ✗ | const int *impl_deps = get_machine()->volk_8u_x3_encodepolar_8u_x2_impl_deps; | |
11650 | ✗ | const bool *alignment = get_machine()->volk_8u_x3_encodepolar_8u_x2_impl_alignment; | |
11651 | ✗ | const size_t n_impls = get_machine()->volk_8u_x3_encodepolar_8u_x2_n_impls; | |
11652 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
11653 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
11654 | ✗ | volk_8u_x3_encodepolar_8u_x2_a = get_machine()->volk_8u_x3_encodepolar_8u_x2_impls[index_a]; | |
11655 | ✗ | volk_8u_x3_encodepolar_8u_x2_u = get_machine()->volk_8u_x3_encodepolar_8u_x2_impls[index_u]; | |
11656 | |||
11657 | ✗ | assert(volk_8u_x3_encodepolar_8u_x2_a); | |
11658 | ✗ | assert(volk_8u_x3_encodepolar_8u_x2_u); | |
11659 | |||
11660 | ✗ | volk_8u_x3_encodepolar_8u_x2 = &__volk_8u_x3_encodepolar_8u_x2_d; | |
11661 | ✗ | } | |
11662 | |||
11663 | ✗ | static inline void __volk_8u_x3_encodepolar_8u_x2_a(unsigned char* frame, unsigned char* temp, const unsigned char* frozen_bit_mask, const unsigned char* frozen_bits, const unsigned char* info_bits, unsigned int frame_size) | |
11664 | { | ||
11665 | ✗ | __init_volk_8u_x3_encodepolar_8u_x2(); | |
11666 | ✗ | volk_8u_x3_encodepolar_8u_x2_a(frame, temp, frozen_bit_mask, frozen_bits, info_bits, frame_size); | |
11667 | ✗ | } | |
11668 | |||
11669 | ✗ | static inline void __volk_8u_x3_encodepolar_8u_x2_u(unsigned char* frame, unsigned char* temp, const unsigned char* frozen_bit_mask, const unsigned char* frozen_bits, const unsigned char* info_bits, unsigned int frame_size) | |
11670 | { | ||
11671 | ✗ | __init_volk_8u_x3_encodepolar_8u_x2(); | |
11672 | ✗ | volk_8u_x3_encodepolar_8u_x2_u(frame, temp, frozen_bit_mask, frozen_bits, info_bits, frame_size); | |
11673 | ✗ | } | |
11674 | |||
11675 | ✗ | static inline void __volk_8u_x3_encodepolar_8u_x2(unsigned char* frame, unsigned char* temp, const unsigned char* frozen_bit_mask, const unsigned char* frozen_bits, const unsigned char* info_bits, unsigned int frame_size) | |
11676 | { | ||
11677 | ✗ | __init_volk_8u_x3_encodepolar_8u_x2(); | |
11678 | ✗ | volk_8u_x3_encodepolar_8u_x2(frame, temp, frozen_bit_mask, frozen_bits, info_bits, frame_size); | |
11679 | ✗ | } | |
11680 | |||
11681 | p_8u_x3_encodepolar_8u_x2 volk_8u_x3_encodepolar_8u_x2_a = &__volk_8u_x3_encodepolar_8u_x2_a; | ||
11682 | p_8u_x3_encodepolar_8u_x2 volk_8u_x3_encodepolar_8u_x2_u = &__volk_8u_x3_encodepolar_8u_x2_u; | ||
11683 | p_8u_x3_encodepolar_8u_x2 volk_8u_x3_encodepolar_8u_x2 = &__volk_8u_x3_encodepolar_8u_x2; | ||
11684 | |||
11685 | ✗ | void volk_8u_x3_encodepolar_8u_x2_manual(unsigned char* frame, unsigned char* temp, const unsigned char* frozen_bit_mask, const unsigned char* frozen_bits, const unsigned char* info_bits, unsigned int frame_size, const char* impl_name) | |
11686 | { | ||
11687 | ✗ | const int index = volk_get_index( | |
11688 | ✗ | get_machine()->volk_8u_x3_encodepolar_8u_x2_impl_names, | |
11689 | ✗ | get_machine()->volk_8u_x3_encodepolar_8u_x2_n_impls, | |
11690 | impl_name | ||
11691 | ); | ||
11692 | ✗ | get_machine()->volk_8u_x3_encodepolar_8u_x2_impls[index]( | |
11693 | frame, temp, frozen_bit_mask, frozen_bits, info_bits, frame_size | ||
11694 | ); | ||
11695 | ✗ | } | |
11696 | |||
11697 | ✗ | volk_func_desc_t volk_8u_x3_encodepolar_8u_x2_get_func_desc(void) { | |
11698 | ✗ | const char **impl_names = get_machine()->volk_8u_x3_encodepolar_8u_x2_impl_names; | |
11699 | ✗ | const int *impl_deps = get_machine()->volk_8u_x3_encodepolar_8u_x2_impl_deps; | |
11700 | ✗ | const bool *alignment = get_machine()->volk_8u_x3_encodepolar_8u_x2_impl_alignment; | |
11701 | ✗ | const size_t n_impls = get_machine()->volk_8u_x3_encodepolar_8u_x2_n_impls; | |
11702 | ✗ | volk_func_desc_t desc = { | |
11703 | impl_names, | ||
11704 | impl_deps, | ||
11705 | alignment, | ||
11706 | n_impls | ||
11707 | }; | ||
11708 | ✗ | return desc; | |
11709 | } | ||
11710 | |||
11711 | |||
11712 | |||
11713 | ✗ | static inline void __volk_8u_x3_encodepolarpuppet_8u_d(unsigned char* frame, unsigned char* frozen_bit_mask, const unsigned char* frozen_bits, const unsigned char* info_bits, unsigned int frame_size) | |
11714 | { | ||
11715 | |||
11716 | ✗ | if (volk_is_aligned( | |
11717 | ✗ | VOLK_OR_PTR(frame, | |
11718 | VOLK_OR_PTR(frozen_bit_mask, | ||
11719 | VOLK_OR_PTR(frozen_bits, | ||
11720 | VOLK_OR_PTR(info_bits, | ||
11721 | 0)))) | ||
11722 | )){ | ||
11723 | ✗ | volk_8u_x3_encodepolarpuppet_8u_a(frame, frozen_bit_mask, frozen_bits, info_bits, frame_size); | |
11724 | } | ||
11725 | else{ | ||
11726 | ✗ | volk_8u_x3_encodepolarpuppet_8u_u(frame, frozen_bit_mask, frozen_bits, info_bits, frame_size); | |
11727 | } | ||
11728 | ✗ | } | |
11729 | |||
11730 | ✗ | static inline void __init_volk_8u_x3_encodepolarpuppet_8u(void) | |
11731 | { | ||
11732 | ✗ | const char *name = get_machine()->volk_8u_x3_encodepolarpuppet_8u_name; | |
11733 | ✗ | const char **impl_names = get_machine()->volk_8u_x3_encodepolarpuppet_8u_impl_names; | |
11734 | ✗ | const int *impl_deps = get_machine()->volk_8u_x3_encodepolarpuppet_8u_impl_deps; | |
11735 | ✗ | const bool *alignment = get_machine()->volk_8u_x3_encodepolarpuppet_8u_impl_alignment; | |
11736 | ✗ | const size_t n_impls = get_machine()->volk_8u_x3_encodepolarpuppet_8u_n_impls; | |
11737 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
11738 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
11739 | ✗ | volk_8u_x3_encodepolarpuppet_8u_a = get_machine()->volk_8u_x3_encodepolarpuppet_8u_impls[index_a]; | |
11740 | ✗ | volk_8u_x3_encodepolarpuppet_8u_u = get_machine()->volk_8u_x3_encodepolarpuppet_8u_impls[index_u]; | |
11741 | |||
11742 | ✗ | assert(volk_8u_x3_encodepolarpuppet_8u_a); | |
11743 | ✗ | assert(volk_8u_x3_encodepolarpuppet_8u_u); | |
11744 | |||
11745 | ✗ | volk_8u_x3_encodepolarpuppet_8u = &__volk_8u_x3_encodepolarpuppet_8u_d; | |
11746 | ✗ | } | |
11747 | |||
11748 | ✗ | static inline void __volk_8u_x3_encodepolarpuppet_8u_a(unsigned char* frame, unsigned char* frozen_bit_mask, const unsigned char* frozen_bits, const unsigned char* info_bits, unsigned int frame_size) | |
11749 | { | ||
11750 | ✗ | __init_volk_8u_x3_encodepolarpuppet_8u(); | |
11751 | ✗ | volk_8u_x3_encodepolarpuppet_8u_a(frame, frozen_bit_mask, frozen_bits, info_bits, frame_size); | |
11752 | ✗ | } | |
11753 | |||
11754 | ✗ | static inline void __volk_8u_x3_encodepolarpuppet_8u_u(unsigned char* frame, unsigned char* frozen_bit_mask, const unsigned char* frozen_bits, const unsigned char* info_bits, unsigned int frame_size) | |
11755 | { | ||
11756 | ✗ | __init_volk_8u_x3_encodepolarpuppet_8u(); | |
11757 | ✗ | volk_8u_x3_encodepolarpuppet_8u_u(frame, frozen_bit_mask, frozen_bits, info_bits, frame_size); | |
11758 | ✗ | } | |
11759 | |||
11760 | ✗ | static inline void __volk_8u_x3_encodepolarpuppet_8u(unsigned char* frame, unsigned char* frozen_bit_mask, const unsigned char* frozen_bits, const unsigned char* info_bits, unsigned int frame_size) | |
11761 | { | ||
11762 | ✗ | __init_volk_8u_x3_encodepolarpuppet_8u(); | |
11763 | ✗ | volk_8u_x3_encodepolarpuppet_8u(frame, frozen_bit_mask, frozen_bits, info_bits, frame_size); | |
11764 | ✗ | } | |
11765 | |||
11766 | p_8u_x3_encodepolarpuppet_8u volk_8u_x3_encodepolarpuppet_8u_a = &__volk_8u_x3_encodepolarpuppet_8u_a; | ||
11767 | p_8u_x3_encodepolarpuppet_8u volk_8u_x3_encodepolarpuppet_8u_u = &__volk_8u_x3_encodepolarpuppet_8u_u; | ||
11768 | p_8u_x3_encodepolarpuppet_8u volk_8u_x3_encodepolarpuppet_8u = &__volk_8u_x3_encodepolarpuppet_8u; | ||
11769 | |||
11770 | 10 | void volk_8u_x3_encodepolarpuppet_8u_manual(unsigned char* frame, unsigned char* frozen_bit_mask, const unsigned char* frozen_bits, const unsigned char* info_bits, unsigned int frame_size, const char* impl_name) | |
11771 | { | ||
11772 | 10 | const int index = volk_get_index( | |
11773 | 10 | get_machine()->volk_8u_x3_encodepolarpuppet_8u_impl_names, | |
11774 | 10 | get_machine()->volk_8u_x3_encodepolarpuppet_8u_n_impls, | |
11775 | impl_name | ||
11776 | ); | ||
11777 | 10 | get_machine()->volk_8u_x3_encodepolarpuppet_8u_impls[index]( | |
11778 | frame, frozen_bit_mask, frozen_bits, info_bits, frame_size | ||
11779 | ); | ||
11780 | 10 | } | |
11781 | |||
11782 | 282 | volk_func_desc_t volk_8u_x3_encodepolarpuppet_8u_get_func_desc(void) { | |
11783 | 282 | const char **impl_names = get_machine()->volk_8u_x3_encodepolarpuppet_8u_impl_names; | |
11784 | 282 | const int *impl_deps = get_machine()->volk_8u_x3_encodepolarpuppet_8u_impl_deps; | |
11785 | 282 | const bool *alignment = get_machine()->volk_8u_x3_encodepolarpuppet_8u_impl_alignment; | |
11786 | 282 | const size_t n_impls = get_machine()->volk_8u_x3_encodepolarpuppet_8u_n_impls; | |
11787 | 282 | volk_func_desc_t desc = { | |
11788 | impl_names, | ||
11789 | impl_deps, | ||
11790 | alignment, | ||
11791 | n_impls | ||
11792 | }; | ||
11793 | 282 | return desc; | |
11794 | } | ||
11795 | |||
11796 | |||
11797 | |||
11798 | ✗ | static inline void __volk_8u_x4_conv_k7_r2_8u_d(unsigned char* Y, unsigned char* X, unsigned char* syms, unsigned char* dec, unsigned int framebits, unsigned int excess, unsigned char* Branchtab) | |
11799 | { | ||
11800 | |||
11801 | ✗ | if (volk_is_aligned( | |
11802 | ✗ | VOLK_OR_PTR(Y, | |
11803 | VOLK_OR_PTR(X, | ||
11804 | VOLK_OR_PTR(syms, | ||
11805 | VOLK_OR_PTR(dec, | ||
11806 | VOLK_OR_PTR(Branchtab, | ||
11807 | 0))))) | ||
11808 | )){ | ||
11809 | ✗ | volk_8u_x4_conv_k7_r2_8u_a(Y, X, syms, dec, framebits, excess, Branchtab); | |
11810 | } | ||
11811 | else{ | ||
11812 | ✗ | volk_8u_x4_conv_k7_r2_8u_u(Y, X, syms, dec, framebits, excess, Branchtab); | |
11813 | } | ||
11814 | ✗ | } | |
11815 | |||
11816 | ✗ | static inline void __init_volk_8u_x4_conv_k7_r2_8u(void) | |
11817 | { | ||
11818 | ✗ | const char *name = get_machine()->volk_8u_x4_conv_k7_r2_8u_name; | |
11819 | ✗ | const char **impl_names = get_machine()->volk_8u_x4_conv_k7_r2_8u_impl_names; | |
11820 | ✗ | const int *impl_deps = get_machine()->volk_8u_x4_conv_k7_r2_8u_impl_deps; | |
11821 | ✗ | const bool *alignment = get_machine()->volk_8u_x4_conv_k7_r2_8u_impl_alignment; | |
11822 | ✗ | const size_t n_impls = get_machine()->volk_8u_x4_conv_k7_r2_8u_n_impls; | |
11823 | ✗ | const size_t index_a = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, true/*aligned*/); | |
11824 | ✗ | const size_t index_u = volk_rank_archs(name, impl_names, impl_deps, alignment, n_impls, false/*unaligned*/); | |
11825 | ✗ | volk_8u_x4_conv_k7_r2_8u_a = get_machine()->volk_8u_x4_conv_k7_r2_8u_impls[index_a]; | |
11826 | ✗ | volk_8u_x4_conv_k7_r2_8u_u = get_machine()->volk_8u_x4_conv_k7_r2_8u_impls[index_u]; | |
11827 | |||
11828 | ✗ | assert(volk_8u_x4_conv_k7_r2_8u_a); | |
11829 | ✗ | assert(volk_8u_x4_conv_k7_r2_8u_u); | |
11830 | |||
11831 | ✗ | volk_8u_x4_conv_k7_r2_8u = &__volk_8u_x4_conv_k7_r2_8u_d; | |
11832 | ✗ | } | |
11833 | |||
11834 | ✗ | static inline void __volk_8u_x4_conv_k7_r2_8u_a(unsigned char* Y, unsigned char* X, unsigned char* syms, unsigned char* dec, unsigned int framebits, unsigned int excess, unsigned char* Branchtab) | |
11835 | { | ||
11836 | ✗ | __init_volk_8u_x4_conv_k7_r2_8u(); | |
11837 | ✗ | volk_8u_x4_conv_k7_r2_8u_a(Y, X, syms, dec, framebits, excess, Branchtab); | |
11838 | ✗ | } | |
11839 | |||
11840 | ✗ | static inline void __volk_8u_x4_conv_k7_r2_8u_u(unsigned char* Y, unsigned char* X, unsigned char* syms, unsigned char* dec, unsigned int framebits, unsigned int excess, unsigned char* Branchtab) | |
11841 | { | ||
11842 | ✗ | __init_volk_8u_x4_conv_k7_r2_8u(); | |
11843 | ✗ | volk_8u_x4_conv_k7_r2_8u_u(Y, X, syms, dec, framebits, excess, Branchtab); | |
11844 | ✗ | } | |
11845 | |||
11846 | ✗ | static inline void __volk_8u_x4_conv_k7_r2_8u(unsigned char* Y, unsigned char* X, unsigned char* syms, unsigned char* dec, unsigned int framebits, unsigned int excess, unsigned char* Branchtab) | |
11847 | { | ||
11848 | ✗ | __init_volk_8u_x4_conv_k7_r2_8u(); | |
11849 | ✗ | volk_8u_x4_conv_k7_r2_8u(Y, X, syms, dec, framebits, excess, Branchtab); | |
11850 | ✗ | } | |
11851 | |||
11852 | p_8u_x4_conv_k7_r2_8u volk_8u_x4_conv_k7_r2_8u_a = &__volk_8u_x4_conv_k7_r2_8u_a; | ||
11853 | p_8u_x4_conv_k7_r2_8u volk_8u_x4_conv_k7_r2_8u_u = &__volk_8u_x4_conv_k7_r2_8u_u; | ||
11854 | p_8u_x4_conv_k7_r2_8u volk_8u_x4_conv_k7_r2_8u = &__volk_8u_x4_conv_k7_r2_8u; | ||
11855 | |||
11856 | ✗ | void volk_8u_x4_conv_k7_r2_8u_manual(unsigned char* Y, unsigned char* X, unsigned char* syms, unsigned char* dec, unsigned int framebits, unsigned int excess, unsigned char* Branchtab, const char* impl_name) | |
11857 | { | ||
11858 | ✗ | const int index = volk_get_index( | |
11859 | ✗ | get_machine()->volk_8u_x4_conv_k7_r2_8u_impl_names, | |
11860 | ✗ | get_machine()->volk_8u_x4_conv_k7_r2_8u_n_impls, | |
11861 | impl_name | ||
11862 | ); | ||
11863 | ✗ | get_machine()->volk_8u_x4_conv_k7_r2_8u_impls[index]( | |
11864 | Y, X, syms, dec, framebits, excess, Branchtab | ||
11865 | ); | ||
11866 | ✗ | } | |
11867 | |||
11868 | ✗ | volk_func_desc_t volk_8u_x4_conv_k7_r2_8u_get_func_desc(void) { | |
11869 | ✗ | const char **impl_names = get_machine()->volk_8u_x4_conv_k7_r2_8u_impl_names; | |
11870 | ✗ | const int *impl_deps = get_machine()->volk_8u_x4_conv_k7_r2_8u_impl_deps; | |
11871 | ✗ | const bool *alignment = get_machine()->volk_8u_x4_conv_k7_r2_8u_impl_alignment; | |
11872 | ✗ | const size_t n_impls = get_machine()->volk_8u_x4_conv_k7_r2_8u_n_impls; | |
11873 | ✗ | volk_func_desc_t desc = { | |
11874 | impl_names, | ||
11875 | impl_deps, | ||
11876 | alignment, | ||
11877 | n_impls | ||
11878 | }; | ||
11879 | ✗ | return desc; | |
11880 | } | ||
11881 | |||
11882 |