OSRoundUp32B

C Specification

#include <revolution/os.h>
#define OSRoundUp32B(x)       \
(((u32)(x) + 32 - 1) & ~(32 - 1))

Arguments

x Pointer or address.

Return Values

Unsigned 32-bit integer (u32) rounded up to the 32-byte upper boundary.

Description

Rounds x up to the 32-byte upper boundary.

See Also

Address Conversion Functions, OSRoundDown32B

Revision History

03/01/2006 Initial version.