Table of Contents

Method YShuffleG4

Namespace
Zyl.VectorTraits.Impl
Assembly
VectorTraits.dll

YShuffleG4(Vector128<float>, ShuffleControlG4)

For each 4-element group in a vector, shuffle is performed (对于一个向量中的每个 4-元素组, 进行换位). If the count of elements in a vector is less than 4, please use YShuffleG4X2 instead (如果向量的元素数量小于4,请使用 YShuffleG4X2 代替). Mnemonic: View for group: rt.xyzw = shuffleG4_ref(control, source). View for element: rt[i] := source[(i&(~3)) | ((control >> ((i&3)*2)) & 3)].

Vector128<float> YShuffleG4(Vector128<float> source, ShuffleControlG4 control)

Parameters

source Vector128<float>

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

control ShuffleControlG4

Shuffle control code (换位控制码).

Returns

Vector128<float>

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

See Also

YShuffleG4(Vector128<sbyte>, ShuffleControlG4)

For each 4-element group in a vector, shuffle is performed (对于一个向量中的每个 4-元素组, 进行换位). If the count of elements in a vector is less than 4, please use YShuffleG4X2 instead (如果向量的元素数量小于4,请使用 YShuffleG4X2 代替). Mnemonic: View for group: rt.xyzw = shuffleG4_ref(control, source). View for element: rt[i] := source[(i&(~3)) | ((control >> ((i&3)*2)) & 3)].

Vector128<sbyte> YShuffleG4(Vector128<sbyte> source, ShuffleControlG4 control)

Parameters

source Vector128<sbyte>

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

control ShuffleControlG4

Shuffle control code (换位控制码).

Returns

Vector128<sbyte>

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

See Also

YShuffleG4(Vector128<byte>, ShuffleControlG4)

For each 4-element group in a vector, shuffle is performed (对于一个向量中的每个 4-元素组, 进行换位). If the count of elements in a vector is less than 4, please use YShuffleG4X2 instead (如果向量的元素数量小于4,请使用 YShuffleG4X2 代替). Mnemonic: View for group: rt.xyzw = shuffleG4_ref(control, source). View for element: rt[i] := source[(i&(~3)) | ((control >> ((i&3)*2)) & 3)].

Vector128<byte> YShuffleG4(Vector128<byte> source, ShuffleControlG4 control)

Parameters

source Vector128<byte>

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

control ShuffleControlG4

Shuffle control code (换位控制码).

Returns

Vector128<byte>

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

See Also

YShuffleG4(Vector128<short>, ShuffleControlG4)

For each 4-element group in a vector, shuffle is performed (对于一个向量中的每个 4-元素组, 进行换位). If the count of elements in a vector is less than 4, please use YShuffleG4X2 instead (如果向量的元素数量小于4,请使用 YShuffleG4X2 代替). Mnemonic: View for group: rt.xyzw = shuffleG4_ref(control, source). View for element: rt[i] := source[(i&(~3)) | ((control >> ((i&3)*2)) & 3)].

Vector128<short> YShuffleG4(Vector128<short> source, ShuffleControlG4 control)

Parameters

source Vector128<short>

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

control ShuffleControlG4

Shuffle control code (换位控制码).

Returns

Vector128<short>

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

See Also

YShuffleG4(Vector128<ushort>, ShuffleControlG4)

For each 4-element group in a vector, shuffle is performed (对于一个向量中的每个 4-元素组, 进行换位). If the count of elements in a vector is less than 4, please use YShuffleG4X2 instead (如果向量的元素数量小于4,请使用 YShuffleG4X2 代替). Mnemonic: View for group: rt.xyzw = shuffleG4_ref(control, source). View for element: rt[i] := source[(i&(~3)) | ((control >> ((i&3)*2)) & 3)].

Vector128<ushort> YShuffleG4(Vector128<ushort> source, ShuffleControlG4 control)

Parameters

source Vector128<ushort>

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

control ShuffleControlG4

Shuffle control code (换位控制码).

Returns

Vector128<ushort>

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

See Also

YShuffleG4(Vector128<int>, ShuffleControlG4)

For each 4-element group in a vector, shuffle is performed (对于一个向量中的每个 4-元素组, 进行换位). If the count of elements in a vector is less than 4, please use YShuffleG4X2 instead (如果向量的元素数量小于4,请使用 YShuffleG4X2 代替). Mnemonic: View for group: rt.xyzw = shuffleG4_ref(control, source). View for element: rt[i] := source[(i&(~3)) | ((control >> ((i&3)*2)) & 3)].

Vector128<int> YShuffleG4(Vector128<int> source, ShuffleControlG4 control)

Parameters

source Vector128<int>

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

control ShuffleControlG4

Shuffle control code (换位控制码).

Returns

Vector128<int>

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

See Also

YShuffleG4(Vector128<uint>, ShuffleControlG4)

For each 4-element group in a vector, shuffle is performed (对于一个向量中的每个 4-元素组, 进行换位). If the count of elements in a vector is less than 4, please use YShuffleG4X2 instead (如果向量的元素数量小于4,请使用 YShuffleG4X2 代替). Mnemonic: View for group: rt.xyzw = shuffleG4_ref(control, source). View for element: rt[i] := source[(i&(~3)) | ((control >> ((i&3)*2)) & 3)].

Vector128<uint> YShuffleG4(Vector128<uint> source, ShuffleControlG4 control)

Parameters

source Vector128<uint>

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

control ShuffleControlG4

Shuffle control code (换位控制码).

Returns

Vector128<uint>

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

See Also