Line 0
Link Here
|
|
|
1 |
--- source/src/tools.h.orig 2013-10-22 20:57:19.000000000 +0200 |
2 |
+++ source/src/tools.h 2016-04-12 20:40:13.105181000 +0200 |
3 |
@@ -55,8 +55,6 @@ static inline T min(T a, T b) |
4 |
return a < b ? a : b; |
5 |
} |
6 |
|
7 |
-static inline float round(float x) { return floor(x + 0.5f); } |
8 |
- |
9 |
#define clamp(a,b,c) (max(b, min(a, c))) |
10 |
#define rnd(x) ((int)(randomMT()&0xFFFFFF)%(x)) |
11 |
#define rndscale(x) (float((randomMT()&0xFFFFFF)*double(x)/double(0xFFFFFF))) |