Method RotateRight
- Namespace
- Zyl.VectorTraits.Numerics
- Assembly
- VectorTraits.dll
RotateRight(uint, int)
Rotates the specified value right by the specified number of bits. Similar in behavior to the x86 instruction ROR.
[CLSCompliant(false)]
public static uint RotateRight(uint value, int offset)
Parameters
value
uintThe value to rotate.
offset
intThe number of bits to rotate by. Any value outside the range [0..31] is treated as congruent mod 32.
Returns
- uint
The rotated value.
RotateRight(ulong, int)
Rotates the specified value right by the specified number of bits. Similar in behavior to the x86 instruction ROR.
[CLSCompliant(false)]
public static ulong RotateRight(ulong value, int offset)
Parameters
value
ulongThe value to rotate.
offset
intThe number of bits to rotate by. Any value outside the range [0..63] is treated as congruent mod 64.
Returns
- ulong
The rotated value.
RotateRight(ExUInt128, int)
[CLSCompliant(false)]
public static ExUInt128 RotateRight(ExUInt128 value, int offset)
Parameters
Returns
RotateRight(UInt128, int)
[CLSCompliant(false)]
public static UInt128 RotateRight(UInt128 value, int offset)
Parameters
Returns
RotateRight(nuint, int)
Rotates the specified value right by the specified number of bits. Similar in behavior to the x86 instruction ROR.
[CLSCompliant(false)]
public static nuint RotateRight(nuint value, int offset)
Parameters
value
nuintThe value to rotate.
offset
intThe 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
- nuint
The rotated value.