Click or drag to resize

BitMathCountTrailingZeros(UInt64) Method

Counts the number of consecutive 0's starting from the lowest bit working up.

Namespace: GSF
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.300-beta+b2186e2cd1f968c931b0e151fdd7c839f3d1e9cf
Syntax
public static int CountTrailingZeros(
	ulong value
)
View Source

Parameters

value  UInt64
 

Return Value

Int32
Remarks
Unfortunately, c# cannot call the cpu instruction ctz Example from http://en.wikipedia.org/wiki/Find_first_set
See Also