OSRoundUp32B

Syntax

#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 nearest upper 32-byte boundary.

Description

Rounds up x to the nearest upper 32-byte boundary.

See Also

Address Conversion Functions, OSRoundDown32B

Revision History

2006/03/01 Initial version.


CONFIDENTIAL