diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2006-08-19 20:55:02 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2006-08-19 20:55:02 +0000 |
commit | 67eca72dc0183025397191dbf93e1e5033354afb (patch) | |
tree | 471fa3979b7cb93c6aad6783d0701e79972a8da5 /libavutil/common.h | |
parent | 0eb6817d9821bf67f33ccfe9b427cf736b95881e (diff) | |
download | ffmpeg-67eca72dc0183025397191dbf93e1e5033354afb.tar.gz |
SWAP
Originally committed as revision 6030 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil/common.h')
-rw-r--r-- | libavutil/common.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavutil/common.h b/libavutil/common.h index b0f0acf3c9..be665a9874 100644 --- a/libavutil/common.h +++ b/libavutil/common.h @@ -169,6 +169,8 @@ typedef uint64_t uint_fast64_t; #define FFMAX(a,b) ((a) > (b) ? (a) : (b)) #define FFMIN(a,b) ((a) > (b) ? (b) : (a)) +#define SWAP(type,a,b) do{type SWAP_tmp= b; b= a; a= SWAP_tmp;}while(0) + /* misc math functions */ extern FF_IMPORT_ATTR const uint8_t ff_log2_tab[256]; |