ILog2

nn::math::ILog2 Function

Syntax

u32 ILog2(
     u32 x
);

Parameters

Name Description
in x Real number.

Return Values

Returns the base 2 logarithm of an integer as an integer.

Description

Calculates the base 2 logarithm of an integer, and returns the result as an integer.

Revision History

2010/01/07
Initial version.

CONFIDENTIAL