Int32 SmallestExp2(Int32 n)
Closest power of 2 to n.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | n | Int32 |
Returns: Int32 - the first smaller or equal power of two, if n is not power of two.
Closest power of 2 to n.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | n | Int32 |
Returns: Int32 - the first smaller or equal power of two, if n is not power of two.