Method YShuffleG2_Byte
- Namespace
- Zyl.VectorTraits.Impl.AVector256
- Assembly
- VectorTraits.dll
YShuffleG2_Byte(Vector256<uint>, ShuffleControlG2)
For each 2-element groups in a vector, shuffle is performed (对于一个向量中的每个 2-元素组, 进行换位).
Mnemonic: View for group: rt.xy = shuffleG2_ref(control, source)
. View for element: rt[i] := source[(i&(~1)) | ((control >> (i&1)) & 1)]
.
[CLSCompliant(false)]
public static Vector256<uint> YShuffleG2_Byte(Vector256<uint> source, ShuffleControlG2 control)
Parameters
source
Vector256<uint>The input source from which values are selected (从中选择值的输入向量).
control
ShuffleControlG2Shuffle control code (换位控制码).
Returns
- Vector256<uint>
A new source containing the values from
source
selected by the givencontrol
(一个新向量,其中包含给定control
从source
中选择的值).
- See Also