diff options
author | Marat Dukhan <marat@fb.com> | 2017-10-23 15:32:44 -0700 |
---|---|---|
committer | Marat Dukhan <marat@fb.com> | 2017-10-23 15:32:44 -0700 |
commit | 918ffca756d52dce41b581bcb13663985f99b578 (patch) | |
tree | 0b045927143fdfe56dcf9d1ca8663c9cb60bc088 /src | |
parent | ad1ac958af66553fdfbb0ecb40810211e187f0e7 (diff) | |
download | cpuinfo-918ffca756d52dce41b581bcb13663985f99b578.tar.gz |
Make xgetbv wrapper compatible with new Apple clang
Diffstat (limited to 'src')
-rw-r--r-- | src/x86/cpuid.h | 2 |
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 |