Disabling warnings you don't understand = bad.

This commit is contained in:
Unknown W. Brackets 2013-08-13 01:01:40 -07:00
parent 39950b077d
commit 8a59463351

View File

@ -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;