From 71218359afe8fa05153e53a64973a76cb90997b5 Mon Sep 17 00:00:00 2001 From: Alexander Aring Date: Tue, 4 Jun 2013 01:13:48 +0200 Subject: common: fix codestyle in ALIGN macros Signed-off-by: Alexander Aring Signed-off-by: Sascha Hauer --- include/common.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/common.h b/include/common.h index 59fcd35ac1..293ca49391 100644 --- a/include/common.h +++ b/include/common.h @@ -182,8 +182,8 @@ int run_shell(void); #define BUILD_BUG_ON_ZERO(e) (sizeof(struct { int:-!!(e); })) #define BUILD_BUG_ON_NULL(e) ((void *)sizeof(struct { int:-!!(e); })) -#define ALIGN(x,a) __ALIGN_MASK(x,(typeof(x))(a)-1) -#define __ALIGN_MASK(x,mask) (((x)+(mask))&~(mask)) +#define ALIGN(x, a) __ALIGN_MASK(x, (typeof(x))(a) - 1) +#define __ALIGN_MASK(x, mask) (((x) + (mask)) & ~(mask)) #define PTR_ALIGN(p, a) ((typeof(p))ALIGN((unsigned long)(p), (a))) #define IS_ALIGNED(x, a) (((x) & ((typeof(x))(a) - 1)) == 0) -- cgit v1.2.3