Method ceilpow2
ceilpow2(int)
Returns the smallest power of two greater than or equal to the input.
Declaration
public static int ceilpow2(int x)
Parameters
| Type | Name | Description |
|---|---|---|
| int | x | Input value. |
Returns
| Type | Description |
|---|---|
| int | The smallest power of two greater than or equal to the input. |
ceilpow2(int2)
Returns the result of a componentwise calculation of the smallest power of two greater than or equal to the input.
Declaration
public static int2 ceilpow2(int2 x)
Parameters
| Type | Name | Description |
|---|---|---|
| int2 | x | Input value. |
Returns
| Type | Description |
|---|---|
| int2 | The componentwise smallest power of two greater than or equal to the input. |
ceilpow2(int3)
Returns the result of a componentwise calculation of the smallest power of two greater than or equal to the input.
Declaration
public static int3 ceilpow2(int3 x)
Parameters
| Type | Name | Description |
|---|---|---|
| int3 | x | Input value. |
Returns
| Type | Description |
|---|---|
| int3 | The componentwise smallest power of two greater than or equal to the input. |
ceilpow2(int4)
Returns the result of a componentwise calculation of the smallest power of two greater than or equal to the input.
Declaration
public static int4 ceilpow2(int4 x)
Parameters
| Type | Name | Description |
|---|---|---|
| int4 | x | Input value. |
Returns
| Type | Description |
|---|---|
| int4 | The componentwise smallest power of two greater than or equal to the input. |
ceilpow2(uint)
Returns the smallest power of two greater than or equal to the input.
Declaration
public static uint ceilpow2(uint x)
Parameters
| Type | Name | Description |
|---|---|---|
| uint | x | Input value. |
Returns
| Type | Description |
|---|---|
| uint | The smallest power of two greater than or equal to the input. |
ceilpow2(uint2)
Returns the result of a componentwise calculation of the smallest power of two greater than or equal to the input.
Declaration
public static uint2 ceilpow2(uint2 x)
Parameters
| Type | Name | Description |
|---|---|---|
| uint2 | x | Input value. |
Returns
| Type | Description |
|---|---|
| uint2 | The componentwise smallest power of two greater than or equal to the input. |
ceilpow2(uint3)
Returns the result of a componentwise calculation of the smallest power of two greater than or equal to the input.
Declaration
public static uint3 ceilpow2(uint3 x)
Parameters
| Type | Name | Description |
|---|---|---|
| uint3 | x | Input value. |
Returns
| Type | Description |
|---|---|
| uint3 | The componentwise smallest power of two greater than or equal to the input. |
ceilpow2(uint4)
Returns the result of a componentwise calculation of the smallest power of two greater than or equal to the input.
Declaration
public static uint4 ceilpow2(uint4 x)
Parameters
| Type | Name | Description |
|---|---|---|
| uint4 | x | Input value. |
Returns
| Type | Description |
|---|---|
| uint4 | The componentwise smallest power of two greater than or equal to the input. |
ceilpow2(long)
Returns the smallest power of two greater than or equal to the input.
Declaration
public static long ceilpow2(long x)
Parameters
| Type | Name | Description |
|---|---|---|
| long | x | Input value. |
Returns
| Type | Description |
|---|---|
| long | The smallest power of two greater than or equal to the input. |
ceilpow2(ulong)
Returns the smallest power of two greater than or equal to the input.
Declaration
public static ulong ceilpow2(ulong x)
Parameters
| Type | Name | Description |
|---|---|---|
| ulong | x | Input value. |
Returns
| Type | Description |
|---|---|
| ulong | The smallest power of two greater than or equal to the input. |