nn::math::FloorPwr2 Function

Syntax

u32 FloorPwr2(
     u32 x
);

Arguments

Name Description
in x Integer value.

Return Values

Returns the highest power of two that is less than or equal to x.

Description

Calculates the highest power of two that is less than or equal to the integer provided.

Revision History

2010/01/07
Initial version.

CONFIDENTIAL