diff options
author | Vitaliy <numzer0@yandex.ru> | 2023-03-11 17:04:09 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-11 15:04:09 +0100 |
commit | 5a5a7d04b71b576ac9eed1bb58110009f8b46d0b (patch) | |
tree | a1d94ca96df4ddfdbfc2f190b8779a59da2073f4 /include/irrMath.h | |
parent | 1d43ea17ca8ee9a01262e9e34c5c89579b97397f (diff) | |
download | irrlicht-5a5a7d04b71b576ac9eed1bb58110009f8b46d0b.tar.xz |
Drop IrrCompileConfig (#163)
Diffstat (limited to 'include/irrMath.h')
-rw-r--r-- | include/irrMath.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/include/irrMath.h b/include/irrMath.h index 994f8cd..c4e8619 100644 --- a/include/irrMath.h +++ b/include/irrMath.h @@ -5,7 +5,6 @@ #ifndef __IRR_MATH_H_INCLUDED__
#define __IRR_MATH_H_INCLUDED__
-#include "IrrCompileConfig.h"
#include "irrTypes.h"
#include <math.h>
#include <float.h>
@@ -21,9 +20,7 @@ namespace core const s32 ROUNDING_ERROR_S32 = 0;
-#ifdef __IRR_HAS_S64
const s64 ROUNDING_ERROR_S64 = 0;
-#endif
const f32 ROUNDING_ERROR_f32 = 0.000001f;
const f64 ROUNDING_ERROR_f64 = 0.00000001;
@@ -186,7 +183,6 @@ namespace core return ROUNDING_ERROR_S32;
}
-#ifdef __IRR_HAS_S64
template <>
inline s64 roundingError()
{
@@ -198,7 +194,6 @@ namespace core {
return ROUNDING_ERROR_S64;
}
-#endif
template <class T>
inline T relativeErrorFactor()
@@ -310,13 +305,11 @@ namespace core return a <= tolerance;
}
-#ifdef __IRR_HAS_S64
//! returns if a equals zero, taking rounding errors into account
inline bool iszero(const s64 a, const s64 tolerance = 0)
{
return abs_(a) <= tolerance;
}
-#endif
inline s32 s32_min(s32 a, s32 b)
{
@@ -406,13 +399,11 @@ namespace core return static_cast<s32>(squareroot(static_cast<f32>(f)));
}
-#ifdef __IRR_HAS_S64
// calculate: sqrt ( x )
REALINLINE s64 squareroot(const s64 f)
{
return static_cast<s64>(squareroot(static_cast<f64>(f)));
}
-#endif
// calculate: 1 / sqrt ( x )
REALINLINE f64 reciprocal_squareroot(const f64 x)
|