@@ -20,6 +20,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
20
20
#ifndef UTIL_NUMERIC_HEADER
21
21
#define UTIL_NUMERIC_HEADER
22
22
23
+ #include " ../basicmacros.h"
23
24
#include " ../irrlichttypes.h"
24
25
#include " ../irr_v2d.h"
25
26
#include " ../irr_v3d.h"
@@ -28,7 +29,6 @@ with this program; if not, write to the Free Software Foundation, Inc.,
28
29
#include < list>
29
30
#include < map>
30
31
#include < vector>
31
- #include < algorithm>
32
32
33
33
34
34
/*
@@ -166,9 +166,6 @@ inline v3s16 arealim(v3s16 p, s16 d)
166
166
return p;
167
167
}
168
168
169
- #define ARRLEN (x ) (sizeof (x) / sizeof ((x)[0 ]))
170
- #define CONTAINS (c, v ) (std::find((c).begin(), (c).end(), (v)) != (c).end())
171
-
172
169
// The naive swap performs better than the xor version
173
170
#define SWAP (t, x, y ) do { \
174
171
t temp = x; \
@@ -278,12 +275,6 @@ u64 murmur_hash_64_ua(const void *key, int len, unsigned int seed);
278
275
bool isBlockInSight (v3s16 blockpos_b, v3f camera_pos, v3f camera_dir,
279
276
f32 camera_fov, f32 range, f32 *distance_ptr=NULL );
280
277
281
- /*
282
- Some helper stuff
283
- */
284
- #define MYMIN (a,b ) ((a)<(b)?(a):(b))
285
- #define MYMAX (a,b ) ((a)>(b)?(a):(b))
286
-
287
278
/*
288
279
Returns nearest 32-bit integer for given floating point number.
289
280
<cmath> and <math.h> in VC++ don't provide round().