Table of Contents

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 uint

The value to rotate.

offset int

The 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 ulong

The value to rotate.

offset int

The 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

value ExUInt128
offset int

Returns

ExUInt128

RotateRight(UInt128, int)

[CLSCompliant(false)]
public static UInt128 RotateRight(UInt128 value, int offset)

Parameters

value UInt128
offset int

Returns

UInt128

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 nuint

The value to rotate.

offset int

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

nuint

The rotated value.