GeckoCode float operations: Fixed Issue 4387. (hopefully)
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7451 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
4f603ef730
commit
a1882d2517
|
@ -1,4 +1,3 @@
|
|||
|
||||
#include "GeckoCode.h"
|
||||
|
||||
#include "Thread.h"
|
||||
|
@ -687,12 +686,12 @@ bool MathOperation(u32& ret, const u32 left, const u32 right, const u8 type)
|
|||
|
||||
// TODO: these float ops good?
|
||||
// A : fadds (single float add)
|
||||
case 0xA :
|
||||
case 0x9 :
|
||||
*(float*)&ret = *(float*)&left + *(float*)&right;
|
||||
break;
|
||||
|
||||
// B : fmuls (single float mul)
|
||||
case 0xB :
|
||||
case 0xA :
|
||||
*(float*)&ret = *(float*)&left * *(float*)&right;
|
||||
break;
|
||||
|
||||
|
|
Loading…
Reference in New Issue