NBit Bit Manipulation Library

BitMathExtensions.CountTrailingZeros Method

Counts the number of trailing zeros in a value.

[Visual Basic]
<Extension> _
Public Shared Sub CountTrailingZeros( _
   ByVal value As UInt32 _
)
[C#]
[Extension]
public static int CountTrailingZeros(
   this uint value
);

Parameters

value
The value to count the trailing zeros of.

Return Value

The number of trailing zeros.

See Also

BitMathExtensions Class | NBit Namespace