diff common.h @ 359:df0736462b9f libavcodec

move ABS() to common.h print mb_types in nice looking format support
author michaelni
date Sat, 04 May 2002 18:58:07 +0000
parents 2066dc543be4
children 0eca28d16cbd
line wrap: on
line diff
--- a/common.h	Fri May 03 23:13:24 2002 +0000
+++ b/common.h	Sat May 04 18:58:07 2002 +0000
@@ -159,6 +159,7 @@
 
 /* assume b>0 */
 #define ROUNDED_DIV(a,b) (((a)>0 ? (a) + ((b)>>1) : (a) - ((b)>>1))/(b))
+#define ABS(a) ((a) >= 0 ? (a) : (-(a)))
 
 /* bit output */