mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-14 10:09:32 +01:00
Disabling warnings you don't understand = bad.
This commit is contained in:
1 parent
39950b077d
commit
8a59463351
1 file changed
+4
-2
+4
-2
@@ -8,7 +8,6 @@
|
||||
#include <atomic>
|
||||
#elif defined(_M_SSE)
|
||||
#include <xmmintrin.h>
|
||||
#pragma warning(disable:4799)
|
||||
#endif
|
||||
|
||||
typedef ThreadEventQueue<GPUInterface, GPUEvent, GPUEventType, GPU_EVENT_INVALID, GPU_EVENT_SYNC_THREAD, GPU_EVENT_FINISH_EVENT_LOOP> GPUThreadEventQueue;
|
||||
@@ -49,7 +48,9 @@ public:
|
||||
return curTickEst_;
|
||||
#elif defined(_M_SSE)
|
||||
__m64 result = *(__m64 *)&curTickEst_;
|
||||
return *(u64 *)&result;
|
||||
u64 safeResult = *(u64 *)&result;
|
||||
_mm_empty();
|
||||
return safeResult;
|
||||
#else
|
||||
lock_guard guard(curTickEstLock_);
|
||||
return curTickEst_;
|
||||
@@ -120,6 +121,7 @@ protected:
|
||||
#elif defined(_M_SSE)
|
||||
__m64 result = *(__m64 *)&value;
|
||||
*(__m64 *)&curTickEst_ = result;
|
||||
_mm_empty();
|
||||
#else
|
||||
lock_guard guard(curTickEstLock_);
|
||||
curTickEst_ = value;
|
||||
|
||||
Reference in new issue
Block a user