aboutsummaryrefslogtreecommitdiffstats
path: root/src/vppinfra/vector_avx2.h
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2018-07-10 14:28:36 +0200
committerMarco Varlese <marco.varlese@suse.de>2018-07-12 08:06:25 +0000
commit779c865cc6c7af5bb435d8b3465d80685370edb2 (patch)
treef0d293e745e44e4a077e138668f590983d4867c0 /src/vppinfra/vector_avx2.h
parent46f001d2aca53aff029a3cfcc26171d1145282f9 (diff)
vppinfra: AVX2 blend
Change-Id: Ie7a64318f10ebb535c98aff4e25cdfc48f60ff33 Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vppinfra/vector_avx2.h')
-rw-r--r--src/vppinfra/vector_avx2.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/vppinfra/vector_avx2.h b/src/vppinfra/vector_avx2.h
index 66c46f226aa..a95ee5e2b7d 100644
--- a/src/vppinfra/vector_avx2.h
+++ b/src/vppinfra/vector_avx2.h
@@ -165,6 +165,12 @@ u16x16_mask_last (u16x16 v, u8 n_last)
return v & masks[16 - n_last];
}
+static_always_inline u32x8
+u32x8_blend (u32x8 v0, u32x8 v1, u8 opt)
+{
+ return (u32x8) _mm256_blend_epi32 ((__m256i) v0, (__m256i) v1, opt);
+}
+
#endif /* included_vector_avx2_h */
/*