# HG changeset patch # User conrad # Date 1243027933 0 # Node ID 92180cbccda614ec7b3c3fe4d75aecd342255f10 # Parent ac8ea47c8d7e5e052404bf6548a57d3485d29c52 Move ALIGN macro to libavutil/common.h and use it in various places diff -r ac8ea47c8d7e -r 92180cbccda6 common.h --- 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];