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:
Maarten ter Huurne 2008-09-24 11:55:23 +00:00
parent da088e62ad
commit 3aadef14eb
1 changed files with 8 additions and 8 deletions

View File

@ -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