deeper and deeper

This commit is contained in:
Antoine Drouin
2006-01-12 02:56:13 +00:00
parent ffa362170b
commit b4dd2d5fb2
7 changed files with 121 additions and 41 deletions
+2 -1
View File
@@ -66,6 +66,7 @@ typedef uint8_t bool_t;
#define Bound(_x, _min, _max) { if (_x > _max) _x = _max; if (_x < _min) _x = _min; }
#define BoundAbs(_x, _max) Bound(_x, -_max, _max)
#define Chop(x, min, max) ( (x) < (min) ? (min) : (x) > (max) ? (max) : (x) )
#define Chop(_x, _min, _max) ( (_x) < (_min) ? (_min) : (_x) > (_max) ? (_max) : (_x) )
#define ChopAbs(x, max) Chop(x, -max, max)
#endif /* STD_H */