From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ferruh Yigit Subject: Re: [PATCH] eal/x86: use cpuid builtin Date: Thu, 5 Oct 2017 00:39:24 +0100 Message-ID: <4098bb3f-3d0a-29ea-2d48-f58172db3683@intel.com> References: <20170823150027.70565-1-sergio.gonzalez.monroy@intel.com> <20170823150027.70565-2-sergio.gonzalez.monroy@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: konstantin.ananyev@intel.com, bruce.richardson@intel.com To: Sergio Gonzalez Monroy , dev@dpdk.org Return-path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id DA7442B9A for ; Thu, 5 Oct 2017 01:39:27 +0200 (CEST) In-Reply-To: <20170823150027.70565-2-sergio.gonzalez.monroy@intel.com> Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 8/23/2017 4:00 PM, Sergio Gonzalez Monroy wrote: > GCC does have the __get_cpuid_count builtin which checks for maximum > supported leaf, but implementations differ between CLANG and GCC. > > This change provides an implementation compatible with both GCC and > CLANG 3.4+. > > Signed-off-by: Sergio Gonzalez Monroy Reviewed-by: Ferruh Yigit