Build: More consistently avoid _M_ defines.

We use PPSSPP_ARCH in several places already, this makes it more complete.
This commit is contained in:
Unknown W. Brackets committed 2021-03-02 21:49:21 -08:00
1 parent d9aecffd72
commit 4178f09e57
28 files changed
+102 -90

No files matched your search

+6 -6
View File
@@ -16,9 +16,9 @@
// http://code.google.com/p/dolphin-emu/
// Reference : https://stackoverflow.com/questions/6121792/how-to-check-if-a-cpu-supports-the-sse3-instruction-set
#if defined(_M_IX86) || defined(_M_X64)
#include "ppsspp_config.h"
#if PPSSPP_ARCH(X86) || PPSSPP_ARCH(AMD64)
#ifdef __ANDROID__
#include <sys/stat.h>
#include <fcntl.h>
@@ -141,9 +141,9 @@ static std::vector<int> ParseCPUList(const std::string &filename) {
// Detects the various cpu features
void CPUInfo::Detect() {
memset(this, 0, sizeof(*this));
#ifdef _M_IX86
#if PPSSPP_ARCH(X86)
Mode64bit = false;
#elif defined (_M_X64)
#elif PPSSPP_ARCH(AMD64)
Mode64bit = true;
OS64bit = true;
#endif
@@ -151,7 +151,7 @@ void CPUInfo::Detect() {
#if PPSSPP_PLATFORM(UWP)
OS64bit = Mode64bit; // TODO: Not always accurate!
#elif defined(_WIN32) && defined(_M_IX86)
#elif defined(_WIN32) && PPSSPP_ARCH(X86)
BOOL f64 = false;
IsWow64Process(GetCurrentProcess(), &f64);
OS64bit = (f64 == TRUE) ? true : false;
@@ -441,4 +441,4 @@ std::string CPUInfo::Summarize()
return sum;
}
#endif // defined(_M_IX86) || defined(_M_X64)
#endif // PPSSPP_ARCH(X86) || PPSSPP_ARCH(AMD64)