changeset 99:a3d5e8b048e1 libavutil

SWAP
author michael
date Sat, 19 Aug 2006 20:55:02 +0000
parents e5409bf748df
children 5d02abb9a7e5
files common.h
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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];