From 8a59463351452473ea8dcb0d9d0fc0df70955c07 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Tue, 13 Aug 2013 01:01:40 -0700 Subject: [PATCH] Disabling warnings you don't understand = bad. --- GPU/GPUCommon.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/GPU/GPUCommon.h b/GPU/GPUCommon.h index 43ae9a5530..85ccefacb7 100644 --- a/GPU/GPUCommon.h +++ b/GPU/GPUCommon.h @@ -8,7 +8,6 @@ #include #elif defined(_M_SSE) #include -#pragma warning(disable:4799) #endif typedef ThreadEventQueue 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;