Table of Contents

Method ShiftRightArithmetic

Namespace
Zyl.VectorTraits.Impl
Assembly
VectorTraits.dll

ShiftRightArithmetic(Vector128<sbyte>, int)

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

Vector128<sbyte> ShiftRightArithmetic(Vector128<sbyte> value, int shiftAmount)

Parameters

value Vector128<sbyte>

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

shiftAmount int

The number of bits by which to shift each element (每个元素的移位位数).

Returns

Vector128<sbyte>

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

See Also

ShiftRightArithmetic(Vector128<short>, int)

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

Vector128<short> ShiftRightArithmetic(Vector128<short> value, int shiftAmount)

Parameters

value Vector128<short>

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

shiftAmount int

The number of bits by which to shift each element (每个元素的移位位数).

Returns

Vector128<short>

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

See Also

ShiftRightArithmetic(Vector128<int>, int)

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

Vector128<int> ShiftRightArithmetic(Vector128<int> value, int shiftAmount)

Parameters

value Vector128<int>

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

shiftAmount int

The number of bits by which to shift each element (每个元素的移位位数).

Returns

Vector128<int>

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

See Also

ShiftRightArithmetic(Vector128<long>, int)

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

Vector128<long> ShiftRightArithmetic(Vector128<long> value, int shiftAmount)

Parameters

value Vector128<long>

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

shiftAmount int

The number of bits by which to shift each element (每个元素的移位位数).

Returns

Vector128<long>

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

See Also