aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarat Dukhan <marat@fb.com>2017-10-23 15:32:44 -0700
committerMarat Dukhan <marat@fb.com>2017-10-23 15:32:44 -0700
commit918ffca756d52dce41b581bcb13663985f99b578 (patch)
tree0b045927143fdfe56dcf9d1ca8663c9cb60bc088 /src
parentad1ac958af66553fdfbb0ecb40810211e187f0e7 (diff)
downloadcpuinfo-918ffca756d52dce41b581bcb13663985f99b578.tar.gz
Make xgetbv wrapper compatible with new Apple clang
Diffstat (limited to 'src')
-rw-r--r--src/x86/cpuid.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/x86/cpuid.h b/src/x86/cpuid.h
index 7da0f67..f24fc98 100644
--- a/src/x86/cpuid.h
+++ b/src/x86/cpuid.h
@@ -74,7 +74,7 @@
#ifndef __native_client__
static inline uint64_t xgetbv(uint32_t ext_ctrl_reg) {
uint32_t lo, hi;
- asm(".byte 0x0F, 0x01, 0xD0" : "=a" (lo), "=d" (hi) : "c" (ext_ctrl_reg));
+ __asm__(".byte 0x0F, 0x01, 0xD0" : "=a" (lo), "=d" (hi) : "c" (ext_ctrl_reg));
return ((uint64_t) hi << 32) | (uint64_t) lo;
}
#endif