Click or drag to resize

BitMath.CountTrailingZeros(UInt32) 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.244-beta+cf93f5f8aea4b941e9b426fe4e180c2bd85d31a2
Syntax
public static int CountTrailingZeros(
	uint value
)
View Source

Parameters

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