|
BitMathCountTrailingZeros(UInt64) Method
|
Counts the number of consecutive 0's starting from the lowest bit working up.
Namespace: GSFAssembly: GSF.Core (in GSF.Core.dll) Version: 2.4.296-beta+d85e3b6b23676c9fffb3231e358b4f94ad70793d
Syntaxpublic static int CountTrailingZeros(
ulong value
)
Public Shared Function CountTrailingZeros (
value As ULong
) As Integer
static member CountTrailingZeros :
value : uint64 -> int GSF.BitMath.CountTrailingZeros = function(value);
View SourceParameters
- 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