From 55900aa94d0772489fb3320cea7ba30ffb20a154 Mon Sep 17 00:00:00 2001 From: Marvin Liu Date: Thu, 19 Mar 2015 11:16:52 +0800 Subject: [PATCH] eal/x86: fix build sse3 functions with gcc < 4.4 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit In Suse11 SP3, there'll be errors for not found sse3 functions. rte_memcpy.h: In function ‘rte_memcpy’: rte_memcpy.h:625: error: implicit declaration of function ‘_mm_alignr_epi8’ rte_memcpy.h:625: error: nested extern declaration of ‘_mm_alignr_epi8’ rte_memcpy.h:625: error: incompatible type for argument 2 of ‘_mm_storeu_si128’ These functions defined in tmmintrin.h and should be included in. Fixes: 9144d6bcdefd ("eal/x86: optimize memcpy for SSE and AVX") Signed-off-by: Marvin Liu --- lib/librte_eal/common/include/arch/x86/rte_vect.h | 4 ++++ 1 file changed, 4 insertions(+) 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 d5bcdb9bbb..b698797c80 100644 --- a/lib/librte_eal/common/include/arch/x86/rte_vect.h +++ b/lib/librte_eal/common/include/arch/x86/rte_vect.h @@ -50,6 +50,10 @@ #include #endif +#ifdef __SSE3__ +#include +#endif + #if defined(__SSE4_2__) || defined(__SSE4_1__) #include #endif -- 2.20.1