eal/x86: use cpuid builtin
authorSergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com>
Wed, 23 Aug 2017 15:00:27 +0000 (16:00 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 11 Oct 2017 19:59:56 +0000 (21:59 +0200)
commit5b618b5b296f8495ecb4dc2baaccfa6ae31d0e40
tree84adad607315c9cf44dfe8d370d26017e4658a07
parentd65b3b1668f2037745407c3909c43d85a18692a6
eal/x86: use cpuid builtin

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 <sergio.gonzalez.monroy@intel.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
lib/librte_eal/common/arch/x86/rte_cpuflags.c