nn::math::CeilPwr2 Function

Syntax

u32 CeilPwr2(
     u32 x
);

Arguments

Name Description
in x Integer value.

Return Values

Returns the lowest power of two greater than or equal to x.

Description

Calculates the lowest power of two that is greater than or equal to the integer provided.

Revision History

2010/01/07
Initial version.

CONFIDENTIAL