|
BitMathCountTrailingZeros(UInt32) 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.230-beta+03417d7b5cff037b24e882d7adef82d359b34964
Syntaxpublic static int CountTrailingZeros(
uint value
)
static member CountTrailingZeros :
value : uint32 -> int
GSF.BitMath.CountTrailingZeros = function(value);
View SourceParameters
- value UInt32
-
Return Value
Int32
Remarks
Unfortunately, c# cannot call the cpu instruction ctz
Example from http://en.wikipedia.org/wiki/Find_first_set
See Also