Commit 8ce11fa5 authored by hybrid's avatar hybrid

Avoid some optimization macros if not compiling with FAST_MATH.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@871 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 65fc86e4
......@@ -179,7 +179,7 @@ namespace core
#define IEEE_1_0 0x3f800000 //!< integer representation of 1.0
#define IEEE_255_0 0x437f0000 //!< integer representation of 255.0
#ifdef IRRLICHT_FAST_MATH
#define F32_LOWER_0(f) (F32_AS_U32(f) > F32_SIGN_BIT)
#define F32_LOWER_EQUAL_0(f) (F32_AS_S32(f) <= F32_VALUE_0)
#define F32_GREATER_0(f) (F32_AS_S32(f) > F32_VALUE_0)
......@@ -189,6 +189,15 @@ namespace core
// only same sign
#define F32_A_GREATER_B(a,b) (F32_AS_S32((a)) > F32_AS_S32((b)))
#else
#define F32_LOWER_0(f) ((f) < 0.0f)
#define F32_LOWER_EQUAL_0(f) ((f) <= 0.0f)
#define F32_GREATER_0(f) ((f) > 0.0f)
#define F32_GREATER_EQUAL_0(f) ((f) >= 0.0f)
#define F32_EQUAL_1(f) ((f) == 1.0f)
#define F32_EQUAL_0(f) ((f) == 0.0f)
#define F32_A_GREATER_B(a,b) ((a) > (b))
#endif
#ifndef REALINLINE
......
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