diff --git a/Source/Core/Core/Src/PowerPC/PowerPC.cpp b/Source/Core/Core/Src/PowerPC/PowerPC.cpp index 35ce178b7b..b9f6dd643c 100644 --- a/Source/Core/Core/Src/PowerPC/PowerPC.cpp +++ b/Source/Core/Core/Src/PowerPC/PowerPC.cpp @@ -33,7 +33,7 @@ #include "../Host.h" -#include "thread.h" // for g_hEventOnIdle +#include "Thread.h" // for g_hEventOnIdle namespace PowerPC { @@ -73,24 +73,24 @@ namespace PowerPC } void Init() - { + { enum { FPU_PREC_24 = 0 << 8, FPU_PREC_53 = 2 << 8, FPU_PREC_64 = 3 << 8, FPU_PREC_MASK = 3 << 8, }; - #ifdef _M_IX86 + #ifdef _M_IX86 // sets the floating-point lib to 53-bit // PowerPC has a 53bit floating pipeline only // eg: sscanf is very sensitive #ifdef _WIN32 - _control87(_PC_53, MCW_PC); + _control87(_PC_53, MCW_PC); #else - unsigned short _mode; - asm ("fstcw %0" : : "m" (_mode)); - _mode = (_mode & ~FPU_PREC_MASK) | FPU_PREC_53; - asm ("fldcw %0" : : "m" (_mode)); + unsigned short _mode; + asm ("fstcw %0" : : "m" (_mode)); + _mode = (_mode & ~FPU_PREC_MASK) | FPU_PREC_53; + asm ("fldcw %0" : : "m" (_mode)); #endif #else //x64 doesn't need this - fpu is done with SSE