| Parameter | Description |
|---|---|
| x | int value in which to count bits set to 1. |
int Number of bits set to 1 within x.
Returns number of 1-bits in the binary representation of an int value. Also known as the Hamming weight, popcnt on x86, and vcnt on ARM.
| Parameter | Description |
|---|---|
| x | int2 value in which to count bits for each component. |
int2 int2 containing number of bits set to 1 within each component of x.
Returns component-wise number of 1-bits in the binary representation of an int2 vector. Also known as the Hamming weight, popcnt on x86, and vcnt on ARM.
| Parameter | Description |
|---|---|
| x | Number in which to count bits. |
int3 int3 containing number of bits set to 1 within each component of x.
Returns component-wise number of 1-bits in the binary representation of an int3 vector. Also known as the Hamming weight, popcnt on x86, and vcnt on ARM.
| Parameter | Description |
|---|---|
| x | Number in which to count bits. |
int4 int4 containing number of bits set to 1 within each component of x.
Returns component-wise number of 1-bits in the binary representation of an int4 vector. Also known as the Hamming weight, popcnt on x86, and vcnt on ARM.
| Parameter | Description |
|---|---|
| x | Number in which to count bits. |
int Number of bits set to 1 within x.
Returns number of 1-bits in the binary representation of a uint value. Also known as the Hamming weight, popcnt on x86, and vcnt on ARM.
| Parameter | Description |
|---|---|
| x | Number in which to count bits. |
int2 int2 containing number of bits set to 1 within each component of x.
Returns component-wise number of 1-bits in the binary representation of a uint2 vector. Also known as the Hamming weight, popcnt on x86, and vcnt on ARM.
| Parameter | Description |
|---|---|
| x | Number in which to count bits. |
int3 int3 containing number of bits set to 1 within each component of x.
Returns component-wise number of 1-bits in the binary representation of a uint3 vector. Also known as the Hamming weight, popcnt on x86, and vcnt on ARM.
| Parameter | Description |
|---|---|
| x | Number in which to count bits. |
int4 int4 containing number of bits set to 1 within each component of x.
Returns component-wise number of 1-bits in the binary representation of a uint4 vector. Also known as the Hamming weight, popcnt on x86, and vcnt on ARM.
| Parameter | Description |
|---|---|
| x | Number in which to count bits. |
int Number of bits set to 1 within x.
Returns number of 1-bits in the binary representation of a ulong value. Also known as the Hamming weight, popcnt on x86, and vcnt on ARM.
| Parameter | Description |
|---|---|
| x | Number in which to count bits. |
int Number of bits set to 1 within x.
Returns number of 1-bits in the binary representation of a long value. Also known as the Hamming weight, popcnt on x86, and vcnt on ARM.