summaryrefslogtreecommitdiffstats
path: root/src/cpuid.h
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2013-11-29 05:33:12 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2013-11-29 05:35:49 +0100
commit61349d3d273aa23935b0c413c5885005db2669db (patch)
tree9cbc05acb31476d45b48d4a51e9edca19328b8e8 /src/cpuid.h
parentc13fe36e4c0730037ae75d51f7f052d916486aac (diff)
downloadfastd-61349d3d273aa23935b0c413c5885005db2669db.tar
fastd-61349d3d273aa23935b0c413c5885005db2669db.zip
Compile with -std=c99 and restructure some code to ensure there is no invalid aliasing (hopefully)
Diffstat (limited to 'src/cpuid.h')
-rw-r--r--src/cpuid.h2
1 files changed, 1 insertions, 1 deletions
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;
}