diff options
author | Diego Biurrun <diego@biurrun.de> | 2006-10-10 07:49:10 +0000 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2006-10-10 07:49:10 +0000 |
commit | a22b7322ccd286223064026af301e37f6e02bb38 (patch) | |
tree | 4c61a1ddbb9db31563e7f1a0d9e5e632b0e88ecf /libavutil | |
parent | e0296b9a2e4678fb5d13685d02dd022333bbf730 (diff) | |
download | ffmpeg-a22b7322ccd286223064026af301e37f6e02bb38.tar.gz |
Move sign macro to libavutil.
Originally committed as revision 6620 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil')
-rw-r--r-- | libavutil/common.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavutil/common.h b/libavutil/common.h index d9377325bf..f71eaf839e 100644 --- a/libavutil/common.h +++ b/libavutil/common.h @@ -193,6 +193,7 @@ typedef uint64_t uint_fast64_t; /* assume b>0 */ #define ROUNDED_DIV(a,b) (((a)>0 ? (a) + ((b)>>1) : (a) - ((b)>>1))/(b)) #define ABS(a) ((a) >= 0 ? (a) : (-(a))) +#define SIGN(a) ((a) > 0 ? 1 : -1) #define FFMAX(a,b) ((a) > (b) ? (a) : (b)) #define FFMIN(a,b) ((a) > (b) ? (b) : (a)) |