BitOperations.RotateRight Method   
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| RotateRight(UInt32, Int32) | Rotates the specified value right by the specified number of bits. | 
| RotateRight(UInt64, Int32) | Rotates the specified value right by the specified number of bits. | 
| RotateRight(UIntPtr, Int32) | Rotates the specified value right by the specified number of bits. Similar in behavior to the x86 instruction ROR. | 
RotateRight(UInt32, Int32)
- Source:
- BitOperations.cs
- Source:
- BitOperations.cs
- Source:
- BitOperations.cs
- Source:
- BitOperations.cs
Important
This API is not CLS-compliant.
Rotates the specified value right by the specified number of bits.
public:
 static System::UInt32 RotateRight(System::UInt32 value, int offset);[System.CLSCompliant(false)]
public static uint RotateRight(uint value, int offset);[<System.CLSCompliant(false)>]
static member RotateRight : uint32 * int -> uint32Public Shared Function RotateRight (value As UInteger, offset As Integer) As UIntegerParameters
- value
- UInt32
The value to rotate.
- offset
- Int32
The number of bits to rotate by. Any value outside the range [0..31] is treated as congruent mod 32.
Returns
The rotated value.
- Attributes
Remarks
This method is similar in behavior to the x86 instruction ROR.
Applies to
RotateRight(UInt64, Int32)
- Source:
- BitOperations.cs
- Source:
- BitOperations.cs
- Source:
- BitOperations.cs
- Source:
- BitOperations.cs
Important
This API is not CLS-compliant.
Rotates the specified value right by the specified number of bits.
public:
 static System::UInt64 RotateRight(System::UInt64 value, int offset);[System.CLSCompliant(false)]
public static ulong RotateRight(ulong value, int offset);[<System.CLSCompliant(false)>]
static member RotateRight : uint64 * int -> uint64Public Shared Function RotateRight (value As ULong, offset As Integer) As ULongParameters
- value
- UInt64
The value to rotate.
- offset
- Int32
The number of bits to rotate by. Any value outside the range [0..63] is treated as congruent mod 64.
Returns
The rotated value.
- Attributes
Remarks
This method is similar in behavior to the x86 instruction ROR.
Applies to
RotateRight(UIntPtr, Int32)
- Source:
- BitOperations.cs
- Source:
- BitOperations.cs
- Source:
- BitOperations.cs
- Source:
- BitOperations.cs
Important
This API is not CLS-compliant.
Rotates the specified value right by the specified number of bits. Similar in behavior to the x86 instruction ROR.
public:
 static UIntPtr RotateRight(UIntPtr value, int offset);[System.CLSCompliant(false)]
public static UIntPtr RotateRight(UIntPtr value, int offset);[<System.CLSCompliant(false)>]
static member RotateRight : unativeint * int -> unativeintPublic Shared Function RotateRight (value As UIntPtr, offset As Integer) As UIntPtrParameters
- value
- 
				
				UIntPtr
unativeint 
The value to rotate.
- offset
- Int32
The number of bits to rotate by. Any value outside the range [0..31] is treated as congruent mod 32 on a 32-bit process, and any value outside the range [0..63] is treated as congruent mod 64 on a 64-bit process.
Returns
unativeint
The rotated value.
- Attributes