We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d070c1b commit 31748f8Copy full SHA for 31748f8
lib/vc8000nanoe/inc/enccommon.h
@@ -153,8 +153,12 @@ typedef struct
153
154
/* General tools */
155
#define ABS(x) ((x) < (0) ? -(x) : (x))
156
+#ifndef MAX
157
#define MAX(a, b) ((a) > (b) ? (a) : (b))
158
+#endif
159
+#ifndef MIN
160
#define MIN(a, b) ((a) < (b) ? (a) : (b))
161
162
#define SIGN(a) ((a) < (0) ? (-1) : (1))
163
#define OUT_OF_RANGE(x,a,b) ((((i32)x)<(a)?(1):(0)) || ((x)>(b)?(1):(0)))
164
#define CLIP3(v, min, max) ((v) < (min) ? (min) : ((v) > (max) ? (max) : (v)))
0 commit comments