diff options
author | Anton Khirnov <anton@khirnov.net> | 2020-07-13 10:58:37 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2020-07-13 10:58:37 +0200 |
commit | b06f56c959ffa4e3f3d7f0acaadcf81a93ef9fa5 (patch) | |
tree | 3791cfbead6c899b9890363103628e5c4bcde9bb /common.h | |
parent | 2756ddf7f50b7debd90ecada3944eda7e2ef5236 (diff) | |
parent | e95010e10ccf903a97ac8479b0df35fe66143a9a (diff) |
Merge branch 'adaptive_step' into deploy
Diffstat (limited to 'common.h')
-rw-r--r-- | common.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -22,6 +22,7 @@ #define SGN(x) ((x) >= 0.0 ? 1.0 : -1.0) #define MAX(x, y) ((x) > (y) ? (x) : (y)) #define MIN(x, y) ((x) > (y) ? (y) : (x)) +#define CLIP(val, min, max) (MIN(MAX(val, min), max)) #define ARRAY_ELEMS(arr) (sizeof(arr) / sizeof(*arr)) #include <stdio.h> |