aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2018-07-26 10:25:58 +0200
committerDamjan Marion <dmarion@me.com>2018-07-26 10:58:52 +0000
commit48a87f2c9546bc60b776c4812339647616b2f46d (patch)
tree873d30f759ae3fa2309f0df0716567cf188608f3 /src
parentae9118055f6236b71145ace400464aa709265ff0 (diff)
vppinfra: add SSE4.2 version of u8x16_shuffle
Change-Id: I4bf1cfe5a9492092a7362675079c47629b6f0ee8 Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src')
-rw-r--r--src/vppinfra/vector_sse42.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/vppinfra/vector_sse42.h b/src/vppinfra/vector_sse42.h
index deb98776f7f..5134855d2ae 100644
--- a/src/vppinfra/vector_sse42.h
+++ b/src/vppinfra/vector_sse42.h
@@ -607,6 +607,12 @@ u32x4_hadd (u32x4 v1, u32x4 v2)
return (u32x4) _mm_hadd_epi32 ((__m128i) v1, (__m128i) v2);
}
+static_always_inline u8x16
+u8x16_shuffle (u8x16 v, u8x16 m)
+{
+ return (u8x16) _mm_shuffle_epi8 ((__m128i) v, (__m128i) m);
+}
+
#endif /* included_vector_sse2_h */
/*