Calculate the next power of 2, greater than or equal to x.
Namespace: RCLibrary.SlimPCAssembly: RCLibrary (in RCLibrary.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C# |
---|
public static int CeilingNextPowerOfTwo( int x ) |
Visual Basic |
---|
Public Shared Function CeilingNextPowerOfTwo ( _ x As Integer _ ) As Integer |
Visual C++ |
---|
public: static int CeilingNextPowerOfTwo( int x ) |
Parameters
- x
- Type: System..::..Int32
Value to round up