nn::math::FloorPwr2
u32 FloorPwr2( u32 x );
Calculates the highest power of two that is less than or equal to the integer provided.
CONFIDENTIAL