Mercurial > libavutil.hg
changeset 117:358f5db2581d libavutil
Move sign macro to libavutil.
author | diego |
---|---|
date | Tue, 10 Oct 2006 07:49:10 +0000 |
parents | d76a36742464 |
children | 81fb94a999a2 |
files | common.h |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/common.h Sat Oct 07 15:30:46 2006 +0000 +++ b/common.h Tue Oct 10 07:49:10 2006 +0000 @@ -193,6 +193,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))) +#define SIGN(a) ((a) > 0 ? 1 : -1) #define FFMAX(a,b) ((a) > (b) ? (a) : (b)) #define FFMIN(a,b) ((a) > (b) ? (b) : (a))