Commit 26cd0d86 authored by michaelni's avatar michaelni

put MIN/MAX under ifndef MAX/MIN


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@1138 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent dea68f35
...@@ -162,8 +162,14 @@ inline void dprintf(const char* fmt,...) {} ...@@ -162,8 +162,14 @@ inline void dprintf(const char* fmt,...) {}
/* assume b>0 */ /* assume b>0 */
#define ROUNDED_DIV(a,b) (((a)>0 ? (a) + ((b)>>1) : (a) - ((b)>>1))/(b)) #define ROUNDED_DIV(a,b) (((a)>0 ? (a) + ((b)>>1) : (a) - ((b)>>1))/(b))
#define ABS(a) ((a) >= 0 ? (a) : (-(a))) #define ABS(a) ((a) >= 0 ? (a) : (-(a)))
#define MAX(a,b) ((a) > (b) ? (a) : (b))
#define MIN(a,b) ((a) > (b) ? (b) : (a)) #ifndef MAX
# define MAX(a,b) ((a) > (b) ? (a) : (b))
#endif
#ifndef MIN
# define MIN(a,b) ((a) > (b) ? (b) : (a))
#endif
#ifdef ARCH_X86 #ifdef ARCH_X86
// avoid +32 for shift optimization (gcc should do that ...) // avoid +32 for shift optimization (gcc should do that ...)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment