RTEMS 6.3
Loading...
Searching...
No Matches

Generic. More...

Files

file  bsps/sparc64/include/boot/align.h
file  bsps/sparc64/include/boot/gentypes.h
file  bsps/sparc64/include/kernel/align.h
 Macros for making values and addresses aligned.

Macros

#define ALIGN_UP(addr, align)
#define ALIGN_DOWN(s, a)
#define ALIGN_UP(s, a)

Detailed Description

Generic.

Macro Definition Documentation

◆ ALIGN_DOWN

#define ALIGN_DOWN ( s,
a )
Value:
((s) & ~((a) - 1))

Align to the nearest lower address.

Parameters
sAddress or size to be aligned.
aSize of alignment, must be power of 2.

◆ ALIGN_UP [1/2]

#define ALIGN_UP ( addr,
align )
Value:
(((addr) + ((align) - 1)) & ~((align) - 1))

Align to the nearest higher address.

Parameters
addrAddress or size to be aligned.
alignSize of alignment, must be power of 2.

Align to the nearest higher address.

Parameters
sAddress or size to be aligned.
aSize of alignment, must be power of 2.

◆ ALIGN_UP [2/2]

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

Align to the nearest higher address.

Parameters
sAddress or size to be aligned.
aSize of alignment, must be power of 2.