mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 04:08:55 +00:00
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:
parent
c2ae2e8d58
commit
a887a475e3
4 changed files with 217 additions and 5 deletions
|
@ -30,11 +30,17 @@ inline int iround(float x)
|
|||
{
|
||||
int t;
|
||||
|
||||
__asm volatile
|
||||
#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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue