Subversion Repositories HelenOS-historic

Rev

Rev 1125 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1125 Rev 1501
Line 40... Line 40...
40
/** Align to the nearest higher address.
40
/** Align to the nearest higher address.
41
 *
41
 *
42
 * @param s Address or size to be aligned.
42
 * @param s Address or size to be aligned.
43
 * @param a Size of alignment, must be power of 2.
43
 * @param a Size of alignment, must be power of 2.
44
 */
44
 */
45
#define ALIGN_UP(s, a)      (((s) + ((a) - 1)) & ~((a) - 1))
45
#define ALIGN_UP(s, a)      ((long)((s) + ((a) - 1)) & ~((long) (a) - 1))
46
 
46
 
47
#endif
47
#endif