Mercurial > libavutil.hg
changeset 498:2ae1cc70b1c4 libavutil
Implement FFMAX3(a,b,c) - maximum over three arguments.
author | voroshil |
---|---|
date | Sat, 19 Apr 2008 17:07:58 +0000 |
parents | af2d7b4ffa64 |
children | 67ea650d4590 |
files | common.h |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/common.h Fri Apr 18 07:05:49 2008 +0000 +++ b/common.h Sat Apr 19 17:07:58 2008 +0000 @@ -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)