diff options
author | Vladimir Voroshilov <voroshil@gmail.com> | 2008-04-19 17:07:58 +0000 |
---|---|---|
committer | Vladimir Voroshilov <voroshil@gmail.com> | 2008-04-19 17:07:58 +0000 |
commit | 159ef4b02a231259da95af3e7384c216f3252abd (patch) | |
tree | c353288c9ac9108377c2ce68b0094b9907ed8f52 /libavutil/common.h | |
parent | c6cd525aa0b88a593ccb8c492f9a6a0a5c8abc86 (diff) | |
download | ffmpeg-159ef4b02a231259da95af3e7384c216f3252abd.tar.gz |
Implement FFMAX3(a,b,c) - maximum over three arguments.
Originally committed as revision 12910 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil/common.h')
-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 e9d96db78a..6615ded044 100644 --- a/libavutil/common.h +++ b/libavutil/common.h @@ -111,6 +111,7 @@ #define FFSIGN(a) ((a) > 0 ? 1 : -1) #define FFMAX(a,b) ((a) > (b) ? (a) : (b)) +#define FFMAX3(a,b,c) FFMAX(FFMAX(a,b),c) #define FFMIN(a,b) ((a) > (b) ? (b) : (a)) #define FFSWAP(type,a,b) do{type SWAP_tmp= b; b= a; a= SWAP_tmp;}while(0) |