43 #ifndef INCLUDED_volk_16i_branch_4_state_8_a_H
44 #define INCLUDED_volk_16i_branch_4_state_8_a_H
51 #include <emmintrin.h>
52 #include <tmmintrin.h>
53 #include <xmmintrin.h>
62 __m128i xmm0, xmm1, xmm2, xmm3, xmm4, xmm5, xmm6, xmm7, xmm8, xmm9, xmm10, xmm11;
63 __m128i *p_target, *p_src0, *p_cntl2, *p_cntl3, *p_scalars;
154 #ifdef LV_HAVE_GENERIC
166 for (;
i < bound; ++
i) {
167 target[
i * 8] = src0[((char)permuters[
i][0]) / 2] + ((
i + 1) % 2 * scalars[0]) +
168 (((
i >> 1) ^ 1) * scalars[1]) + (cntl2[
i * 8] & scalars[2]) +
169 (cntl3[
i * 8] & scalars[3]);
170 target[
i * 8 + 1] = src0[((char)permuters[
i][1 * 2]) / 2] +
171 ((
i + 1) % 2 * scalars[0]) + (((
i >> 1) ^ 1) * scalars[1]) +
172 (cntl2[
i * 8 + 1] & scalars[2]) +
173 (cntl3[
i * 8 + 1] & scalars[3]);
174 target[
i * 8 + 2] = src0[((char)permuters[
i][2 * 2]) / 2] +
175 ((
i + 1) % 2 * scalars[0]) + (((
i >> 1) ^ 1) * scalars[1]) +
176 (cntl2[
i * 8 + 2] & scalars[2]) +
177 (cntl3[
i * 8 + 2] & scalars[3]);
178 target[
i * 8 + 3] = src0[((char)permuters[
i][3 * 2]) / 2] +
179 ((
i + 1) % 2 * scalars[0]) + (((
i >> 1) ^ 1) * scalars[1]) +
180 (cntl2[
i * 8 + 3] & scalars[2]) +
181 (cntl3[
i * 8 + 3] & scalars[3]);
182 target[
i * 8 + 4] = src0[((char)permuters[
i][4 * 2]) / 2] +
183 ((
i + 1) % 2 * scalars[0]) + (((
i >> 1) ^ 1) * scalars[1]) +
184 (cntl2[
i * 8 + 4] & scalars[2]) +
185 (cntl3[
i * 8 + 4] & scalars[3]);
186 target[
i * 8 + 5] = src0[((char)permuters[
i][5 * 2]) / 2] +
187 ((
i + 1) % 2 * scalars[0]) + (((
i >> 1) ^ 1) * scalars[1]) +
188 (cntl2[
i * 8 + 5] & scalars[2]) +
189 (cntl3[
i * 8 + 5] & scalars[3]);
190 target[
i * 8 + 6] = src0[((char)permuters[
i][6 * 2]) / 2] +
191 ((
i + 1) % 2 * scalars[0]) + (((
i >> 1) ^ 1) * scalars[1]) +
192 (cntl2[
i * 8 + 6] & scalars[2]) +
193 (cntl3[
i * 8 + 6] & scalars[3]);
194 target[
i * 8 + 7] = src0[((char)permuters[
i][7 * 2]) / 2] +
195 ((
i + 1) % 2 * scalars[0]) + (((
i >> 1) ^ 1) * scalars[1]) +
196 (cntl2[
i * 8 + 7] & scalars[2]) +
197 (cntl3[
i * 8 + 7] & scalars[3]);
FORCE_INLINE void _mm_store_si128(__m128i *p, __m128i a)
Definition: sse2neon.h:5937
FORCE_INLINE __m128i _mm_and_si128(__m128i, __m128i)
Definition: sse2neon.h:3128
FORCE_INLINE __m128i _mm_add_epi16(__m128i a, __m128i b)
Definition: sse2neon.h:2969
FORCE_INLINE __m128i _mm_shuffle_epi8(__m128i a, __m128i b)
Definition: sse2neon.h:7069
FORCE_INLINE __m128i _mm_load_si128(const __m128i *p)
Definition: sse2neon.h:4471
#define _mm_shufflelo_epi16(a, imm)
Definition: sse2neon.h:5459
int64x2_t __m128i
Definition: sse2neon.h:244
#define _mm_shuffle_epi32(a, imm)
Definition: sse2neon.h:5358
static void volk_16i_branch_4_state_8_a_ssse3(short *target, short *src0, char **permuters, short *cntl2, short *cntl3, short *scalars)
Definition: volk_16i_branch_4_state_8.h:55
static void volk_16i_branch_4_state_8_generic(short *target, short *src0, char **permuters, short *cntl2, short *cntl3, short *scalars)
Definition: volk_16i_branch_4_state_8.h:155
for i
Definition: volk_config_fixed.tmpl.h:13