aboutsummaryrefslogtreecommitdiff
path: root/include/irrMath.h
diff options
context:
space:
mode:
authornumzero <numzer0@yandex.ru>2023-02-20 00:55:45 +0300
committernumzero <numzer0@yandex.ru>2023-02-22 21:11:12 +0300
commit67f852be576027e07c94f08ff65f8065244e59a0 (patch)
tree3212c001462fed57db5da64d6fd00dd68893f0ce /include/irrMath.h
parent5a2b8078908dfe4e3b27a988577c2dd151eb6470 (diff)
downloadirrlicht-67f852be576027e07c94f08ff65f8065244e59a0.tar.xz
Drop obsolete configuration macros
Diffstat (limited to 'include/irrMath.h')
-rw-r--r--include/irrMath.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/include/irrMath.h b/include/irrMath.h
index 994f8cd..af00f44 100644
--- a/include/irrMath.h
+++ b/include/irrMath.h
@@ -21,9 +21,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 +184,6 @@ namespace core
return ROUNDING_ERROR_S32;
}
-#ifdef __IRR_HAS_S64
template <>
inline s64 roundingError()
{
@@ -198,7 +195,6 @@ namespace core
{
return ROUNDING_ERROR_S64;
}
-#endif
template <class T>
inline T relativeErrorFactor()
@@ -310,13 +306,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 +400,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)