Method tzcnt
tzcnt(Int32)
Computes the trailing zero count in the binary representation of the input value.
Declaration
public static int tzcnt(int x)
Parameters
Type | Name | Description |
---|---|---|
Int32 | x | Input to use when computing the trailing zero count. |
Returns
Type | Description |
---|---|
Int32 | Returns the trailing zero count of the input. |
Remarks
Assuming that the least significant bit is on the right, the integer value 4 has a binary representation 0100 and the trailing zero count is two. The integer value 1 has a binary representation 0001 and the trailing zero count is zero.
tzcnt(int2)
Computes the component-wise trailing zero count in the binary representation of the input value.
Declaration
public static int2 tzcnt(int2 x)
Parameters
Type | Name | Description |
---|---|---|
int2 | x | Input to use when computing the trailing zero count. |
Returns
Type | Description |
---|---|
int2 | Returns the component-wise trailing zero count of the input. |
Remarks
Assuming that the least significant bit is on the right, the integer value 4 has a binary representation 0100 and the trailing zero count is two. The integer value 1 has a binary representation 0001 and the trailing zero count is zero.
tzcnt(int3)
Computes the component-wise trailing zero count in the binary representation of the input value.
Declaration
public static int3 tzcnt(int3 x)
Parameters
Type | Name | Description |
---|---|---|
int3 | x | Input to use when computing the trailing zero count. |
Returns
Type | Description |
---|---|
int3 | Returns the component-wise trailing zero count of the input. |
Remarks
Assuming that the least significant bit is on the right, the integer value 4 has a binary representation 0100 and the trailing zero count is two. The integer value 1 has a binary representation 0001 and the trailing zero count is zero.
tzcnt(int4)
Computes the component-wise trailing zero count in the binary representation of the input value.
Declaration
public static int4 tzcnt(int4 x)
Parameters
Type | Name | Description |
---|---|---|
int4 | x | Input to use when computing the trailing zero count. |
Returns
Type | Description |
---|---|
int4 | Returns the component-wise trailing zero count of the input. |
Remarks
Assuming that the least significant bit is on the right, the integer value 4 has a binary representation 0100 and the trailing zero count is two. The integer value 1 has a binary representation 0001 and the trailing zero count is zero.
tzcnt(UInt32)
Computes the trailing zero count in the binary representation of the input value.
Declaration
public static int tzcnt(uint x)
Parameters
Type | Name | Description |
---|---|---|
UInt32 | x | Input to use when computing the trailing zero count. |
Returns
Type | Description |
---|---|
Int32 | Returns the trailing zero count of the input. |
Remarks
Assuming that the least significant bit is on the right, the integer value 4 has a binary representation 0100 and the trailing zero count is two. The integer value 1 has a binary representation 0001 and the trailing zero count is zero.
tzcnt(uint2)
Computes the component-wise trailing zero count in the binary representation of the input value.
Declaration
public static int2 tzcnt(uint2 x)
Parameters
Type | Name | Description |
---|---|---|
uint2 | x | Input to use when computing the trailing zero count. |
Returns
Type | Description |
---|---|
int2 | Returns the component-wise trailing zero count of the input. |
Remarks
Assuming that the least significant bit is on the right, the integer value 4 has a binary representation 0100 and the trailing zero count is two. The integer value 1 has a binary representation 0001 and the trailing zero count is zero.
tzcnt(uint3)
Computes the component-wise trailing zero count in the binary representation of the input value.
Declaration
public static int3 tzcnt(uint3 x)
Parameters
Type | Name | Description |
---|---|---|
uint3 | x | Input to use when computing the trailing zero count. |
Returns
Type | Description |
---|---|
int3 | Returns the component-wise trailing zero count of the input. |
Remarks
Assuming that the least significant bit is on the right, the integer value 4 has a binary representation 0100 and the trailing zero count is two. The integer value 1 has a binary representation 0001 and the trailing zero count is zero.
tzcnt(uint4)
Computes the component-wise trailing zero count in the binary representation of the input value.
Declaration
public static int4 tzcnt(uint4 x)
Parameters
Type | Name | Description |
---|---|---|
uint4 | x | Input to use when computing the trailing zero count. |
Returns
Type | Description |
---|---|
int4 | Returns the component-wise trailing zero count of the input. |
Remarks
Assuming that the least significant bit is on the right, the integer value 4 has a binary representation 0100 and the trailing zero count is two. The integer value 1 has a binary representation 0001 and the trailing zero count is zero.
tzcnt(Int64)
Computes the trailing zero count in the binary representation of the input value.
Declaration
public static int tzcnt(long x)
Parameters
Type | Name | Description |
---|---|---|
Int64 | x | Input to use when computing the trailing zero count. |
Returns
Type | Description |
---|---|
Int32 | Returns the trailing zero count of the input. |
Remarks
Assuming that the least significant bit is on the right, the integer value 4 has a binary representation 0100 and the trailing zero count is two. The integer value 1 has a binary representation 0001 and the trailing zero count is zero.
tzcnt(UInt64)
Computes the trailing zero count in the binary representation of the input value.
Declaration
public static int tzcnt(ulong x)
Parameters
Type | Name | Description |
---|---|---|
UInt64 | x | Input to use when computing the trailing zero count. |
Returns
Type | Description |
---|---|
Int32 | Returns the trailing zero count of the input. |
Remarks
Assuming that the least significant bit is on the right, the integer value 4 has a binary representation 0100 and the trailing zero count is two. The integer value 1 has a binary representation 0001 and the trailing zero count is zero.