Table of Contents

Method YShuffleG2_Byte

Namespace
Zyl.VectorTraits.Impl.AVector512
Assembly
VectorTraits.dll

YShuffleG2_Byte(Vector512<uint>, ShuffleControlG2)

For each 2-element group 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 Vector512<uint> YShuffleG2_Byte(Vector512<uint> source, ShuffleControlG2 control)

Parameters

source Vector512<uint>

The input source from which values are selected (从中选择值的输入向量).

control ShuffleControlG2

Shuffle control code (换位控制码).

Returns

Vector512<uint>

A new source containing the values from source selected by the given control (一个新向量,其中包含给定 controlsource 中选择的值).

See Also