summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaghuveer Devulapalli <raghuveer.devulapalli@intel.com>2019-05-23 11:31:51 -0700
committerRaghuveer Devulapalli <raghuveer.devulapalli@intel.com>2019-08-03 10:50:04 -0700
commit0f78154c046a8f25fed6266fe4dbf4c903b6c4ce (patch)
tree80651d3abba3255b40cea328adca0761dbc15f00
parent8589d4839dab4158abe1b241390c3d3838445721 (diff)
downloadnumpy-0f78154c046a8f25fed6266fe4dbf4c903b6c4ce.tar.gz
BUG: eliminate unsed variables warning in cpuid
-rw-r--r--numpy/core/src/umath/cpuid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/src/umath/cpuid.c b/numpy/core/src/umath/cpuid.c
index 9d4ba13d8..72c6493e8 100644
--- a/numpy/core/src/umath/cpuid.c
+++ b/numpy/core/src/umath/cpuid.c
@@ -51,9 +51,9 @@ int os_avx512_support(void)
static NPY_INLINE
int cpu_supports_fma(void)
{
+#ifdef __x86_64__
unsigned int feature = 0x01;
unsigned int a, b, c, d;
-#ifdef __x86_64__
__asm__ volatile (
"cpuid" "\n\t"
: "=a" (a), "=b" (b), "=c" (c), "=d" (d)