Редагувати

Поділитися через


BitOperations.RotateRight Method

Definition

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

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 -> uint32
Public Shared Function RotateRight (value As UInteger, offset As Integer) As UInteger

Parameters

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

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 -> uint64
Public Shared Function RotateRight (value As ULong, offset As Integer) As ULong

Parameters

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

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 -> unativeint
Public Shared Function RotateRight (value As UIntPtr, offset As Integer) As UIntPtr

Parameters

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

UIntPtr

unativeint

The rotated value.

Attributes

Applies to