Table of Contents

Method ShiftRightArithmetic_Const

Namespace
Zyl.VectorTraits
Assembly
VectorTraits.dll

ShiftRightArithmetic_Const(Vector<sbyte>, int)

Shifts (signed) each element of a vector right by the specified amount - Const(将向量的每个有符号元素算术右移指定量 - 常量). Mnemonic: rt[i] := value[i] >> shiftAmount.

[CLSCompliant(false)]
public static Vector<sbyte> ShiftRightArithmetic_Const(Vector<sbyte> value, int shiftAmount)

Parameters

value Vector<sbyte>

The vector whose elements are to be shifted (要移位其元素的向量).

shiftAmount int

The number of bits by which to shift each element (每个元素的移位位数). The valid range is 1~7 (有效范围是 1~7).

Returns

Vector<sbyte>

A vector whose elements where shifted right by shiftAmount (每个元素的右移 shiftAmount 位的一个向量).

See Also

ShiftRightArithmetic_Const(Vector<short>, int)

Shifts (signed) each element of a vector right by the specified amount - Const(将向量的每个有符号元素算术右移指定量 - 常量). Mnemonic: rt[i] := value[i] >> shiftAmount.

public static Vector<short> ShiftRightArithmetic_Const(Vector<short> value, int shiftAmount)

Parameters

value Vector<short>

The vector whose elements are to be shifted (要移位其元素的向量).

shiftAmount int

The number of bits by which to shift each element (每个元素的移位位数). The valid range is 1~15 (有效范围是 1~15).

Returns

Vector<short>

A vector whose elements where shifted right by shiftAmount (每个元素的右移 shiftAmount 位的一个向量).

See Also

ShiftRightArithmetic_Const(Vector<int>, int)

Shifts (signed) each element of a vector right by the specified amount - Const(将向量的每个有符号元素算术右移指定量 - 常量). Mnemonic: rt[i] := value[i] >> shiftAmount.

public static Vector<int> ShiftRightArithmetic_Const(Vector<int> value, int shiftAmount)

Parameters

value Vector<int>

The vector whose elements are to be shifted (要移位其元素的向量).

shiftAmount int

The number of bits by which to shift each element (每个元素的移位位数). The valid range is 1~31 (有效范围是 1~31).

Returns

Vector<int>

A vector whose elements where shifted right by shiftAmount (每个元素的右移 shiftAmount 位的一个向量).

See Also

ShiftRightArithmetic_Const(Vector<long>, int)

Shifts (signed) each element of a vector right by the specified amount - Const(将向量的每个有符号元素算术右移指定量 - 常量). Mnemonic: rt[i] := value[i] >> shiftAmount.

public static Vector<long> ShiftRightArithmetic_Const(Vector<long> value, int shiftAmount)

Parameters

value Vector<long>

The vector whose elements are to be shifted (要移位其元素的向量).

shiftAmount int

The number of bits by which to shift each element (每个元素的移位位数). The valid range is 1~63 (有效范围是 1~63).

Returns

Vector<long>

A vector whose elements where shifted right by shiftAmount (每个元素的右移 shiftAmount 位的一个向量).

See Also