14 #ifndef VOLK_KERNELS_VOLK_VOLK_8U_X3_ENCODEPOLARPUPPET_8U_H_
15 #define VOLK_KERNELS_VOLK_VOLK_8U_X3_ENCODEPOLARPUPPET_8U_H_
16 #include <volk/volk.h>
23 unsigned int res =
val;
24 res = (res >> 1) | res;
25 res = (res >> 2) | res;
26 res = (res >> 4) | res;
27 res = (res >> 8) | res;
28 res = (res >> 16) | res;
37 for (
i = 0;
i < frame_size; ++
i) {
38 *mask = (*mask & 0x80) ? 0xFF : 0x00;
43 #ifdef LV_HAVE_GENERIC
46 unsigned char* frozen_bit_mask,
47 const unsigned char* frozen_bits,
48 const unsigned char* info_bits,
49 unsigned int frame_size)
52 unsigned char* temp = (
unsigned char*)
volk_malloc(
sizeof(
unsigned char) * frame_size,
56 frame, temp, frozen_bit_mask, frozen_bits, info_bits, frame_size);
65 unsigned char* frozen_bit_mask,
66 const unsigned char* frozen_bits,
67 const unsigned char* info_bits,
68 unsigned int frame_size)
71 unsigned char* temp = (
unsigned char*)
volk_malloc(
sizeof(
unsigned char) * frame_size,
75 frame, temp, frozen_bit_mask, frozen_bits, info_bits, frame_size);
82 volk_8u_x3_encodepolarpuppet_8u_u_avx2(
unsigned char* frame,
83 unsigned char* frozen_bit_mask,
84 const unsigned char* frozen_bits,
85 const unsigned char* info_bits,
86 unsigned int frame_size)
89 unsigned char* temp = (
unsigned char*)
volk_malloc(
sizeof(
unsigned char) * frame_size,
92 volk_8u_x3_encodepolar_8u_x2_u_avx2(
93 frame, temp, frozen_bit_mask, frozen_bits, info_bits, frame_size);
100 #ifndef VOLK_KERNELS_VOLK_VOLK_8U_X3_ENCODEPOLARPUPPET_8U_A_H_
101 #define VOLK_KERNELS_VOLK_VOLK_8U_X3_ENCODEPOLARPUPPET_8U_A_H_
106 unsigned char* frozen_bit_mask,
107 const unsigned char* frozen_bits,
108 const unsigned char* info_bits,
109 unsigned int frame_size)
112 unsigned char* temp = (
unsigned char*)
volk_malloc(
sizeof(
unsigned char) * frame_size,
116 frame, temp, frozen_bit_mask, frozen_bits, info_bits, frame_size);
123 volk_8u_x3_encodepolarpuppet_8u_a_avx2(
unsigned char* frame,
124 unsigned char* frozen_bit_mask,
125 const unsigned char* frozen_bits,
126 const unsigned char* info_bits,
127 unsigned int frame_size)
130 unsigned char* temp = (
unsigned char*)
volk_malloc(
sizeof(
unsigned char) * frame_size,
133 volk_8u_x3_encodepolar_8u_x2_a_avx2(
134 frame, temp, frozen_bit_mask, frozen_bits, info_bits, frame_size);
val
Definition: volk_arch_defs.py:57
size_t volk_get_alignment(void)
Get the machine alignment in bytes.
Definition: volk.tmpl.c:90
static void volk_8u_x3_encodepolar_8u_x2_generic(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)
Definition: volk_8u_x3_encodepolar_8u_x2.h:85
static void volk_8u_x3_encodepolar_8u_x2_a_ssse3(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)
Definition: volk_8u_x3_encodepolar_8u_x2.h:143
static void volk_8u_x3_encodepolar_8u_x2_u_ssse3(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)
Definition: volk_8u_x3_encodepolar_8u_x2.h:104
static void adjust_frozen_mask(unsigned char *mask, const unsigned int frame_size)
Definition: volk_8u_x3_encodepolarpuppet_8u.h:33
static unsigned int next_lower_power_of_two(const unsigned int val)
Definition: volk_8u_x3_encodepolarpuppet_8u.h:19
static void volk_8u_x3_encodepolarpuppet_8u_generic(unsigned char *frame, unsigned char *frozen_bit_mask, const unsigned char *frozen_bits, const unsigned char *info_bits, unsigned int frame_size)
Definition: volk_8u_x3_encodepolarpuppet_8u.h:45
static void volk_8u_x3_encodepolarpuppet_8u_a_ssse3(unsigned char *frame, unsigned char *frozen_bit_mask, const unsigned char *frozen_bits, const unsigned char *info_bits, unsigned int frame_size)
Definition: volk_8u_x3_encodepolarpuppet_8u.h:105
static void volk_8u_x3_encodepolarpuppet_8u_u_ssse3(unsigned char *frame, unsigned char *frozen_bit_mask, const unsigned char *frozen_bits, const unsigned char *info_bits, unsigned int frame_size)
Definition: volk_8u_x3_encodepolarpuppet_8u.h:64
for i
Definition: volk_config_fixed.tmpl.h:13
__VOLK_DECL_BEGIN VOLK_API void * volk_malloc(size_t size, size_t alignment)
Allocate size bytes of data aligned to alignment.
Definition: volk_malloc.c:38
VOLK_API void volk_free(void *aptr)
Free's memory allocated by volk_malloc.
Definition: volk_malloc.c:80