int SmallestExp2(int n);
Closest power of 2 to n.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | n | int |
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
Closest power of 2 to n.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | n | int |
Returns: the first smaller or equal power of two, if n is not power of two.