From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id C2A925938 for ; Fri, 13 Mar 2015 08:10:26 +0100 (CET) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP; 13 Mar 2015 00:08:34 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.11,393,1422950400"; d="scan'208";a="698157162" Received: from pgsmsx104.gar.corp.intel.com ([10.221.44.91]) by orsmga002.jf.intel.com with ESMTP; 13 Mar 2015 00:10:25 -0700 Received: from shsmsx104.ccr.corp.intel.com (10.239.4.70) by PGSMSX104.gar.corp.intel.com (10.221.44.91) with Microsoft SMTP Server (TLS) id 14.3.195.1; Fri, 13 Mar 2015 15:08:55 +0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.36]) by SHSMSX104.ccr.corp.intel.com ([169.254.5.149]) with mapi id 14.03.0224.002; Fri, 13 Mar 2015 15:08:48 +0800 From: "Wang, Zhihong" To: "Qiu, Michael" , "dev@dpdk.org" Thread-Topic: [PATCH] common/rte_memcpy: Fix x86intrin.h missed Thread-Index: AQHQXVvBE+YlTSV7eE6MtOv4Ek+JPZ0Z/k5Q Date: Fri, 13 Mar 2015 07:08:47 +0000 Message-ID: References: <1426230179-1891-1-git-send-email-michael.qiu@intel.com> In-Reply-To: <1426230179-1891-1-git-send-email-michael.qiu@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: Fri, 13 Mar 2015 07:10:27 -0000 > -----Original Message----- > From: Qiu, Michael > Sent: Friday, March 13, 2015 3:03 PM > To: dev@dpdk.org > Cc: Wang, Zhihong; Qiu, Michael > Subject: [PATCH] common/rte_memcpy: Fix x86intrin.h missed >=20 > rte_memcpy.h(46): catastrophic error: cannot open source file "x86intrin.= h" >=20 > For icc and old gcc, this header is not included. >=20 > Signed-off-by: Michael Qiu > --- > lib/librte_eal/common/include/arch/x86/rte_memcpy.h | 20 > ++++++++++++++++++++ > 1 file changed, 20 insertions(+) >=20 > diff --git a/lib/librte_eal/common/include/arch/x86/rte_memcpy.h > b/lib/librte_eal/common/include/arch/x86/rte_memcpy.h > index ac72069..bd10d36 100644 > --- a/lib/librte_eal/common/include/arch/x86/rte_memcpy.h > +++ b/lib/librte_eal/common/include/arch/x86/rte_memcpy.h > @@ -43,7 +43,27 @@ > #include > #include > #include > +#if (defined(__ICC) || (__GNUC__ =3D=3D 4 && __GNUC_MINOR__ < 4)) > + > +#ifdef __SSE__ > +#include > +#endif > + > +#ifdef __SSE2__ > +#include > +#endif > + > +#if defined(__SSE4_2__) || defined(__SSE4_1__) #include > +#endif > + > +#if defined(__AVX__) > +#include > +#endif > + > +#else > #include > +#endif >=20 > #ifdef __cplusplus > extern "C" { > -- > 1.9.3 Acked-by: Wang, Zhihong