aboutsummaryrefslogtreecommitdiffstats
path: root/src/vppinfra
diff options
context:
space:
mode:
Diffstat (limited to 'src/vppinfra')
-rw-r--r--src/vppinfra/vector.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/vppinfra/vector.h b/src/vppinfra/vector.h
index 491e7cfe547..5da1c19037b 100644
--- a/src/vppinfra/vector.h
+++ b/src/vppinfra/vector.h
@@ -54,6 +54,14 @@
#define CLIB_HAVE_VEC128
#endif
+#if defined (__AVX__)
+#define CLIB_HAVE_VEC256
+#endif
+
+#if defined (__AVX512F__)
+#define CLIB_HAVE_VEC512
+#endif
+
/* 128 implies 64 */
#ifdef CLIB_HAVE_VEC128
#define CLIB_HAVE_VEC64
@@ -116,6 +124,23 @@ typedef f32 f32x8 _vector_size (32);
typedef f64 f64x4 _vector_size (32);
#endif /* CLIB_HAVE_VEC128 */
+#ifdef CLIB_HAVE_VEC512
+/* Signed 512 bit. */
+typedef i8 i8x64 _vector_size (64);
+typedef i16 i16x32 _vector_size (64);
+typedef i32 i32x16 _vector_size (64);
+typedef long long i64x8 _vector_size (64);
+
+/* Unsigned 512 bit. */
+typedef u8 u8x64 _vector_size (64);
+typedef u16 u16x32 _vector_size (64);
+typedef u32 u32x16 _vector_size (64);
+typedef u64 u64x8 _vector_size (64);
+
+typedef f32 f32x16 _vector_size (64);
+typedef f64 f64x8 _vector_size (64);
+#endif /* CLIB_HAVE_VEC512 */
+
/* Vector word sized types. */
#ifndef CLIB_VECTOR_WORD_BITS
#ifdef CLIB_HAVE_VEC128