returns true if v is 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 bool IsPowerOfTwo(
	int v
)
Visual Basic
Public Shared Function IsPowerOfTwo ( _
	v As Integer _
) As Boolean
Visual C++
public:
static bool IsPowerOfTwo(
	int v
)

Parameters

v
Type: System..::..Int32

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

Return Value

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

See Also