align.h File Reference

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.


Detailed Description

Definition in file align.h.


Generated on Thu Jun 2 07:45:53 2011 for HelenOS/USB by  doxygen 1.4.7