diff options
-rw-r--r-- | src/vppinfra/vector_avx2.h | 6 |
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 */ /* |