diff options
-rw-r--r-- | core/mp_common.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/mp_common.h b/core/mp_common.h index 6cb1da373d..bc6d4f3d32 100644 --- a/core/mp_common.h +++ b/core/mp_common.h @@ -34,6 +34,9 @@ #define ROUND(x) ((int)((x) < 0 ? (x) - 0.5 : (x) + 0.5)) +#define MPMAX(a, b) ((a) > (b) ? (a) : (b)) +#define MPMIN(a, b) ((a) > (b) ? (b) : (a)) + #define CONTROL_OK 1 #define CONTROL_TRUE 1 #define CONTROL_FALSE 0 |