From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 8B4B09A97 for ; Wed, 18 Mar 2015 05:50:05 +0100 (CET) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga102.fm.intel.com with ESMTP; 17 Mar 2015 21:50:04 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.11,420,1422950400"; d="scan'208";a="666767441" Received: from pgsmsx105.gar.corp.intel.com ([10.221.44.96]) by orsmga001.jf.intel.com with ESMTP; 17 Mar 2015 21:50:03 -0700 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by PGSMSX105.gar.corp.intel.com (10.221.44.96) with Microsoft SMTP Server (TLS) id 14.3.224.2; Wed, 18 Mar 2015 12:48:37 +0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.36]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.10]) with mapi id 14.03.0224.002; Wed, 18 Mar 2015 12:48:36 +0800 From: "Qiu, Michael" To: "Ananyev, Konstantin" , "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH] common/rte_memcpy: Fix x86intrin.h missed Thread-Index: AQHQXVvB4zWTrNpmV0O9xmgtFb5N3Q== Date: Wed, 18 Mar 2015 04:48:35 +0000 Message-ID: <533710CFB86FA344BFBF2D6802E60286D14935@SHSMSX101.ccr.corp.intel.com> References: <1426230179-1891-1-git-send-email-michael.qiu@intel.com> <2601191342CEEE43887BDE71AB977258213F5E13@irsmsx105.ger.corp.intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH] common/rte_memcpy: Fix x86intrin.h missed X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Mar 2015 04:50:06 -0000 On 3/13/2015 5:45 PM, Ananyev, Konstantin wrote:=0A= > Hi Michael,=0A= >=0A= >> -----Original Message-----=0A= >> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Michael Qiu=0A= >> Sent: Friday, March 13, 2015 7:03 AM=0A= >> To: dev@dpdk.org=0A= >> Subject: [dpdk-dev] [PATCH] common/rte_memcpy: Fix x86intrin.h missed=0A= >>=0A= >> rte_memcpy.h(46): catastrophic error: cannot open source file "x86intrin= .h"=0A= >>=0A= >> For icc and old gcc, this header is not included.=0A= >>=0A= >> Signed-off-by: Michael Qiu =0A= >> ---=0A= >> lib/librte_eal/common/include/arch/x86/rte_memcpy.h | 20 ++++++++++++++= ++++++=0A= >> 1 file changed, 20 insertions(+)=0A= >>=0A= >> diff --git a/lib/librte_eal/common/include/arch/x86/rte_memcpy.h b/lib/l= ibrte_eal/common/include/arch/x86/rte_memcpy.h=0A= >> index ac72069..bd10d36 100644=0A= >> --- a/lib/librte_eal/common/include/arch/x86/rte_memcpy.h=0A= >> +++ b/lib/librte_eal/common/include/arch/x86/rte_memcpy.h=0A= >> @@ -43,7 +43,27 @@=0A= >> #include =0A= >> #include =0A= >> #include =0A= >> +#if (defined(__ICC) || (__GNUC__ =3D=3D 4 && __GNUC_MINOR__ < 4))=0A= >> +=0A= >> +#ifdef __SSE__=0A= >> +#include =0A= >> +#endif=0A= >> +=0A= >> +#ifdef __SSE2__=0A= >> +#include =0A= >> +#endif=0A= >> +=0A= >> +#if defined(__SSE4_2__) || defined(__SSE4_1__)=0A= >> +#include =0A= >> +#endif=0A= >> +=0A= >> +#if defined(__AVX__)=0A= >> +#include =0A= >> +#endif=0A= >> +=0A= >> +#else=0A= >> #include =0A= >> +#endif=0A= >>=0A= >> #ifdef __cplusplus=0A= >> extern "C" {=0A= >> --=0A= >> 1.9.3=0A= > Wonder why to spread this thing over?=0A= > Why not just #include ?=0A= =0A= Yes, I will send other patch to fix this,=0A= =0A= Thanks,=0A= Michael=0A= > Konstantin=0A= >=0A= >=0A= >=0A= >=0A= =0A=