Go to the source code of this file.
Defines | |
#define | ALIGN_DOWN(s, a) ((s) & ~((a) - 1)) |
Align to the nearest lower address which is a power of two. | |
#define | ALIGN_UP(s, a) ((long)((s) + ((a) - 1)) & ~((long) (a) - 1)) |
Align to the nearest higher address which is a power of two. | |
#define | ROUND_UP(n, b) (((n) / (b) + ((n) % (b) != 0)) * (b)) |
Round up to the nearest higher boundary. |
Definition in file align.h.