returns the next highest power of two, or the current value if it's already a power of two or zero
Namespace: Lucene.Net.UtilAssembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1
Syntax
C# |
---|
public static int NextHighestPowerOfTwo( int v ) |
Visual Basic |
---|
Public Shared Function NextHighestPowerOfTwo ( _ v As Integer _ ) As Integer |
Visual C++ |
---|
public: static int NextHighestPowerOfTwo( int v ) |
Parameters
- v
- Type: System..::..Int32
[Missing <param name="v"/> documentation for "M:Lucene.Net.Util.BitUtil.NextHighestPowerOfTwo(System.Int32)"]
Return Value
[Missing <returns> documentation for "M:Lucene.Net.Util.BitUtil.NextHighestPowerOfTwo(System.Int32)"]