mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Don't assume _MSC_VER / _WIN32 mean x86/x64.
This commit is contained in:
parent
055aa0c881
commit
d165680ee7
2 changed files with 5 additions and 7 deletions
|
@ -120,7 +120,9 @@ private:
|
|||
#define __chdir chdir
|
||||
#endif
|
||||
|
||||
#if defined __GNUC__
|
||||
#if !defined(__GNUC__) && (defined(_M_X64) || defined(_M_IX86))
|
||||
# define _M_SSE 0x402
|
||||
#else
|
||||
# if defined __SSE4_2__
|
||||
# define _M_SSE 0x402
|
||||
# elif defined __SSE4_1__
|
||||
|
@ -132,8 +134,6 @@ private:
|
|||
# elif defined __SSE2__
|
||||
# define _M_SSE 0x200
|
||||
# endif
|
||||
#elif ((_MSC_VER >= 1500) || __INTEL_COMPILER) && !defined(_XBOX) // Visual Studio 2008
|
||||
# define _M_SSE 0x402
|
||||
#endif
|
||||
|
||||
#include "Swap.h"
|
||||
|
|
|
@ -1173,18 +1173,16 @@ VertexDecoderJitCache::VertexDecoderJitCache()
|
|||
AllocCodeSpace(1024 * 64 * 4);
|
||||
|
||||
// Add some random code to "help" MSVC's buggy disassembler :(
|
||||
#if defined(_WIN32)
|
||||
#if defined(_WIN32) && (defined(_M_IX86) || defined(_M_X64))
|
||||
using namespace Gen;
|
||||
for (int i = 0; i < 100; i++) {
|
||||
MOV(32, R(EAX), R(EBX));
|
||||
RET();
|
||||
}
|
||||
#else
|
||||
#ifdef ARM
|
||||
#elif defined(ARM)
|
||||
BKPT(0);
|
||||
BKPT(0);
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
|
||||
void VertexDecoderJitCache::Clear() {
|
||||
|
|
Loading…
Add table
Reference in a new issue