RTEMS  5.0.0
Macros
align.h File Reference

Macros for making values and addresses aligned. More...

Go to the source code of this file.

Macros

#define ALIGN_DOWN(s, a)   ((s) & ~((a) - 1))
 
#define ALIGN_UP(s, a)   (((s) + ((a) - 1)) & ~((a) - 1))
 

Detailed Description

Macros for making values and addresses aligned.