From 659f1033732c5947e604fad7423d1984e5e3c2e1 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 15 Sep 2015 12:42:36 -0400 Subject: [PATCH] Try SSE intrinsics to match COP1 FP64 round to 32-bit. --- Source/Project64/N64 System/Interpreter/Interpreter Ops.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Source/Project64/N64 System/Interpreter/Interpreter Ops.cpp b/Source/Project64/N64 System/Interpreter/Interpreter Ops.cpp index 064cc3c4d..b52d0be0e 100644 --- a/Source/Project64/N64 System/Interpreter/Interpreter Ops.cpp +++ b/Source/Project64/N64 System/Interpreter/Interpreter Ops.cpp @@ -2592,7 +2592,10 @@ __inline void Double_RoundToInteger32( DWORD * Dest, double * Source ) fistp dword ptr [edi] } #else - g_Notify->BreakPoint(__FILEW__,__LINE__); + __m128d xmm; + + xmm = _mm_load_sd(Source); + *(Dest) = _mm_cvtsd_si32(xmm); #endif }