returns 0 based index of first set bit (only works for x!=0)
This is an alternate implementation of ntz()

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

Syntax

C#
public static int Ntz2(
	long x
)
Visual Basic
Public Shared Function Ntz2 ( _
	x As Long _
) As Integer
Visual C++
public:
static int Ntz2(
	long long x
)

Parameters

x
Type: System..::..Int64

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

Return Value

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

See Also