Vector Optimized Library of Kernels 3.2.0
Architecture-tuned implementations of math kernels
Loading...
Searching...
No Matches
volk_32f_s32f_convertpuppet_8u.h
Go to the documentation of this file.
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>
15
16#ifdef LV_HAVE_GENERIC
17static 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 volk_32f_s32f_x2_convert_8u_generic(output, input, scale, 128.0, num_points);
23}
24#endif
25
26#if LV_HAVE_AVX2 && LV_HAVE_FMA
27static 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 volk_32f_s32f_x2_convert_8u_u_avx2_fma(output, input, scale, 128.0, num_points);
33}
34#endif
35
36#if LV_HAVE_AVX2 && LV_HAVE_FMA
37static 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 volk_32f_s32f_x2_convert_8u_a_avx2_fma(output, input, scale, 128.0, num_points);
43}
44#endif
45
46#ifdef LV_HAVE_AVX2
47static 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 volk_32f_s32f_x2_convert_8u_u_avx2(output, input, scale, 128.0, num_points);
53}
54#endif
55
56#ifdef LV_HAVE_AVX2
57static 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 volk_32f_s32f_x2_convert_8u_a_avx2(output, input, scale, 128.0, num_points);
63}
64#endif
65
66#ifdef LV_HAVE_SSE2
67static 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 volk_32f_s32f_x2_convert_8u_u_sse2(output, input, scale, 128.0, num_points);
73}
74#endif
75
76#ifdef LV_HAVE_SSE2
77static 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 volk_32f_s32f_x2_convert_8u_a_sse2(output, input, scale, 128.0, num_points);
83}
84#endif
85
86#ifdef LV_HAVE_SSE
87static 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 volk_32f_s32f_x2_convert_8u_u_sse(output, input, scale, 128.0, num_points);
93}
94#endif
95
96#ifdef LV_HAVE_SSE
97static 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 volk_32f_s32f_x2_convert_8u_a_sse(output, input, scale, 128.0, num_points);
103}
104#endif
105
106#ifdef LV_HAVE_RVV
107static inline void volk_32f_s32f_convertpuppet_8u_rvv(uint8_t* output,
108 const float* input,
109 float scale,
110 unsigned int num_points)
111{
112 volk_32f_s32f_x2_convert_8u_rvv(output, input, scale, 128.0, num_points);
113}
114#endif
115
116#endif
static void volk_32f_s32f_convertpuppet_8u_u_sse2(uint8_t *output, const float *input, float scale, unsigned int num_points)
Definition volk_32f_s32f_convertpuppet_8u.h:67
static void volk_32f_s32f_convertpuppet_8u_a_sse2(uint8_t *output, const float *input, float scale, unsigned int num_points)
Definition volk_32f_s32f_convertpuppet_8u.h:77
static void volk_32f_s32f_convertpuppet_8u_u_sse(uint8_t *output, const float *input, float scale, unsigned int num_points)
Definition volk_32f_s32f_convertpuppet_8u.h:87
static void volk_32f_s32f_convertpuppet_8u_generic(uint8_t *output, const float *input, float scale, unsigned int num_points)
Definition volk_32f_s32f_convertpuppet_8u.h:17
static void volk_32f_s32f_convertpuppet_8u_a_sse(uint8_t *output, const float *input, float scale, unsigned int num_points)
Definition volk_32f_s32f_convertpuppet_8u.h:97
static void volk_32f_s32f_x2_convert_8u_generic(uint8_t *outputVector, const float *inputVector, const float scale, const float bias, unsigned int num_points)
Definition volk_32f_s32f_x2_convert_8u.h:81
static void volk_32f_s32f_x2_convert_8u_a_sse2(uint8_t *outputVector, const float *inputVector, const float scale, const float bias, unsigned int num_points)
Definition volk_32f_s32f_x2_convert_8u.h:506
static void volk_32f_s32f_x2_convert_8u_a_sse(uint8_t *outputVector, const float *inputVector, const float scale, const float bias, unsigned int num_points)
Definition volk_32f_s32f_x2_convert_8u.h:573
static void volk_32f_s32f_x2_convert_8u_u_sse(uint8_t *outputVector, const float *inputVector, const float scale, const float bias, unsigned int num_points)
Definition volk_32f_s32f_x2_convert_8u.h:311
static void volk_32f_s32f_x2_convert_8u_u_sse2(uint8_t *outputVector, const float *inputVector, const float scale, const float bias, unsigned int num_points)
Definition volk_32f_s32f_x2_convert_8u.h:243