summaryrefslogtreecommitdiffstats
path: root/libavutil
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2006-10-10 07:49:10 +0000
committerDiego Biurrun <diego@biurrun.de>2006-10-10 07:49:10 +0000
commita22b7322ccd286223064026af301e37f6e02bb38 (patch)
tree4c61a1ddbb9db31563e7f1a0d9e5e632b0e88ecf /libavutil
parente0296b9a2e4678fb5d13685d02dd022333bbf730 (diff)
downloadffmpeg-streaming-a22b7322ccd286223064026af301e37f6e02bb38.zip
ffmpeg-streaming-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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavutil/common.h b/libavutil/common.h
index d937732..f71eaf8 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))
OpenPOWER on IntegriCloud