Method YShuffleG4X2_Basic
- Namespace
- Zyl.VectorTraits.Impl.AVector128
- Assembly
- VectorTraits.dll
YShuffleG4X2_Basic(Vector128<ulong>, Vector128<ulong>, ShuffleControlG4, out Vector128<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 Vector128<ulong> YShuffleG4X2_Basic(Vector128<ulong> source0, Vector128<ulong> source1, ShuffleControlG4 control, out Vector128<ulong> result1)
Parameters
source0
Vector128<ulong>The input source 0 from which values are selected (从中选择值的输入源0).
source1
Vector128<ulong>The input source 1 from which values are selected (从中选择值的输入源1).
control
ShuffleControlG4Shuffle control code (换位控制码).
result1
Vector128<ulong>Returns the 1st vector after shuffle (返回换位后的第1个向量).
Returns
- See Also