[dpdk-dev,04/18] eal: remove unneeded conditionals for SSE headers

Message ID 4685675.qTixDyZR3a@xps (mailing list archive)
State Not Applicable, archived
Headers

Checks

Context Check Description
ci/checkpatch warning coding style issues
ci/Intel-compilation success Compilation OK

Commit Message

Thomas Monjalon July 4, 2017, 12:23 p.m. UTC
  20/06/2017 17:22, Bruce Richardson:
> 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 <bruce.richardson@intel.com>
> ---
>  lib/librte_eal/common/include/arch/x86/rte_vect.h | 16 +---------------
>  1 file changed, 1 insertion(+), 15 deletions(-)

I'm adding rte_pause:
  

Patch

--- 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 <emmintrin.h>
 static inline void rte_pause(void)
 {
        _mm_pause();
 }
-#else
-static inline void rte_pause(void)
-{
-}
-#endif
 
 #ifdef __cplusplus
 }