|
@@ -104,13 +104,11 @@ void GetCPUData(struct cpu_id_t* data)
|
|
|
|
|
|
|
|
void InitFPU()
|
|
void InitFPU()
|
|
|
{
|
|
{
|
|
|
- #if !defined(ANDROID) && !defined(IOS) && !defined(RASPI) && !defined(__x86_64__) && !defined(_M_AMD64)
|
|
|
|
|
|
|
+ #if !defined(ENABLE_LUA_JIT) && !defined(ANDROID) && !defined(IOS) && !defined(RASPI) && !defined(__x86_64__) && !defined(_M_AMD64)
|
|
|
// Make sure FPU is in round-to-nearest, single precision mode
|
|
// Make sure FPU is in round-to-nearest, single precision mode
|
|
|
// This ensures Direct3D and OpenGL behave similarly, and all threads behave similarly
|
|
// This ensures Direct3D and OpenGL behave similarly, and all threads behave similarly
|
|
|
#ifdef _MSC_VER
|
|
#ifdef _MSC_VER
|
|
|
- #ifndef ENABLE_LUA_JIT
|
|
|
|
|
_controlfp(_RC_NEAR | _PC_24, _MCW_RC | _MCW_PC);
|
|
_controlfp(_RC_NEAR | _PC_24, _MCW_RC | _MCW_PC);
|
|
|
- #endif
|
|
|
|
|
#else
|
|
#else
|
|
|
unsigned control = GetFPUState();
|
|
unsigned control = GetFPUState();
|
|
|
control &= ~(FPU_CW_PREC_MASK | FPU_CW_ROUND_MASK);
|
|
control &= ~(FPU_CW_PREC_MASK | FPU_CW_ROUND_MASK);
|