mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-20 19:44:57 +00:00
Interpreter: use IntDouble instead of casts
This commit is contained in:
parent
8290fa1e46
commit
9723a4e2ed
1 changed files with 3 additions and 3 deletions
|
@ -76,9 +76,9 @@ inline double ForceDouble(double d)
|
|||
|
||||
inline double Force25Bit(double d)
|
||||
{
|
||||
u64 di = *(u64*)&d;
|
||||
di = (di & 0xFFFFFFFFF8000000ULL) + (di & 0x8000000);
|
||||
return *(double*)&di;
|
||||
MathUtil::IntDouble x(d);
|
||||
x.i = (x.i & 0xFFFFFFFFF8000000ULL) + (x.i & 0x8000000);
|
||||
return x.d;
|
||||
}
|
||||
|
||||
// these functions allow globally modify operations behaviour
|
||||
|
|
Loading…
Add table
Reference in a new issue