Method ShiftRightArithmetic
- Namespace
- Zyl.VectorTraits.Impl.AVector
- Assembly
- VectorTraits.dll
ShiftRightArithmetic(Vector<sbyte>, int)
Shifts (signed) each element of a vector right by the specified amount (将向量的每个有符号元素算术右移指定量).
Mnemonic: rt[i] := value[i] >> shiftAmount
, shiftAmount &= (T.BitSize-1)
.
[CLSCompliant(false)]
public override Vector<sbyte> ShiftRightArithmetic(Vector<sbyte> value, int shiftAmount)
Parameters
value
Vector<sbyte>The vector whose elements are to be shifted (要移位其元素的向量).
shiftAmount
intThe number of bits by which to shift each element (每个元素的移位位数).
Returns
- Vector<sbyte>
A vector whose elements where shifted right by
shiftAmount
(每个元素的右移shiftAmount
位的一个向量).
- See Also
ShiftRightArithmetic(Vector<short>, int)
Shifts (signed) each element of a vector right by the specified amount (将向量的每个有符号元素算术右移指定量).
Mnemonic: rt[i] := value[i] >> shiftAmount
, shiftAmount &= (T.BitSize-1)
.
public override Vector<short> ShiftRightArithmetic(Vector<short> value, int shiftAmount)
Parameters
value
Vector<short>The vector whose elements are to be shifted (要移位其元素的向量).
shiftAmount
intThe number of bits by which to shift each element (每个元素的移位位数).
Returns
- Vector<short>
A vector whose elements where shifted right by
shiftAmount
(每个元素的右移shiftAmount
位的一个向量).
- See Also
ShiftRightArithmetic(Vector<int>, int)
Shifts (signed) each element of a vector right by the specified amount (将向量的每个有符号元素算术右移指定量).
Mnemonic: rt[i] := value[i] >> shiftAmount
, shiftAmount &= (T.BitSize-1)
.
public override Vector<int> ShiftRightArithmetic(Vector<int> value, int shiftAmount)
Parameters
value
Vector<int>The vector whose elements are to be shifted (要移位其元素的向量).
shiftAmount
intThe number of bits by which to shift each element (每个元素的移位位数).
Returns
- Vector<int>
A vector whose elements where shifted right by
shiftAmount
(每个元素的右移shiftAmount
位的一个向量).
- See Also
ShiftRightArithmetic(Vector<long>, int)
Shifts (signed) each element of a vector right by the specified amount (将向量的每个有符号元素算术右移指定量).
Mnemonic: rt[i] := value[i] >> shiftAmount
, shiftAmount &= (T.BitSize-1)
.
public override Vector<long> ShiftRightArithmetic(Vector<long> value, int shiftAmount)
Parameters
value
Vector<long>The vector whose elements are to be shifted (要移位其元素的向量).
shiftAmount
intThe number of bits by which to shift each element (每个元素的移位位数).
Returns
- Vector<long>
A vector whose elements where shifted right by
shiftAmount
(每个元素的右移shiftAmount
位的一个向量).
- See Also