|
BitMathCountLeadingZeros(UInt32) Method
|
Counts the number of consecutive 0's starting from the highest bit working down.
Namespace: GSFAssembly: GSF.Core (in GSF.Core.dll) Version: 2.4.284-beta+805ed69bbaa748bda5f49830845a2ffff2791ae0
Syntaxpublic static int CountLeadingZeros(
uint value
)
static member CountLeadingZeros :
value : uint32 -> int GSF.BitMath.CountLeadingZeros = function(value);
View SourceParameters
- value UInt32
Return Value
Int32
Remarks
Unfortunately, c# cannot call the cpu instruction clz
Example from http://en.wikipedia.org/wiki/Find_first_set
See Also