From 61349d3d273aa23935b0c413c5885005db2669db Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Fri, 29 Nov 2013 05:33:12 +0100 Subject: Compile with -std=c99 and restructure some code to ensure there is no invalid aliasing (hopefully) --- src/cpuid.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cpuid.h') diff --git a/src/cpuid.h b/src/cpuid.h index 0558c09..eab9110 100644 --- a/src/cpuid.h +++ b/src/cpuid.h @@ -41,7 +41,7 @@ static inline uint64_t fastd_cpuid(void) { uint32_t edx, ecx; - asm("cpuid" : "=d"(edx), "=c"(ecx) : "a"((uint32_t)1)); + __asm__("cpuid" : "=d"(edx), "=c"(ecx) : "a"((uint32_t)1)); return ((uint64_t)ecx) << 32 | edx; } -- cgit v1.2.3