Method tzcnt
tzcnt(int)
Computes the trailing zero count in the binary representation of the input value.
Declaration
public static int tzcnt(int x)
Parameters
| Type | Name | Description |
|---|---|---|
| int | x | Input to use when computing the trailing zero count. |
Returns
| Type | Description |
|---|---|
| int | 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(uint)
Computes the trailing zero count in the binary representation of the input value.
Declaration
public static int tzcnt(uint x)
Parameters
| Type | Name | Description |
|---|---|---|
| uint | x | Input to use when computing the trailing zero count. |
Returns
| Type | Description |
|---|---|
| int | 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(long)
Computes the trailing zero count in the binary representation of the input value.
Declaration
public static int tzcnt(long x)
Parameters
| Type | Name | Description |
|---|---|---|
| long | x | Input to use when computing the trailing zero count. |
Returns
| Type | Description |
|---|---|
| int | 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(ulong)
Computes the trailing zero count in the binary representation of the input value.
Declaration
public static int tzcnt(ulong x)
Parameters
| Type | Name | Description |
|---|---|---|
| ulong | x | Input to use when computing the trailing zero count. |
Returns
| Type | Description |
|---|---|
| int | 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.