Method rol
rol(Int32, Int32)
Returns the result of rotating the bits of an int left by bits n.
Declaration
public static int rol(int x, int n)
Parameters
| Type | Name | Description |
|---|---|---|
| Int32 | x | Value to rotate. |
| Int32 | n | Number of bits to rotate. |
Returns
| Type | Description |
|---|---|
| Int32 | The rotated value. |
rol(int2, Int32)
Returns the componentwise result of rotating the bits of an int2 left by bits n.
Declaration
public static int2 rol(int2 x, int n)
Parameters
| Type | Name | Description |
|---|---|---|
| int2 | x | Value to rotate. |
| Int32 | n | Number of bits to rotate. |
Returns
| Type | Description |
|---|---|
| int2 | The componentwise rotated value. |
rol(int3, Int32)
Returns the componentwise result of rotating the bits of an int3 left by bits n.
Declaration
public static int3 rol(int3 x, int n)
Parameters
| Type | Name | Description |
|---|---|---|
| int3 | x | Value to rotate. |
| Int32 | n | Number of bits to rotate. |
Returns
| Type | Description |
|---|---|
| int3 | The componentwise rotated value. |
rol(int4, Int32)
Returns the componentwise result of rotating the bits of an int4 left by bits n.
Declaration
public static int4 rol(int4 x, int n)
Parameters
| Type | Name | Description |
|---|---|---|
| int4 | x | Value to rotate. |
| Int32 | n | Number of bits to rotate. |
Returns
| Type | Description |
|---|---|
| int4 | The componentwise rotated value. |
rol(UInt32, Int32)
Returns the result of rotating the bits of a uint left by bits n.
Declaration
public static uint rol(uint x, int n)
Parameters
| Type | Name | Description |
|---|---|---|
| UInt32 | x | Value to rotate. |
| Int32 | n | Number of bits to rotate. |
Returns
| Type | Description |
|---|---|
| UInt32 | The rotated value. |
rol(uint2, Int32)
Returns the componentwise result of rotating the bits of a uint2 left by bits n.
Declaration
public static uint2 rol(uint2 x, int n)
Parameters
| Type | Name | Description |
|---|---|---|
| uint2 | x | Value to rotate. |
| Int32 | n | Number of bits to rotate. |
Returns
| Type | Description |
|---|---|
| uint2 | The componentwise rotated value. |
rol(uint3, Int32)
Returns the componentwise result of rotating the bits of a uint3 left by bits n.
Declaration
public static uint3 rol(uint3 x, int n)
Parameters
| Type | Name | Description |
|---|---|---|
| uint3 | x | Value to rotate. |
| Int32 | n | Number of bits to rotate. |
Returns
| Type | Description |
|---|---|
| uint3 | The componentwise rotated value. |
rol(uint4, Int32)
Returns the componentwise result of rotating the bits of a uint4 left by bits n.
Declaration
public static uint4 rol(uint4 x, int n)
Parameters
| Type | Name | Description |
|---|---|---|
| uint4 | x | Value to rotate. |
| Int32 | n | Number of bits to rotate. |
Returns
| Type | Description |
|---|---|
| uint4 | The componentwise rotated value. |
rol(Int64, Int32)
Returns the result of rotating the bits of a long left by bits n.
Declaration
public static long rol(long x, int n)
Parameters
| Type | Name | Description |
|---|---|---|
| Int64 | x | Value to rotate. |
| Int32 | n | Number of bits to rotate. |
Returns
| Type | Description |
|---|---|
| Int64 | The rotated value. |
rol(UInt64, Int32)
Returns the result of rotating the bits of a ulong left by bits n.
Declaration
public static ulong rol(ulong x, int n)
Parameters
| Type | Name | Description |
|---|---|---|
| UInt64 | x | Value to rotate. |
| Int32 | n | Number of bits to rotate. |
Returns
| Type | Description |
|---|---|
| UInt64 | The rotated value. |