Method ShiftLeft
- Namespace
- Zyl.VectorTraits
- Assembly
- VectorTraits.dll
ShiftLeft(Vector128<sbyte>, int)
Shifts each element of a vector left by the specified amount (将向量的每个元素左移指定量).
Mnemonic: rt[i] := value[i] << shiftAmount
, shiftAmount &= (T.BitSize-1)
.
[CLSCompliant(false)]
public static Vector128<sbyte> ShiftLeft(Vector128<sbyte> value, int shiftAmount)
Parameters
value
Vector128<sbyte>The vector whose elements are to be shifted (要移位其元素的向量).
shiftAmount
intThe number of bits by which to shift each element (每个元素的移位位数).
Returns
- Vector128<sbyte>
A vector whose elements where shifted left by
shiftAmount
(每个元素的左移shiftAmount
位的一个向量).
- See Also
ShiftLeft(Vector128<byte>, int)
Shifts each element of a vector left by the specified amount (将向量的每个元素左移指定量).
Mnemonic: rt[i] := value[i] << shiftAmount
, shiftAmount &= (T.BitSize-1)
.
public static Vector128<byte> ShiftLeft(Vector128<byte> value, int shiftAmount)
Parameters
value
Vector128<byte>The vector whose elements are to be shifted (要移位其元素的向量).
shiftAmount
intThe number of bits by which to shift each element (每个元素的移位位数).
Returns
- Vector128<byte>
A vector whose elements where shifted left by
shiftAmount
(每个元素的左移shiftAmount
位的一个向量).
- See Also
ShiftLeft(Vector128<short>, int)
Shifts each element of a vector left by the specified amount (将向量的每个元素左移指定量).
Mnemonic: rt[i] := value[i] << shiftAmount
, shiftAmount &= (T.BitSize-1)
.
public static Vector128<short> ShiftLeft(Vector128<short> value, int shiftAmount)
Parameters
value
Vector128<short>The vector whose elements are to be shifted (要移位其元素的向量).
shiftAmount
intThe number of bits by which to shift each element (每个元素的移位位数).
Returns
- Vector128<short>
A vector whose elements where shifted left by
shiftAmount
(每个元素的左移shiftAmount
位的一个向量).
- See Also
ShiftLeft(Vector128<ushort>, int)
Shifts each element of a vector left by the specified amount (将向量的每个元素左移指定量).
Mnemonic: rt[i] := value[i] << shiftAmount
, shiftAmount &= (T.BitSize-1)
.
[CLSCompliant(false)]
public static Vector128<ushort> ShiftLeft(Vector128<ushort> value, int shiftAmount)
Parameters
value
Vector128<ushort>The vector whose elements are to be shifted (要移位其元素的向量).
shiftAmount
intThe number of bits by which to shift each element (每个元素的移位位数).
Returns
- Vector128<ushort>
A vector whose elements where shifted left by
shiftAmount
(每个元素的左移shiftAmount
位的一个向量).
- See Also
ShiftLeft(Vector128<int>, int)
Shifts each element of a vector left by the specified amount (将向量的每个元素左移指定量).
Mnemonic: rt[i] := value[i] << shiftAmount
, shiftAmount &= (T.BitSize-1)
.
public static Vector128<int> ShiftLeft(Vector128<int> value, int shiftAmount)
Parameters
value
Vector128<int>The vector whose elements are to be shifted (要移位其元素的向量).
shiftAmount
intThe number of bits by which to shift each element (每个元素的移位位数).
Returns
- Vector128<int>
A vector whose elements where shifted left by
shiftAmount
(每个元素的左移shiftAmount
位的一个向量).
- See Also
ShiftLeft(Vector128<uint>, int)
Shifts each element of a vector left by the specified amount (将向量的每个元素左移指定量).
Mnemonic: rt[i] := value[i] << shiftAmount
, shiftAmount &= (T.BitSize-1)
.
[CLSCompliant(false)]
public static Vector128<uint> ShiftLeft(Vector128<uint> value, int shiftAmount)
Parameters
value
Vector128<uint>The vector whose elements are to be shifted (要移位其元素的向量).
shiftAmount
intThe number of bits by which to shift each element (每个元素的移位位数).
Returns
- Vector128<uint>
A vector whose elements where shifted left by
shiftAmount
(每个元素的左移shiftAmount
位的一个向量).
- See Also
ShiftLeft(Vector128<long>, int)
Shifts each element of a vector left by the specified amount (将向量的每个元素左移指定量).
Mnemonic: rt[i] := value[i] << shiftAmount
, shiftAmount &= (T.BitSize-1)
.
public static Vector128<long> ShiftLeft(Vector128<long> value, int shiftAmount)
Parameters
value
Vector128<long>The vector whose elements are to be shifted (要移位其元素的向量).
shiftAmount
intThe number of bits by which to shift each element (每个元素的移位位数).
Returns
- Vector128<long>
A vector whose elements where shifted left by
shiftAmount
(每个元素的左移shiftAmount
位的一个向量).
- See Also
ShiftLeft(Vector128<ulong>, int)
Shifts each element of a vector left by the specified amount (将向量的每个元素左移指定量).
Mnemonic: rt[i] := value[i] << shiftAmount
, shiftAmount &= (T.BitSize-1)
.
[CLSCompliant(false)]
public static Vector128<ulong> ShiftLeft(Vector128<ulong> value, int shiftAmount)
Parameters
value
Vector128<ulong>The vector whose elements are to be shifted (要移位其元素的向量).
shiftAmount
intThe number of bits by which to shift each element (每个元素的移位位数).
Returns
- Vector128<ulong>
A vector whose elements where shifted left by
shiftAmount
(每个元素的左移shiftAmount
位的一个向量).
- See Also