Skip to content
Snippets Groups Projects
Commit 4b03ac8b authored by Andy Fleming's avatar Andy Fleming Committed by Wolfgang Denk
Browse files

Add ALIGN() macro


ALIGN() returns the smallest aligned value greater than the passed
in address or size.  Taken from Linux.

Signed-off-by: default avatarAndy Fleming <afleming@freescale.com>
parent 28eab0d7
No related branches found
No related tags found
No related merge requests found
......@@ -682,6 +682,9 @@ void __attribute__((weak)) show_boot_progress (int val);
#define DIV_ROUND_UP(n,d) (((n) + (d) - 1) / (d))
#define roundup(x, y) ((((x) + ((y) - 1)) / (y)) * (y))
#define ALIGN(x,a) __ALIGN_MASK((x),(typeof(x))(a)-1)
#define __ALIGN_MASK(x,mask) (((x)+(mask))&~(mask))
/* Multicore arch functions */
#ifdef CONFIG_MP
int cpu_status(int nr);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment