mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2024-12-25 16:15:38 +00:00
Merge pull request #2626 from yuriks/msvc2017
Fix building with MSVC 2017
This commit is contained in:
commit
bc510f942c
2
externals/boost
vendored
2
externals/boost
vendored
|
@ -1 +1 @@
|
|||
Subproject commit f005c955f8147a29667aa0b65257abc3dd520b0c
|
||||
Subproject commit 351972396392c97a659b9a02f34ce9269293d21f
|
|
@ -8,9 +8,9 @@
|
|||
#include "common/common_types.h"
|
||||
#include "cpu_detect.h"
|
||||
|
||||
namespace Common {
|
||||
|
||||
#ifndef _MSC_VER
|
||||
#ifdef _MSC_VER
|
||||
#include <intrin.h>
|
||||
#else
|
||||
|
||||
#if defined(__DragonFly__) || defined(__FreeBSD__)
|
||||
// clang-format off
|
||||
|
@ -37,13 +37,15 @@ static inline void __cpuid(int info[4], int function_id) {
|
|||
}
|
||||
|
||||
#define _XCR_XFEATURE_ENABLED_MASK 0
|
||||
static u64 _xgetbv(u32 index) {
|
||||
static inline u64 _xgetbv(u32 index) {
|
||||
u32 eax, edx;
|
||||
__asm__ __volatile__("xgetbv" : "=a"(eax), "=d"(edx) : "c"(index));
|
||||
return ((u64)edx << 32) | eax;
|
||||
}
|
||||
|
||||
#endif // ifndef _MSC_VER
|
||||
#endif // _MSC_VER
|
||||
|
||||
namespace Common {
|
||||
|
||||
// Detects the various CPU features
|
||||
static CPUCaps Detect() {
|
||||
|
|
Loading…
Reference in a new issue