Method ShiftRightArithmetic_Fast
- Namespace
- Zyl.VectorTraits
- Assembly
- VectorTraits.dll
ShiftRightArithmetic_Fast(Vector256<sbyte>, int)
Shifts (signed) each element of a vector right by the specified amount - Fast(将向量的每个有符号元素算术右移指定量 - 快速). No check shiftAmount
, please use LimitShiftAmount<T>(int) first, and shiftAmount must not be 0 .
Mnemonic: rt[i] := value[i] >> shiftAmount
.
[CLSCompliant(false)]
public static Vector256<sbyte> ShiftRightArithmetic_Fast(Vector256<sbyte> value, int shiftAmount)
Parameters
value
Vector256<sbyte>The vector whose elements are to be shifted (要移位其元素的向量).
shiftAmount
intThe number of bits by which to shift each element (每个元素的移位位数). The valid range is 0~7 (有效范围是 0~7).
Returns
- Vector256<sbyte>
A vector whose elements where shifted right by
shiftAmount
(每个元素的右移shiftAmount
位的一个向量).
- See Also
ShiftRightArithmetic_Fast(Vector256<short>, int)
Shifts (signed) each element of a vector right by the specified amount - Fast(将向量的每个有符号元素算术右移指定量 - 快速). No check shiftAmount
, please use LimitShiftAmount<T>(int) first, and shiftAmount must not be 0 .
Mnemonic: rt[i] := value[i] >> shiftAmount
.
public static Vector256<short> ShiftRightArithmetic_Fast(Vector256<short> value, int shiftAmount)
Parameters
value
Vector256<short>The vector whose elements are to be shifted (要移位其元素的向量).
shiftAmount
intThe number of bits by which to shift each element (每个元素的移位位数). The valid range is 0~15 (有效范围是 0~15).
Returns
- Vector256<short>
A vector whose elements where shifted right by
shiftAmount
(每个元素的右移shiftAmount
位的一个向量).
- See Also
ShiftRightArithmetic_Fast(Vector256<int>, int)
Shifts (signed) each element of a vector right by the specified amount - Fast(将向量的每个有符号元素算术右移指定量 - 快速). No check shiftAmount
, please use LimitShiftAmount<T>(int) first, and shiftAmount must not be 0 .
Mnemonic: rt[i] := value[i] >> shiftAmount
.
public static Vector256<int> ShiftRightArithmetic_Fast(Vector256<int> value, int shiftAmount)
Parameters
value
Vector256<int>The vector whose elements are to be shifted (要移位其元素的向量).
shiftAmount
intThe number of bits by which to shift each element (每个元素的移位位数). The valid range is 0~31 (有效范围是 0~31).
Returns
- Vector256<int>
A vector whose elements where shifted right by
shiftAmount
(每个元素的右移shiftAmount
位的一个向量).
- See Also
ShiftRightArithmetic_Fast(Vector256<long>, int)
Shifts (signed) each element of a vector right by the specified amount - Fast(将向量的每个有符号元素算术右移指定量 - 快速). No check shiftAmount
, please use LimitShiftAmount<T>(int) first, and shiftAmount must not be 0 .
Mnemonic: rt[i] := value[i] >> shiftAmount
.
public static Vector256<long> ShiftRightArithmetic_Fast(Vector256<long> value, int shiftAmount)
Parameters
value
Vector256<long>The vector whose elements are to be shifted (要移位其元素的向量).
shiftAmount
intThe number of bits by which to shift each element (每个元素的移位位数). The valid range is 0~63 (有效范围是 0~63).
Returns
- Vector256<long>
A vector whose elements where shifted right by
shiftAmount
(每个元素的右移shiftAmount
位的一个向量).
- See Also