Subversion Repositories HelenOS-historic

Compare Revisions

Ignore whitespace Rev 865 → Rev 866

/kernel/trunk/generic/include/align.h
42,10 → 42,6
* @param s Address or size to be aligned.
* @param a Size of alignment, must be power of 2.
*/
#ifdef ppc32 /* Nasty ppc32 hack. FIX ME. */
# define ALIGN_UP(s, a) ((s) % (a) ? (((s) / (a)) + 1) * (a) : (s))
#else
# define ALIGN_UP(s, a) (((s) + ((a) - 1)) & ~((a) - 1))
#endif
#define ALIGN_UP(s, a) (((s) + ((a) - 1)) & ~((a) - 1))
 
#endif