Method NextHighestPowerOfTwo
NextHighestPowerOfTwo(Int32)
Returns the next highest power of two, or the current value if it's already a power of two or zero
Declaration
public static int NextHighestPowerOfTwo(int v)
Parameters
Type |
Name |
Description |
System.Int32 |
v |
|
Returns
Type |
Description |
System.Int32 |
|
NextHighestPowerOfTwo(Int64)
Returns the next highest power of two, or the current value if it's already a power of two or zero
Declaration
public static long NextHighestPowerOfTwo(long v)
Parameters
Type |
Name |
Description |
System.Int64 |
v |
|
Returns
Type |
Description |
System.Int64 |
|