Math387::SmallestExp2 Function

int SmallestExp2(int n);

Closest power of 2 to n.

#NameTypeDescription
1nint

Returns: the first smaller or equal power of two, if n is not power of two.

Declared in Dew::Math::Units::Math387 · Dew.Math/Units.Math387.h · Cross-compiler