Method YShuffleG4X2_Basic
- Namespace
- Zyl.VectorTraits.Impl.AVector
- Assembly
- VectorTraits.dll
YShuffleG4X2_Basic(Vector<ulong>, Vector<ulong>, ShuffleControlG4, out Vector<ulong>)
For each 4-element group in two vector, shuffle is performed (对于两个向量中的每个 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_Basic(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