Int32 LargestExp2(Int32 n)
Returns first number being power of two that is equal or greater than n.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | n | Int32 |
Returns: Int32 - the first number being power of two that is equal or greater than n.
Remarks:
It is much faster than the call of:
Exp2(Ceil(Log2(n)))
See Also: Math387.LargestLog2