File tree Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -120,7 +120,9 @@ class NonCopyable
120
120
#define __chdir chdir
121
121
#endif
122
122
123
- #if defined __GNUC__
123
+ #if !defined(__GNUC__) && (defined(_M_X64) || defined(_M_IX86))
124
+ # define _M_SSE 0x402
125
+ #else
124
126
# if defined __SSE4_2__
125
127
# define _M_SSE 0x402
126
128
# elif defined __SSE4_1__
@@ -132,8 +134,6 @@ class NonCopyable
132
134
# elif defined __SSE2__
133
135
# define _M_SSE 0x200
134
136
# endif
135
- #elif ((_MSC_VER >= 1500) || __INTEL_COMPILER) && !defined(_XBOX) // Visual Studio 2008
136
- # define _M_SSE 0x402
137
137
#endif
138
138
139
139
#include " Swap.h"
Original file line number Diff line number Diff line change @@ -1173,18 +1173,16 @@ VertexDecoderJitCache::VertexDecoderJitCache()
1173
1173
AllocCodeSpace (1024 * 64 * 4 );
1174
1174
1175
1175
// Add some random code to "help" MSVC's buggy disassembler :(
1176
- #if defined(_WIN32)
1176
+ #if defined(_WIN32) && (defined(_M_IX86) || defined(_M_X64))
1177
1177
using namespace Gen ;
1178
1178
for (int i = 0 ; i < 100 ; i++) {
1179
1179
MOV (32 , R (EAX), R (EBX));
1180
1180
RET ();
1181
1181
}
1182
- #else
1183
- #ifdef ARM
1182
+ #elif defined(ARM)
1184
1183
BKPT (0 );
1185
1184
BKPT (0 );
1186
1185
#endif
1187
- #endif
1188
1186
}
1189
1187
1190
1188
void VertexDecoderJitCache::Clear () {
You can’t perform that action at this time.
0 commit comments