diff options
author | Alexander Aring <alex.aring@gmail.com> | 2013-06-04 01:13:48 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-06-05 22:54:34 +0200 |
commit | 71218359afe8fa05153e53a64973a76cb90997b5 (patch) | |
tree | 4a0921d3f31cf4952a6645f12acb5987b3b79548 | |
parent | 89825aed2928470947276790708389133cdd3e89 (diff) | |
download | barebox-71218359afe8fa05153e53a64973a76cb90997b5.tar.gz barebox-71218359afe8fa05153e53a64973a76cb90997b5.tar.xz |
common: fix codestyle in ALIGN macros
Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r-- | include/common.h | 4 |
1 files 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) |