From 5c8f0484da1e3b9d7a71673878cecf34b443da0e Mon Sep 17 00:00:00 2001 From: cutealien Date: Mon, 16 Dec 2019 13:49:38 +0000 Subject: [PATCH] Remove clearFPUException which did nothing. That function just returned true for years not doing anything. As far as I can see from the web it's about some rare cases in DOS compatibility mode with 32-bit apps. But not sure why it was called exactly in this place in the past. So no comments, no idea what it's about and not actually doing anything and probably not needed on any platform anyone still uses ... lets just kick it out. (it did break compiling IRRLICHT_FAST_MATH on x64 which is why I noticed it) git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6009 dfc29bdd-3216-0410-991c-e03cc46cb475 --- include/irrMath.h | 14 -------------- source/Irrlicht/CNullDriver.cpp | 1 - 2 files changed, 15 deletions(-) diff --git a/include/irrMath.h b/include/irrMath.h index 84b2d10..3c664e2 100644 --- a/include/irrMath.h +++ b/include/irrMath.h @@ -488,20 +488,6 @@ namespace core return floorf( x + 0.5f ); } - REALINLINE void clearFPUException () - { -#ifdef IRRLICHT_FAST_MATH - return; - #ifdef feclearexcept - feclearexcept(FE_ALL_EXCEPT); - #elif defined(_MSC_VER) - __asm fnclex; - #elif defined(__GNUC__) && defined(__x86__) - __asm__ __volatile__ ("fclex \n\t"); - #endif -#endif - } - // calculate: sqrt ( x ) REALINLINE f32 squareroot(const f32 f) { diff --git a/source/Irrlicht/CNullDriver.cpp b/source/Irrlicht/CNullDriver.cpp index dc0cff6..7af3d13 100644 --- a/source/Irrlicht/CNullDriver.cpp +++ b/source/Irrlicht/CNullDriver.cpp @@ -319,7 +319,6 @@ void CNullDriver::deleteAllTextures() bool CNullDriver::beginScene(u16 clearFlag, SColor clearColor, f32 clearDepth, u8 clearStencil, const SExposedVideoData& videoData, core::rect* sourceRect) { - core::clearFPUException(); PrimitivesDrawn = 0; return true; }