summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2016-10-20 10:08:03 +0100
committerDamjan Marion <damarion@cisco.com>2016-10-20 10:08:03 +0100
commit34d77910018250cfb9c72051bdf4b7cdc04379de (patch)
treea549975fdad1d66ea7bb15111afc3d79894d56b2
parent1a939e845efe697bd3718ff433a523d43417b56b (diff)
vppinfra: add 256-bit vector typedefs
Change-Id: Ic07c1c25f5ad99225209c73b5ff4deb9c52f3b1e Signed-off-by: Damjan Marion <damarion@cisco.com>
-rw-r--r--vppinfra/vppinfra/vector.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/vppinfra/vppinfra/vector.h b/vppinfra/vppinfra/vector.h
index 6bea737d247..58fc808abcc 100644
--- a/vppinfra/vppinfra/vector.h
+++ b/vppinfra/vppinfra/vector.h
@@ -95,6 +95,21 @@ typedef u64 u64x2 _vector_size (16);
typedef f32 f32x4 _vector_size (16);
typedef f64 f64x2 _vector_size (16);
+
+/* Signed 256 bit. */
+typedef i8 i8x32 _vector_size (32);
+typedef i16 i16x16 _vector_size (32);
+typedef i32 i32x8 _vector_size (32);
+typedef long long i64x4 _vector_size (32);
+
+/* Unsigned 256 bit. */
+typedef u8 u8x32 _vector_size (32);
+typedef u16 u16x16 _vector_size (32);
+typedef u32 u32x8 _vector_size (32);
+typedef u64 u64x4 _vector_size (32);
+
+typedef f32 f32x8 _vector_size (32);
+typedef f64 f64x4 _vector_size (32);
#endif /* CLIB_HAVE_VEC128 */
/* Vector word sized types. */