Method ceilpow2
ceilpow2(Int32)
Returns the smallest power of two greater than or equal to the input.
Declaration
public static int ceilpow2(int x)
Parameters
Type | Name | Description |
---|---|---|
Int32 | x | Input value. |
Returns
Type | Description |
---|---|
Int32 | 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(UInt32)
Returns the smallest power of two greater than or equal to the input.
Declaration
public static uint ceilpow2(uint x)
Parameters
Type | Name | Description |
---|---|---|
UInt32 | x | Input value. |
Returns
Type | Description |
---|---|
UInt32 | 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(Int64)
Returns the smallest power of two greater than or equal to the input.
Declaration
public static long ceilpow2(long x)
Parameters
Type | Name | Description |
---|---|---|
Int64 | x | Input value. |
Returns
Type | Description |
---|---|
Int64 | The smallest power of two greater than or equal to the input. |
ceilpow2(UInt64)
Returns the smallest power of two greater than or equal to the input.
Declaration
public static ulong ceilpow2(ulong x)
Parameters
Type | Name | Description |
---|---|---|
UInt64 | x | Input value. |
Returns
Type | Description |
---|---|
UInt64 | The smallest power of two greater than or equal to the input. |