SWV: Software Video now compiles and runs on x64

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4411 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
XTra.KrazzY
2009-10-12 17:39:09 +00:00
parent c2ae2e8d58
commit a887a475e3
4 changed files with 217 additions and 5 deletions

View File

@ -49,11 +49,17 @@ inline int iround(float x)
{
int t;
#if defined(_WIN32) && !defined(_M_X64)
__asm
{
fld x
fistp t
}
#else
t = (int)x;
if((x - t) >= 0.5)
return t + 1;
#endif
return t;
}