From 7da9b5be41395cc6355f9cf278106aae7fd9f991 Mon Sep 17 00:00:00 2001 From: Mohsin Kazmi Date: Fri, 27 Aug 2021 18:57:16 +0200 Subject: vppinfra: add compress functions for u64, u16 and u8 Type: improvement Change-Id: I2640148b8959f9a8303520ba2815fe02f1e47928 Signed-off-by: Mohsin Kazmi --- src/vppinfra/vector_avx512.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/vppinfra/vector_avx512.h') diff --git a/src/vppinfra/vector_avx512.h b/src/vppinfra/vector_avx512.h index 3a01c1ed824..5da490162d0 100644 --- a/src/vppinfra/vector_avx512.h +++ b/src/vppinfra/vector_avx512.h @@ -338,9 +338,17 @@ _ (u8x16, u16, _mm, __m128i, epi8) #ifdef CLIB_HAVE_VEC256 #define CLIB_HAVE_VEC256_COMPRESS +#ifdef __AVX512VBMI2__ +#define CLIB_HAVE_VEC256_COMPRESS_U8_U16 +#endif + #endif #ifdef CLIB_HAVE_VEC512 #define CLIB_HAVE_VEC512_COMPRESS +#ifdef __AVX512VBMI2__ +#define CLIB_HAVE_VEC512_COMPRESS_U8_U16 +#endif + #endif #ifndef __AVX512VBMI2__ -- cgit 1.2.3-korg