Commit a6c880c3 authored by hybrid's avatar hybrid

Finally reverted almost all changes regarding round. Seems to be a too recent...

Finally reverted almost all changes regarding round. Seems to be a too recent feature as almost no compiler supports it.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@903 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 2c7b3dbe
......@@ -17,11 +17,6 @@
#define floorf(X) floor(X)
#define powf(X,Y) pow(X,Y)
#define fmodf(X,Y) fmod(X,Y)
#if defined(_IRR_SOLARIS_PLATFORM_)
#define roundf(X) (floor( X + 0.5f ))
#else
#define roundf(X) round(X)
#endif
#endif
namespace irr
......@@ -240,7 +235,7 @@ namespace core
inline f32 round_( f32 x )
{
return roundf(x);
return floor( x + 0.5f );
}
REALINLINE void clearFPUException ()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment