X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvppinfra%2Fvector.h;h=13d7ba270311943e4e1c20cc42ad87d4bcba8f6a;hb=927b0714d758356f03c0b3402fe87dc934154d95;hp=e786275f5d495496ca1c8d761a39499846a0a3ef;hpb=cfcf2f476a7be442844523e99f1867c9386c043e;p=vpp.git diff --git a/src/vppinfra/vector.h b/src/vppinfra/vector.h index e786275f5d4..13d7ba27031 100644 --- a/src/vppinfra/vector.h +++ b/src/vppinfra/vector.h @@ -50,7 +50,7 @@ #define CLIB_HAVE_VEC128 #endif -#if defined (__SSE2__) && __GNUC__ >= 4 +#if defined (__SSE4_2__) && __GNUC__ >= 4 #define CLIB_HAVE_VEC128 #endif @@ -73,7 +73,6 @@ #define _vector_size(n) __attribute__ ((vector_size (n))) -#ifdef CLIB_HAVE_VEC64 /* Signed 64 bit. */ typedef char i8x8 _vector_size (8); typedef short i16x4 _vector_size (8); @@ -86,9 +85,7 @@ typedef unsigned int u32x2 _vector_size (8); /* Floating point 64 bit. */ typedef float f32x2 _vector_size (8); -#endif /* CLIB_HAVE_VEC64 */ -#ifdef CLIB_HAVE_VEC128 /* Signed 128 bit. */ typedef i8 i8x16 _vector_size (16); typedef i16 i16x8 _vector_size (16); @@ -118,9 +115,7 @@ typedef u64 u64x4 _vector_size (32); 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); @@ -135,7 +130,6 @@ 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 @@ -258,8 +252,8 @@ _(i64, 2); #endif -#if defined (__SSE2__) && __GNUC__ >= 4 -#include +#if defined (__SSE4_2__) && __GNUC__ >= 4 +#include #endif #if defined (__ALTIVEC__)