From: Bruce Richardson Date: Tue, 20 Jun 2017 15:22:59 +0000 (+0100) Subject: eal: remove unneeded conditionals for SSE headers X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=f46e442ca01539ff83bf8726e873d170c3eb87f3;p=dpdk.git eal: remove unneeded conditionals for SSE headers Our x86 baseline is to have support for SSE4.2, so therefore there is no point in conditions around the inclusion of SSE1 - SSE4 headers. Signed-off-by: Bruce Richardson Acked-by: Konstantin Ananyev Signed-off-by: Thomas Monjalon --- diff --git a/lib/librte_eal/common/include/arch/x86/rte_pause.h b/lib/librte_eal/common/include/arch/x86/rte_pause.h index 22b879a7be..bb1e454622 100644 --- a/lib/librte_eal/common/include/arch/x86/rte_pause.h +++ b/lib/librte_eal/common/include/arch/x86/rte_pause.h @@ -40,17 +40,11 @@ extern "C" { #include "generic/rte_pause.h" -#ifdef __SSE2__ #include static inline void rte_pause(void) { _mm_pause(); } -#else -static inline void rte_pause(void) -{ -} -#endif #ifdef __cplusplus } diff --git a/lib/librte_eal/common/include/arch/x86/rte_vect.h b/lib/librte_eal/common/include/arch/x86/rte_vect.h index 1b4b85dd49..03fc991ed9 100644 --- a/lib/librte_eal/common/include/arch/x86/rte_vect.h +++ b/lib/librte_eal/common/include/arch/x86/rte_vect.h @@ -45,21 +45,7 @@ #if (defined(__ICC) || (__GNUC__ == 4 && __GNUC_MINOR__ < 4)) -#ifdef __SSE__ -#include -#endif - -#ifdef __SSE2__ -#include -#endif - -#ifdef __SSE3__ -#include -#endif - -#if defined(__SSE4_2__) || defined(__SSE4_1__) -#include -#endif +#include /* SSE4 */ #if defined(__AVX__) #include