Line |
Branch |
Exec |
Source |
1 |
|
|
/* -*- c++ -*- */ |
2 |
|
|
/* |
3 |
|
|
* Copyright 2017, 2020 Free Software Foundation, Inc. |
4 |
|
|
* |
5 |
|
|
* This file is part of VOLK |
6 |
|
|
* |
7 |
|
|
* SPDX-License-Identifier: LGPL-3.0-or-later |
8 |
|
|
*/ |
9 |
|
|
|
10 |
|
|
#ifndef INCLUDED_VOLK_32F_S32F_MOD_RANGEPUPPET_32F_H |
11 |
|
|
#define INCLUDED_VOLK_32F_S32F_MOD_RANGEPUPPET_32F_H |
12 |
|
|
|
13 |
|
|
#include <volk/volk_32f_s32f_s32f_mod_range_32f.h> |
14 |
|
|
|
15 |
|
|
#ifdef LV_HAVE_GENERIC |
16 |
|
2 |
static inline void volk_32f_s32f_mod_rangepuppet_32f_generic(float* output, |
17 |
|
|
const float* input, |
18 |
|
|
float bound, |
19 |
|
|
unsigned int num_points) |
20 |
|
|
{ |
21 |
|
2 |
volk_32f_s32f_s32f_mod_range_32f_generic( |
22 |
|
|
output, input, bound - 3.141f, bound, num_points); |
23 |
|
2 |
} |
24 |
|
|
#endif |
25 |
|
|
|
26 |
|
|
|
27 |
|
|
#ifdef LV_HAVE_SSE |
28 |
|
2 |
static inline void volk_32f_s32f_mod_rangepuppet_32f_u_sse(float* output, |
29 |
|
|
const float* input, |
30 |
|
|
float bound, |
31 |
|
|
unsigned int num_points) |
32 |
|
|
{ |
33 |
|
2 |
volk_32f_s32f_s32f_mod_range_32f_u_sse( |
34 |
|
|
output, input, bound - 3.141f, bound, num_points); |
35 |
|
2 |
} |
36 |
|
|
#endif |
37 |
|
|
#ifdef LV_HAVE_SSE |
38 |
|
2 |
static inline void volk_32f_s32f_mod_rangepuppet_32f_a_sse(float* output, |
39 |
|
|
const float* input, |
40 |
|
|
float bound, |
41 |
|
|
unsigned int num_points) |
42 |
|
|
{ |
43 |
|
2 |
volk_32f_s32f_s32f_mod_range_32f_a_sse( |
44 |
|
|
output, input, bound - 3.141f, bound, num_points); |
45 |
|
2 |
} |
46 |
|
|
#endif |
47 |
|
|
|
48 |
|
|
#ifdef LV_HAVE_SSE2 |
49 |
|
2 |
static inline void volk_32f_s32f_mod_rangepuppet_32f_u_sse2(float* output, |
50 |
|
|
const float* input, |
51 |
|
|
float bound, |
52 |
|
|
unsigned int num_points) |
53 |
|
|
{ |
54 |
|
2 |
volk_32f_s32f_s32f_mod_range_32f_u_sse2( |
55 |
|
|
output, input, bound - 3.141f, bound, num_points); |
56 |
|
2 |
} |
57 |
|
|
#endif |
58 |
|
|
#ifdef LV_HAVE_SSE2 |
59 |
|
2 |
static inline void volk_32f_s32f_mod_rangepuppet_32f_a_sse2(float* output, |
60 |
|
|
const float* input, |
61 |
|
|
float bound, |
62 |
|
|
unsigned int num_points) |
63 |
|
|
{ |
64 |
|
2 |
volk_32f_s32f_s32f_mod_range_32f_a_sse2( |
65 |
|
|
output, input, bound - 3.141f, bound, num_points); |
66 |
|
2 |
} |
67 |
|
|
#endif |
68 |
|
|
|
69 |
|
|
#ifdef LV_HAVE_AVX |
70 |
|
2 |
static inline void volk_32f_s32f_mod_rangepuppet_32f_u_avx(float* output, |
71 |
|
|
const float* input, |
72 |
|
|
float bound, |
73 |
|
|
unsigned int num_points) |
74 |
|
|
{ |
75 |
|
2 |
volk_32f_s32f_s32f_mod_range_32f_u_avx( |
76 |
|
|
output, input, bound - 3.141f, bound, num_points); |
77 |
|
2 |
} |
78 |
|
|
#endif |
79 |
|
|
#ifdef LV_HAVE_AVX |
80 |
|
2 |
static inline void volk_32f_s32f_mod_rangepuppet_32f_a_avx(float* output, |
81 |
|
|
const float* input, |
82 |
|
|
float bound, |
83 |
|
|
unsigned int num_points) |
84 |
|
|
{ |
85 |
|
2 |
volk_32f_s32f_s32f_mod_range_32f_a_avx( |
86 |
|
|
output, input, bound - 3.141f, bound, num_points); |
87 |
|
2 |
} |
88 |
|
|
#endif |
89 |
|
|
#endif |
90 |
|
|
|