RTEMS  5.1
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
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.