returns the next highest power of two, or the current value if it's already a power of two or zero

Namespace: Lucene.Net.Util
Assembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1

Syntax

C#
public static long NextHighestPowerOfTwo(
	long v
)
Visual Basic
Public Shared Function NextHighestPowerOfTwo ( _
	v As Long _
) As Long
Visual C++
public:
static long long NextHighestPowerOfTwo(
	long long v
)

Parameters

v
Type: System..::..Int64

[Missing <param name="v"/> documentation for "M:Lucene.Net.Util.BitUtil.NextHighestPowerOfTwo(System.Int64)"]

Return Value

[Missing <returns> documentation for "M:Lucene.Net.Util.BitUtil.NextHighestPowerOfTwo(System.Int64)"]

See Also