# HG changeset patch # User michael # Date 1156020902 0 # Node ID a3d5e8b048e101e3b6604e25389fe251deeec981 # Parent e5409bf748dff862f8c640b3076b5723ebc8a803 SWAP diff -r e5409bf748df -r a3d5e8b048e1 common.h --- a/common.h Fri Aug 18 13:38:24 2006 +0000 +++ b/common.h Sat Aug 19 20:55:02 2006 +0000 @@ -169,6 +169,8 @@ #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];