Method lzcnt
lzcnt(int)
Returns the componentwise number of leading zeros in the binary representations of an int vector.
Declaration
public static int lzcnt(int x)
Parameters
| Type | Name | Description |
|---|---|---|
| int | x | Input value. |
Returns
| Type | Description |
|---|---|
| int | The number of leading zeros of the input. |
lzcnt(int2)
Returns the componentwise number of leading zeros in the binary representations of an int2 vector.
Declaration
public static int2 lzcnt(int2 x)
Parameters
| Type | Name | Description |
|---|---|---|
| int2 | x | Input value. |
Returns
| Type | Description |
|---|---|
| int2 | The componentwise number of leading zeros of the input. |
lzcnt(int3)
Returns the componentwise number of leading zeros in the binary representations of an int3 vector.
Declaration
public static int3 lzcnt(int3 x)
Parameters
| Type | Name | Description |
|---|---|---|
| int3 | x | Input value. |
Returns
| Type | Description |
|---|---|
| int3 | The componentwise number of leading zeros of the input. |
lzcnt(int4)
Returns the componentwise number of leading zeros in the binary representations of an int4 vector.
Declaration
public static int4 lzcnt(int4 x)
Parameters
| Type | Name | Description |
|---|---|---|
| int4 | x | Input value. |
Returns
| Type | Description |
|---|---|
| int4 | The componentwise number of leading zeros of the input. |
lzcnt(uint)
Returns number of leading zeros in the binary representations of a uint value.
Declaration
public static int lzcnt(uint x)
Parameters
| Type | Name | Description |
|---|---|---|
| uint | x | Input value. |
Returns
| Type | Description |
|---|---|
| int | The number of leading zeros of the input. |
lzcnt(uint2)
Returns the componentwise number of leading zeros in the binary representations of a uint2 vector.
Declaration
public static int2 lzcnt(uint2 x)
Parameters
| Type | Name | Description |
|---|---|---|
| uint2 | x | Input value. |
Returns
| Type | Description |
|---|---|
| int2 | The componentwise number of leading zeros of the input. |
lzcnt(uint3)
Returns the componentwise number of leading zeros in the binary representations of a uint3 vector.
Declaration
public static int3 lzcnt(uint3 x)
Parameters
| Type | Name | Description |
|---|---|---|
| uint3 | x | Input value. |
Returns
| Type | Description |
|---|---|
| int3 | The componentwise number of leading zeros of the input. |
lzcnt(uint4)
Returns the componentwise number of leading zeros in the binary representations of a uint4 vector.
Declaration
public static int4 lzcnt(uint4 x)
Parameters
| Type | Name | Description |
|---|---|---|
| uint4 | x | Input value. |
Returns
| Type | Description |
|---|---|
| int4 | The componentwise number of leading zeros of the input. |
lzcnt(long)
Returns number of leading zeros in the binary representations of a long value.
Declaration
public static int lzcnt(long x)
Parameters
| Type | Name | Description |
|---|---|---|
| long | x | Input value. |
Returns
| Type | Description |
|---|---|
| int | The number of leading zeros of the input. |
lzcnt(ulong)
Returns number of leading zeros in the binary representations of a ulong value.
Declaration
public static int lzcnt(ulong x)
Parameters
| Type | Name | Description |
|---|---|---|
| ulong | x | Input value. |
Returns
| Type | Description |
|---|---|
| int | The number of leading zeros of the input. |