changeset 735:92180cbccda6 libavutil

Move ALIGN macro to libavutil/common.h and use it in various places
author conrad
date Fri, 22 May 2009 21:32:13 +0000
parents ac8ea47c8d7e
children 9c9a242f840c
files common.h
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/common.h	Sat May 09 23:02:20 2009 +0000
+++ b/common.h	Fri May 22 21:32:13 2009 +0000
@@ -127,6 +127,7 @@
 
 #define FFSWAP(type,a,b) do{type SWAP_tmp= b; b= a; a= SWAP_tmp;}while(0)
 #define FF_ARRAY_ELEMS(a) (sizeof(a) / sizeof((a)[0]))
+#define FFALIGN(x, a) (((x)+(a)-1)&~((a)-1))
 
 /* misc math functions */
 extern const uint8_t ff_log2_tab[256];