GCC Code Coverage Report


Directory: ./
File: kernels/volk/volk_32f_s32f_convertpuppet_8u.h
Date: 2023-10-23 23:10:04
Exec Total Coverage
Lines: 27 27 100.0%
Functions: 9 9 100.0%
Branches: 0 0 -%

Line Branch Exec Source
1 /* -*- c++ -*- */
2 /*
3 * Copyright 2023 Daniel Estevez <daniel@destevez.net>
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_CONVERTPUPPET_8U_H
11 #define INCLUDED_VOLK_32F_S32F_MOD_CONVERTPUPPET_8U_H
12
13 #include <inttypes.h>
14 #include <volk/volk_32f_s32f_x2_convert_8u.h>
15
16 #ifdef LV_HAVE_GENERIC
17 2 static inline void volk_32f_s32f_convertpuppet_8u_generic(uint8_t* output,
18 const float* input,
19 float scale,
20 unsigned int num_points)
21 {
22 2 volk_32f_s32f_x2_convert_8u_generic(output, input, scale, 128.0, num_points);
23 2 }
24 #endif
25
26 #if LV_HAVE_AVX2 && LV_HAVE_FMA
27 2 static inline void volk_32f_s32f_convertpuppet_8u_u_avx2_fma(uint8_t* output,
28 const float* input,
29 float scale,
30 unsigned int num_points)
31 {
32 2 volk_32f_s32f_x2_convert_8u_u_avx2_fma(output, input, scale, 128.0, num_points);
33 2 }
34 #endif
35
36 #if LV_HAVE_AVX2 && LV_HAVE_FMA
37 2 static inline void volk_32f_s32f_convertpuppet_8u_a_avx2_fma(uint8_t* output,
38 const float* input,
39 float scale,
40 unsigned int num_points)
41 {
42 2 volk_32f_s32f_x2_convert_8u_a_avx2_fma(output, input, scale, 128.0, num_points);
43 2 }
44 #endif
45
46 #ifdef LV_HAVE_AVX2
47 2 static inline void volk_32f_s32f_convertpuppet_8u_u_avx2(uint8_t* output,
48 const float* input,
49 float scale,
50 unsigned int num_points)
51 {
52 2 volk_32f_s32f_x2_convert_8u_u_avx2(output, input, scale, 128.0, num_points);
53 2 }
54 #endif
55
56 #ifdef LV_HAVE_AVX2
57 2 static inline void volk_32f_s32f_convertpuppet_8u_a_avx2(uint8_t* output,
58 const float* input,
59 float scale,
60 unsigned int num_points)
61 {
62 2 volk_32f_s32f_x2_convert_8u_a_avx2(output, input, scale, 128.0, num_points);
63 2 }
64 #endif
65
66 #ifdef LV_HAVE_SSE2
67 2 static inline void volk_32f_s32f_convertpuppet_8u_u_sse2(uint8_t* output,
68 const float* input,
69 float scale,
70 unsigned int num_points)
71 {
72 2 volk_32f_s32f_x2_convert_8u_u_sse2(output, input, scale, 128.0, num_points);
73 2 }
74 #endif
75
76 #ifdef LV_HAVE_SSE2
77 2 static inline void volk_32f_s32f_convertpuppet_8u_a_sse2(uint8_t* output,
78 const float* input,
79 float scale,
80 unsigned int num_points)
81 {
82 2 volk_32f_s32f_x2_convert_8u_a_sse2(output, input, scale, 128.0, num_points);
83 2 }
84 #endif
85
86 #ifdef LV_HAVE_SSE
87 2 static inline void volk_32f_s32f_convertpuppet_8u_u_sse(uint8_t* output,
88 const float* input,
89 float scale,
90 unsigned int num_points)
91 {
92 2 volk_32f_s32f_x2_convert_8u_u_sse(output, input, scale, 128.0, num_points);
93 2 }
94 #endif
95
96 #ifdef LV_HAVE_SSE
97 2 static inline void volk_32f_s32f_convertpuppet_8u_a_sse(uint8_t* output,
98 const float* input,
99 float scale,
100 unsigned int num_points)
101 {
102 2 volk_32f_s32f_x2_convert_8u_a_sse(output, input, scale, 128.0, num_points);
103 2 }
104 #endif
105 #endif
106