mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 14:49:42 -06:00
Interpreter: use IntDouble instead of casts
This commit is contained in:
@ -76,9 +76,9 @@ inline double ForceDouble(double d)
|
|||||||
|
|
||||||
inline double Force25Bit(double d)
|
inline double Force25Bit(double d)
|
||||||
{
|
{
|
||||||
u64 di = *(u64*)&d;
|
MathUtil::IntDouble x(d);
|
||||||
di = (di & 0xFFFFFFFFF8000000ULL) + (di & 0x8000000);
|
x.i = (x.i & 0xFFFFFFFFF8000000ULL) + (x.i & 0x8000000);
|
||||||
return *(double*)&di;
|
return x.d;
|
||||||
}
|
}
|
||||||
|
|
||||||
// these functions allow globally modify operations behaviour
|
// these functions allow globally modify operations behaviour
|
||||||
|
Reference in New Issue
Block a user