[svn] / trunk / xvidcore / src / global.h Repository:
ViewVC logotype

Diff of /trunk/xvidcore/src/global.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1988, Wed May 18 09:10:05 2011 UTC revision 2058, Fri Dec 30 13:04:56 2011 UTC
# Line 251  Line 251 
251    
252  /* useful macros */  /* useful macros */
253    
254    #ifndef MIN
255  #define MIN(X, Y) ((X)<(Y)?(X):(Y))  #define MIN(X, Y) ((X)<(Y)?(X):(Y))
256    #endif
257    #ifndef MAX
258  #define MAX(X, Y) ((X)>(Y)?(X):(Y))  #define MAX(X, Y) ((X)>(Y)?(X):(Y))
259    #endif
260  /* #define ABS(X)    (((X)>0)?(X):-(X)) */  /* #define ABS(X)    (((X)>0)?(X):-(X)) */
261  #define SIGN(X)   (((X)>0)?1:-1)  #define SIGN(X)   (((X)>0)?1:-1)
262  #define CLIP(X,AMIN,AMAX)   (((X)<(AMIN)) ? (AMIN) : ((X)>(AMAX)) ? (AMAX) : (X))  #define CLIP(X,AMIN,AMAX)   (((X)<(AMIN)) ? (AMIN) : ((X)>(AMAX)) ? (AMAX) : (X))

Legend:
Removed from v.1988  
changed lines
  Added in v.2058

No admin address has been configured
ViewVC Help
Powered by ViewVC 1.0.4