| Parameter | Description |
|---|---|
| x | Integer input. |
bool bool where true indicates that input was a power of two.
Checks if the input is a power of two.
If x is less than or equal to zero, then this function returns false.
| Parameter | Description |
|---|---|
| x | int2 input |
bool2 bool2 where true in a component indicates the same component in the input was a power of two.
Checks if each component of the input is a power of two.
If a component of x is less than or equal to zero, then this function returns false in that component.
| Parameter | Description |
|---|---|
| x | int3 input |
bool3 bool3 where true in a component indicates the same component in the input was a power of two.
Checks if each component of the input is a power of two.
If a component of x is less than or equal to zero, then this function returns false in that component.
| Parameter | Description |
|---|---|
| x | int4 input |
bool4 bool4 where true in a component indicates the same component in the input was a power of two.
Checks if each component of the input is a power of two.
If a component of x is less than or equal to zero, then this function returns false in that component.
| Parameter | Description |
|---|---|
| x | Unsigned integer input. |
bool bool where true indicates that input was a power of two.
Checks if the input is a power of two.
If x is less than or equal to zero, then this function returns false.
| Parameter | Description |
|---|---|
| x | uint2 input |
bool2 bool2 where true in a component indicates the same component in the input was a power of two.
Checks if each component of the input is a power of two.
If a component of x is less than or equal to zero, then this function returns false in that component.
| Parameter | Description |
|---|---|
| x | uint3 input |
bool3 bool3 where true in a component indicates the same component in the input was a power of two.
Checks if each component of the input is a power of two.
If a component of x is less than or equal to zero, then this function returns false in that component.
| Parameter | Description |
|---|---|
| x | uint4 input |
bool4 bool4 where true in a component indicates the same component in the input was a power of two.
Checks if each component of the input is a power of two.
If a component of x is less than or equal to zero, then this function returns false in that component.