COP1 FP 32-bit round to integer doable with intrinsics?

This commit is contained in:
unknown 2015-09-14 22:55:23 -04:00
parent c3b394607c
commit a0409357b8
1 changed files with 8 additions and 2 deletions

View File

@ -2364,7 +2364,10 @@ __inline void Float_RoundToInteger32( int * Dest, float * Source )
fistp dword ptr [edi]
}
#else
g_Notify->BreakPoint(__FILEW__,__LINE__);
__m128 xmm;
xmm = _mm_load_ss(Source);
*(Dest) = _mm_cvt_ss2si(xmm);
#endif
}
@ -2379,7 +2382,10 @@ __inline void Float_RoundToInteger64( __int64 * Dest, float * Source )
fistp qword ptr [edi]
}
#else
g_Notify->BreakPoint(__FILEW__,__LINE__);
__m128 xmm;
xmm = _mm_load_ss(Source);
*(Dest) = _mm_cvtss_si64(xmm);
#endif
}