From 08f090be7e2029b5a4fd699bd6383eeaff7f2920 Mon Sep 17 00:00:00 2001 From: unknown Date: Sat, 26 Sep 2015 16:30:45 -0400 Subject: [PATCH] implemented COP1 round FP64 to int64 --- 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 e412e8d36..d5cddf7d9 100644 --- a/Source/Project64/N64 System/Interpreter/Interpreter Ops.cpp +++ b/Source/Project64/N64 System/Interpreter/Interpreter Ops.cpp @@ -2614,7 +2614,10 @@ __inline void Double_RoundToInteger64( unsigned __int64 * Dest, double * Source fistp qword ptr [edi] } #else - g_Notify->BreakPoint(__FILEW__,__LINE__); + __m128d xmm; + + xmm = _mm_load_sd(Source); + *(Dest) = _mm_cvtsd_si64(xmm); #endif }