Fixed case in header name (thread.h -> Thread.h).
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@659 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
da088e62ad
commit
3aadef14eb
|
@ -33,7 +33,7 @@
|
||||||
|
|
||||||
#include "../Host.h"
|
#include "../Host.h"
|
||||||
|
|
||||||
#include "thread.h" // for g_hEventOnIdle
|
#include "Thread.h" // for g_hEventOnIdle
|
||||||
|
|
||||||
namespace PowerPC
|
namespace PowerPC
|
||||||
{
|
{
|
||||||
|
@ -73,24 +73,24 @@ namespace PowerPC
|
||||||
}
|
}
|
||||||
|
|
||||||
void Init()
|
void Init()
|
||||||
{
|
{
|
||||||
enum {
|
enum {
|
||||||
FPU_PREC_24 = 0 << 8,
|
FPU_PREC_24 = 0 << 8,
|
||||||
FPU_PREC_53 = 2 << 8,
|
FPU_PREC_53 = 2 << 8,
|
||||||
FPU_PREC_64 = 3 << 8,
|
FPU_PREC_64 = 3 << 8,
|
||||||
FPU_PREC_MASK = 3 << 8,
|
FPU_PREC_MASK = 3 << 8,
|
||||||
};
|
};
|
||||||
#ifdef _M_IX86
|
#ifdef _M_IX86
|
||||||
// sets the floating-point lib to 53-bit
|
// sets the floating-point lib to 53-bit
|
||||||
// PowerPC has a 53bit floating pipeline only
|
// PowerPC has a 53bit floating pipeline only
|
||||||
// eg: sscanf is very sensitive
|
// eg: sscanf is very sensitive
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
_control87(_PC_53, MCW_PC);
|
_control87(_PC_53, MCW_PC);
|
||||||
#else
|
#else
|
||||||
unsigned short _mode;
|
unsigned short _mode;
|
||||||
asm ("fstcw %0" : : "m" (_mode));
|
asm ("fstcw %0" : : "m" (_mode));
|
||||||
_mode = (_mode & ~FPU_PREC_MASK) | FPU_PREC_53;
|
_mode = (_mode & ~FPU_PREC_MASK) | FPU_PREC_53;
|
||||||
asm ("fldcw %0" : : "m" (_mode));
|
asm ("fldcw %0" : : "m" (_mode));
|
||||||
#endif
|
#endif
|
||||||
#else
|
#else
|
||||||
//x64 doesn't need this - fpu is done with SSE
|
//x64 doesn't need this - fpu is done with SSE
|
||||||
|
|
Loading…
Reference in New Issue