diff options
author | Damjan Marion <damarion@cisco.com> | 2018-05-05 12:30:28 +0200 |
---|---|---|
committer | Damjan Marion <dmarion.lists@gmail.com> | 2018-05-09 09:32:39 +0000 |
commit | ee7f0bd9e7ce4106d3b9511b0efede4326bded51 (patch) | |
tree | c29b3111ae18ebe49ee3e3f8449857076f3b06d9 /src/vppinfra/vector_avx2.h | |
parent | af05bc018a465a993e795d7c81c2eb12d5b77e44 (diff) |
dpdk: tx code rework
Change-Id: Ifea9c772e8784642433b92091f5769eb9ec06890
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vppinfra/vector_avx2.h')
-rw-r--r-- | src/vppinfra/vector_avx2.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/vppinfra/vector_avx2.h b/src/vppinfra/vector_avx2.h index ad7e7d4dea8..9c1ce4700c5 100644 --- a/src/vppinfra/vector_avx2.h +++ b/src/vppinfra/vector_avx2.h @@ -69,6 +69,18 @@ u32x8_extract_hi (u32x8 v) return (u32x4) _mm256_extracti128_si256 ((__m256i) v, 1); } +always_inline u32x8 +u32x8_insert_lo (u32x8 v1, u32x4 v2) +{ + return (u32x8) _mm256_inserti128_si256 ((__m256i) v1, (__m128i) v2, 0); +} + +always_inline u32x8 +u32x8_insert_hi (u32x8 v1, u32x4 v2) +{ + return (u32x8) _mm256_inserti128_si256 ((__m256i) v1, (__m128i) v2, 1); +} + #endif /* included_vector_avx2_h */ /* |