From 00401489c2d82e1dd997f91480fe6bc441cd6b40 Mon Sep 17 00:00:00 2001 From: Martin Kroeker Date: Mon, 14 Jan 2019 22:38:32 +0100 Subject: [PATCH] Fix missing braces in support_avx() --- cpuid_x86.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cpuid_x86.c b/cpuid_x86.c index 377267f..74cc665 100644 --- a/cpuid_x86.c +++ b/cpuid_x86.c @@ -216,7 +216,7 @@ int support_avx2(){ int eax, ebx, ecx=0, edx; int ret=0; - if (!support_avx) + if (!support_avx()) return 0; cpuid(7, &eax, &ebx, &ecx, &edx); if((ebx & (1<<7)) != 0) @@ -232,7 +232,7 @@ int support_avx512(){ int eax, ebx, ecx, edx; int ret=0; - if (!support_avx) + if (!support_avx()) return 0; cpuid(7, &eax, &ebx, &ecx, &edx); if((ebx & 32) != 32){ -- 2.7.4