Method YShuffleG4X2_Const
- Namespace
- Zyl.VectorTraits
- Assembly
- VectorTraits.dll
YShuffleG4X2_Const<T>(Vector<T>, Vector<T>, ShuffleControlG4)
For each 4-element groups in two vector, shuffle is performed - Constant version (对于两个向量中的每个 4-元素组, 进行换位 - 常量版).
Mnemonic: View for group: rt.xyzw = shuffleG4_ref(control, source0, source1)
. View for element: element_ref(i, result0, result1) := element_ref((i&(~3)) | ((control >> ((i&3)*2)) & 3), source0, source1)
.
[Obsolete("It is only suitable for unit testing because it contains branching statements and has poor performance. In general, it is recommended to use the non-generic version of the methods (因它含有分支语句, 性能较差, 仅适用于单元测试. 一般情况下, 建议使用非泛型版方法).")]
public static (Vector<T> Result0, Vector<T> Result1) YShuffleG4X2_Const<T>(Vector<T> source0, Vector<T> source1, ShuffleControlG4 control) where T : struct
Parameters
source0
Vector<T>The input source 0 from which values are selected (从中选择值的输入源0).
source1
Vector<T>The input source 1 from which values are selected (从中选择值的输入源1).
control
ShuffleControlG4Shuffle control code (换位控制码).
Returns
Type Parameters
T
The element type of the input parameter (输入参数的元素类型).
- See Also
YShuffleG4X2_Const(Vector<float>, Vector<float>, ShuffleControlG4)
For each 4-element groups in two vector, shuffle is performed - Constant version (对于两个向量中的每个 4-元素组, 进行换位 - 常量版).
Mnemonic: View for group: rt.xyzw = shuffleG4_ref(control, source0, source1)
. View for element: element_ref(i, result0, result1) := element_ref((i&(~3)) | ((control >> ((i&3)*2)) & 3), source0, source1)
.
public static (Vector<float> Result0, Vector<float> Result1) YShuffleG4X2_Const(Vector<float> source0, Vector<float> source1, ShuffleControlG4 control)
Parameters
source0
Vector<float>The input source 0 from which values are selected (从中选择值的输入源0).
source1
Vector<float>The input source 1 from which values are selected (从中选择值的输入源1).
control
ShuffleControlG4Shuffle control code (换位控制码).
Returns
- See Also
YShuffleG4X2_Const(Vector<double>, Vector<double>, ShuffleControlG4)
For each 4-element groups in two vector, shuffle is performed - Constant version (对于两个向量中的每个 4-元素组, 进行换位 - 常量版).
Mnemonic: View for group: rt.xyzw = shuffleG4_ref(control, source0, source1)
. View for element: element_ref(i, result0, result1) := element_ref((i&(~3)) | ((control >> ((i&3)*2)) & 3), source0, source1)
.
public static (Vector<double> Result0, Vector<double> Result1) YShuffleG4X2_Const(Vector<double> source0, Vector<double> source1, ShuffleControlG4 control)
Parameters
source0
Vector<double>The input source 0 from which values are selected (从中选择值的输入源0).
source1
Vector<double>The input source 1 from which values are selected (从中选择值的输入源1).
control
ShuffleControlG4Shuffle control code (换位控制码).
Returns
- See Also
YShuffleG4X2_Const(Vector<sbyte>, Vector<sbyte>, ShuffleControlG4)
For each 4-element groups in two vector, shuffle is performed - Constant version (对于两个向量中的每个 4-元素组, 进行换位 - 常量版).
Mnemonic: View for group: rt.xyzw = shuffleG4_ref(control, source0, source1)
. View for element: element_ref(i, result0, result1) := element_ref((i&(~3)) | ((control >> ((i&3)*2)) & 3), source0, source1)
.
[CLSCompliant(false)]
public static (Vector<sbyte> Result0, Vector<sbyte> Result1) YShuffleG4X2_Const(Vector<sbyte> source0, Vector<sbyte> source1, ShuffleControlG4 control)
Parameters
source0
Vector<sbyte>The input source 0 from which values are selected (从中选择值的输入源0).
source1
Vector<sbyte>The input source 1 from which values are selected (从中选择值的输入源1).
control
ShuffleControlG4Shuffle control code (换位控制码).
Returns
- See Also
YShuffleG4X2_Const(Vector<byte>, Vector<byte>, ShuffleControlG4)
For each 4-element groups in two vector, shuffle is performed - Constant version (对于两个向量中的每个 4-元素组, 进行换位 - 常量版).
Mnemonic: View for group: rt.xyzw = shuffleG4_ref(control, source0, source1)
. View for element: element_ref(i, result0, result1) := element_ref((i&(~3)) | ((control >> ((i&3)*2)) & 3), source0, source1)
.
public static (Vector<byte> Result0, Vector<byte> Result1) YShuffleG4X2_Const(Vector<byte> source0, Vector<byte> source1, ShuffleControlG4 control)
Parameters
source0
Vector<byte>The input source 0 from which values are selected (从中选择值的输入源0).
source1
Vector<byte>The input source 1 from which values are selected (从中选择值的输入源1).
control
ShuffleControlG4Shuffle control code (换位控制码).
Returns
- See Also
YShuffleG4X2_Const(Vector<short>, Vector<short>, ShuffleControlG4)
For each 4-element groups in two vector, shuffle is performed - Constant version (对于两个向量中的每个 4-元素组, 进行换位 - 常量版).
Mnemonic: View for group: rt.xyzw = shuffleG4_ref(control, source0, source1)
. View for element: element_ref(i, result0, result1) := element_ref((i&(~3)) | ((control >> ((i&3)*2)) & 3), source0, source1)
.
public static (Vector<short> Result0, Vector<short> Result1) YShuffleG4X2_Const(Vector<short> source0, Vector<short> source1, ShuffleControlG4 control)
Parameters
source0
Vector<short>The input source 0 from which values are selected (从中选择值的输入源0).
source1
Vector<short>The input source 1 from which values are selected (从中选择值的输入源1).
control
ShuffleControlG4Shuffle control code (换位控制码).
Returns
- See Also
YShuffleG4X2_Const(Vector<ushort>, Vector<ushort>, ShuffleControlG4)
For each 4-element groups in two vector, shuffle is performed - Constant version (对于两个向量中的每个 4-元素组, 进行换位 - 常量版).
Mnemonic: View for group: rt.xyzw = shuffleG4_ref(control, source0, source1)
. View for element: element_ref(i, result0, result1) := element_ref((i&(~3)) | ((control >> ((i&3)*2)) & 3), source0, source1)
.
[CLSCompliant(false)]
public static (Vector<ushort> Result0, Vector<ushort> Result1) YShuffleG4X2_Const(Vector<ushort> source0, Vector<ushort> source1, ShuffleControlG4 control)
Parameters
source0
Vector<ushort>The input source 0 from which values are selected (从中选择值的输入源0).
source1
Vector<ushort>The input source 1 from which values are selected (从中选择值的输入源1).
control
ShuffleControlG4Shuffle control code (换位控制码).
Returns
- See Also
YShuffleG4X2_Const(Vector<int>, Vector<int>, ShuffleControlG4)
For each 4-element groups in two vector, shuffle is performed - Constant version (对于两个向量中的每个 4-元素组, 进行换位 - 常量版).
Mnemonic: View for group: rt.xyzw = shuffleG4_ref(control, source0, source1)
. View for element: element_ref(i, result0, result1) := element_ref((i&(~3)) | ((control >> ((i&3)*2)) & 3), source0, source1)
.
public static (Vector<int> Result0, Vector<int> Result1) YShuffleG4X2_Const(Vector<int> source0, Vector<int> source1, ShuffleControlG4 control)
Parameters
source0
Vector<int>The input source 0 from which values are selected (从中选择值的输入源0).
source1
Vector<int>The input source 1 from which values are selected (从中选择值的输入源1).
control
ShuffleControlG4Shuffle control code (换位控制码).
Returns
- See Also
YShuffleG4X2_Const(Vector<uint>, Vector<uint>, ShuffleControlG4)
For each 4-element groups in two vector, shuffle is performed - Constant version (对于两个向量中的每个 4-元素组, 进行换位 - 常量版).
Mnemonic: View for group: rt.xyzw = shuffleG4_ref(control, source0, source1)
. View for element: element_ref(i, result0, result1) := element_ref((i&(~3)) | ((control >> ((i&3)*2)) & 3), source0, source1)
.
[CLSCompliant(false)]
public static (Vector<uint> Result0, Vector<uint> Result1) YShuffleG4X2_Const(Vector<uint> source0, Vector<uint> source1, ShuffleControlG4 control)
Parameters
source0
Vector<uint>The input source 0 from which values are selected (从中选择值的输入源0).
source1
Vector<uint>The input source 1 from which values are selected (从中选择值的输入源1).
control
ShuffleControlG4Shuffle control code (换位控制码).
Returns
- See Also
YShuffleG4X2_Const(Vector<long>, Vector<long>, ShuffleControlG4)
For each 4-element groups in two vector, shuffle is performed - Constant version (对于两个向量中的每个 4-元素组, 进行换位 - 常量版).
Mnemonic: View for group: rt.xyzw = shuffleG4_ref(control, source0, source1)
. View for element: element_ref(i, result0, result1) := element_ref((i&(~3)) | ((control >> ((i&3)*2)) & 3), source0, source1)
.
public static (Vector<long> Result0, Vector<long> Result1) YShuffleG4X2_Const(Vector<long> source0, Vector<long> source1, ShuffleControlG4 control)
Parameters
source0
Vector<long>The input source 0 from which values are selected (从中选择值的输入源0).
source1
Vector<long>The input source 1 from which values are selected (从中选择值的输入源1).
control
ShuffleControlG4Shuffle control code (换位控制码).
Returns
- See Also
YShuffleG4X2_Const(Vector<ulong>, Vector<ulong>, ShuffleControlG4)
For each 4-element groups in two vector, shuffle is performed - Constant version (对于两个向量中的每个 4-元素组, 进行换位 - 常量版).
Mnemonic: View for group: rt.xyzw = shuffleG4_ref(control, source0, source1)
. View for element: element_ref(i, result0, result1) := element_ref((i&(~3)) | ((control >> ((i&3)*2)) & 3), source0, source1)
.
[CLSCompliant(false)]
public static (Vector<ulong> Result0, Vector<ulong> Result1) YShuffleG4X2_Const(Vector<ulong> source0, Vector<ulong> source1, ShuffleControlG4 control)
Parameters
source0
Vector<ulong>The input source 0 from which values are selected (从中选择值的输入源0).
source1
Vector<ulong>The input source 1 from which values are selected (从中选择值的输入源1).
control
ShuffleControlG4Shuffle control code (换位控制码).
Returns
- See Also
YShuffleG4X2_Const(Vector<float>, Vector<float>, ShuffleControlG4, out Vector<float>)
For each 4-element group in two vector, shuffle is performed - Constant version (对于两个向量中的每个 4-元素组, 进行换位 - 常量版).
Mnemonic: View for group: rt.xyzw = shuffleG4_ref(control, source0, source1)
. View for element: element_ref(i, result0, result1) := element_ref((i&(~3)) | ((control >> ((i&3)*2)) & 3), source0, source1)
.
public static Vector<float> YShuffleG4X2_Const(Vector<float> source0, Vector<float> source1, ShuffleControlG4 control, out Vector<float> result1)
Parameters
source0
Vector<float>The input source 0 from which values are selected (从中选择值的输入源0).
source1
Vector<float>The input source 1 from which values are selected (从中选择值的输入源1).
control
ShuffleControlG4Shuffle control code (换位控制码).
result1
Vector<float>Returns the 1st vector after shuffle (返回换位后的第1个向量).
Returns
- See Also
YShuffleG4X2_Const(Vector<double>, Vector<double>, ShuffleControlG4, out Vector<double>)
For each 4-element group in two vector, shuffle is performed - Constant version (对于两个向量中的每个 4-元素组, 进行换位 - 常量版).
Mnemonic: View for group: rt.xyzw = shuffleG4_ref(control, source0, source1)
. View for element: element_ref(i, result0, result1) := element_ref((i&(~3)) | ((control >> ((i&3)*2)) & 3), source0, source1)
.
public static Vector<double> YShuffleG4X2_Const(Vector<double> source0, Vector<double> source1, ShuffleControlG4 control, out Vector<double> result1)
Parameters
source0
Vector<double>The input source 0 from which values are selected (从中选择值的输入源0).
source1
Vector<double>The input source 1 from which values are selected (从中选择值的输入源1).
control
ShuffleControlG4Shuffle control code (换位控制码).
result1
Vector<double>Returns the 1st vector after shuffle (返回换位后的第1个向量).
Returns
- See Also
YShuffleG4X2_Const(Vector<sbyte>, Vector<sbyte>, ShuffleControlG4, out Vector<sbyte>)
For each 4-element group in two vector, shuffle is performed - Constant version (对于两个向量中的每个 4-元素组, 进行换位 - 常量版).
Mnemonic: View for group: rt.xyzw = shuffleG4_ref(control, source0, source1)
. View for element: element_ref(i, result0, result1) := element_ref((i&(~3)) | ((control >> ((i&3)*2)) & 3), source0, source1)
.
[CLSCompliant(false)]
public static Vector<sbyte> YShuffleG4X2_Const(Vector<sbyte> source0, Vector<sbyte> source1, ShuffleControlG4 control, out Vector<sbyte> result1)
Parameters
source0
Vector<sbyte>The input source 0 from which values are selected (从中选择值的输入源0).
source1
Vector<sbyte>The input source 1 from which values are selected (从中选择值的输入源1).
control
ShuffleControlG4Shuffle control code (换位控制码).
result1
Vector<sbyte>Returns the 1st vector after shuffle (返回换位后的第1个向量).
Returns
- See Also
YShuffleG4X2_Const(Vector<byte>, Vector<byte>, ShuffleControlG4, out Vector<byte>)
For each 4-element group in two vector, shuffle is performed - Constant version (对于两个向量中的每个 4-元素组, 进行换位 - 常量版).
Mnemonic: View for group: rt.xyzw = shuffleG4_ref(control, source0, source1)
. View for element: element_ref(i, result0, result1) := element_ref((i&(~3)) | ((control >> ((i&3)*2)) & 3), source0, source1)
.
public static Vector<byte> YShuffleG4X2_Const(Vector<byte> source0, Vector<byte> source1, ShuffleControlG4 control, out Vector<byte> result1)
Parameters
source0
Vector<byte>The input source 0 from which values are selected (从中选择值的输入源0).
source1
Vector<byte>The input source 1 from which values are selected (从中选择值的输入源1).
control
ShuffleControlG4Shuffle control code (换位控制码).
result1
Vector<byte>Returns the 1st vector after shuffle (返回换位后的第1个向量).
Returns
- See Also
YShuffleG4X2_Const(Vector<short>, Vector<short>, ShuffleControlG4, out Vector<short>)
For each 4-element group in two vector, shuffle is performed - Constant version (对于两个向量中的每个 4-元素组, 进行换位 - 常量版).
Mnemonic: View for group: rt.xyzw = shuffleG4_ref(control, source0, source1)
. View for element: element_ref(i, result0, result1) := element_ref((i&(~3)) | ((control >> ((i&3)*2)) & 3), source0, source1)
.
public static Vector<short> YShuffleG4X2_Const(Vector<short> source0, Vector<short> source1, ShuffleControlG4 control, out Vector<short> result1)
Parameters
source0
Vector<short>The input source 0 from which values are selected (从中选择值的输入源0).
source1
Vector<short>The input source 1 from which values are selected (从中选择值的输入源1).
control
ShuffleControlG4Shuffle control code (换位控制码).
result1
Vector<short>Returns the 1st vector after shuffle (返回换位后的第1个向量).
Returns
- See Also
YShuffleG4X2_Const(Vector<ushort>, Vector<ushort>, ShuffleControlG4, out Vector<ushort>)
For each 4-element group in two vector, shuffle is performed - Constant version (对于两个向量中的每个 4-元素组, 进行换位 - 常量版).
Mnemonic: View for group: rt.xyzw = shuffleG4_ref(control, source0, source1)
. View for element: element_ref(i, result0, result1) := element_ref((i&(~3)) | ((control >> ((i&3)*2)) & 3), source0, source1)
.
[CLSCompliant(false)]
public static Vector<ushort> YShuffleG4X2_Const(Vector<ushort> source0, Vector<ushort> source1, ShuffleControlG4 control, out Vector<ushort> result1)
Parameters
source0
Vector<ushort>The input source 0 from which values are selected (从中选择值的输入源0).
source1
Vector<ushort>The input source 1 from which values are selected (从中选择值的输入源1).
control
ShuffleControlG4Shuffle control code (换位控制码).
result1
Vector<ushort>Returns the 1st vector after shuffle (返回换位后的第1个向量).
Returns
- See Also
YShuffleG4X2_Const(Vector<int>, Vector<int>, ShuffleControlG4, out Vector<int>)
For each 4-element group in two vector, shuffle is performed - Constant version (对于两个向量中的每个 4-元素组, 进行换位 - 常量版).
Mnemonic: View for group: rt.xyzw = shuffleG4_ref(control, source0, source1)
. View for element: element_ref(i, result0, result1) := element_ref((i&(~3)) | ((control >> ((i&3)*2)) & 3), source0, source1)
.
public static Vector<int> YShuffleG4X2_Const(Vector<int> source0, Vector<int> source1, ShuffleControlG4 control, out Vector<int> result1)
Parameters
source0
Vector<int>The input source 0 from which values are selected (从中选择值的输入源0).
source1
Vector<int>The input source 1 from which values are selected (从中选择值的输入源1).
control
ShuffleControlG4Shuffle control code (换位控制码).
result1
Vector<int>Returns the 1st vector after shuffle (返回换位后的第1个向量).
Returns
- See Also
YShuffleG4X2_Const(Vector<uint>, Vector<uint>, ShuffleControlG4, out Vector<uint>)
For each 4-element group in two vector, shuffle is performed - Constant version (对于两个向量中的每个 4-元素组, 进行换位 - 常量版).
Mnemonic: View for group: rt.xyzw = shuffleG4_ref(control, source0, source1)
. View for element: element_ref(i, result0, result1) := element_ref((i&(~3)) | ((control >> ((i&3)*2)) & 3), source0, source1)
.
[CLSCompliant(false)]
public static Vector<uint> YShuffleG4X2_Const(Vector<uint> source0, Vector<uint> source1, ShuffleControlG4 control, out Vector<uint> result1)
Parameters
source0
Vector<uint>The input source 0 from which values are selected (从中选择值的输入源0).
source1
Vector<uint>The input source 1 from which values are selected (从中选择值的输入源1).
control
ShuffleControlG4Shuffle control code (换位控制码).
result1
Vector<uint>Returns the 1st vector after shuffle (返回换位后的第1个向量).
Returns
- See Also
YShuffleG4X2_Const(Vector<long>, Vector<long>, ShuffleControlG4, out Vector<long>)
For each 4-element group in two vector, shuffle is performed - Constant version (对于两个向量中的每个 4-元素组, 进行换位 - 常量版).
Mnemonic: View for group: rt.xyzw = shuffleG4_ref(control, source0, source1)
. View for element: element_ref(i, result0, result1) := element_ref((i&(~3)) | ((control >> ((i&3)*2)) & 3), source0, source1)
.
public static Vector<long> YShuffleG4X2_Const(Vector<long> source0, Vector<long> source1, ShuffleControlG4 control, out Vector<long> result1)
Parameters
source0
Vector<long>The input source 0 from which values are selected (从中选择值的输入源0).
source1
Vector<long>The input source 1 from which values are selected (从中选择值的输入源1).
control
ShuffleControlG4Shuffle control code (换位控制码).
result1
Vector<long>Returns the 1st vector after shuffle (返回换位后的第1个向量).
Returns
- See Also
YShuffleG4X2_Const(Vector<ulong>, Vector<ulong>, ShuffleControlG4, out Vector<ulong>)
For each 4-element group in two vector, shuffle is performed - Constant version (对于两个向量中的每个 4-元素组, 进行换位 - 常量版).
Mnemonic: View for group: rt.xyzw = shuffleG4_ref(control, source0, source1)
. View for element: element_ref(i, result0, result1) := element_ref((i&(~3)) | ((control >> ((i&3)*2)) & 3), source0, source1)
.
[CLSCompliant(false)]
public static Vector<ulong> YShuffleG4X2_Const(Vector<ulong> source0, Vector<ulong> source1, ShuffleControlG4 control, out Vector<ulong> result1)
Parameters
source0
Vector<ulong>The input source 0 from which values are selected (从中选择值的输入源0).
source1
Vector<ulong>The input source 1 from which values are selected (从中选择值的输入源1).
control
ShuffleControlG4Shuffle control code (换位控制码).
result1
Vector<ulong>Returns the 1st vector after shuffle (返回换位后的第1个向量).
Returns
- See Also