Table of Contents

Method YShuffleG4X2

Namespace
Zyl.VectorTraits
Assembly
VectorTraits.dll

YShuffleG4X2<T>(Vector128<T>, Vector128<T>, ShuffleControlG4)

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).

[Obsolete("It is only suitable for unit testing because it contains branching statements and has poor performance. In general, it is recommended to use the non-generic version of the methods (因它含有分支语句, 性能较差, 仅适用于单元测试. 一般情况下, 建议使用非泛型版方法).")]
public static (Vector128<T> Result0, Vector128<T> Result1) YShuffleG4X2<T>(Vector128<T> source0, Vector128<T> source1, ShuffleControlG4 control) where T : struct

Parameters

source0 Vector128<T>

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

source1 Vector128<T>

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

control ShuffleControlG4

Shuffle control code (换位控制码).

Returns

(Vector128<T> args0, Vector128<T> args1)

Returns the two vectors after shuffle (返回换位后的两个向量).

Type Parameters

T

The element type of the input parameter (输入参数的元素类型).

See Also

YShuffleG4X2(Vector128<float>, Vector128<float>, ShuffleControlG4)

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).

public static (Vector128<float> Result0, Vector128<float> Result1) YShuffleG4X2(Vector128<float> source0, Vector128<float> source1, ShuffleControlG4 control)

Parameters

source0 Vector128<float>

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

source1 Vector128<float>

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

control ShuffleControlG4

Shuffle control code (换位控制码).

Returns

(Vector128<float> Result0, Vector128<float> Result1)

Returns the two vectors after shuffle (返回换位后的两个向量).

See Also

YShuffleG4X2(Vector128<double>, Vector128<double>, ShuffleControlG4)

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).

public static (Vector128<double> Result0, Vector128<double> Result1) YShuffleG4X2(Vector128<double> source0, Vector128<double> source1, ShuffleControlG4 control)

Parameters

source0 Vector128<double>

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

source1 Vector128<double>

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

control ShuffleControlG4

Shuffle control code (换位控制码).

Returns

(Vector128<double> Lower, Vector128<double> Upper)

Returns the two vectors after shuffle (返回换位后的两个向量).

See Also

YShuffleG4X2(Vector128<sbyte>, Vector128<sbyte>, ShuffleControlG4)

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<sbyte> Result0, Vector128<sbyte> Result1) YShuffleG4X2(Vector128<sbyte> source0, Vector128<sbyte> source1, ShuffleControlG4 control)

Parameters

source0 Vector128<sbyte>

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

source1 Vector128<sbyte>

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

control ShuffleControlG4

Shuffle control code (换位控制码).

Returns

(Vector128<sbyte> args0, Vector128<sbyte> args1)

Returns the two vectors after shuffle (返回换位后的两个向量).

See Also

YShuffleG4X2(Vector128<byte>, Vector128<byte>, ShuffleControlG4)

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).

public static (Vector128<byte> Result0, Vector128<byte> Result1) YShuffleG4X2(Vector128<byte> source0, Vector128<byte> source1, ShuffleControlG4 control)

Parameters

source0 Vector128<byte>

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

source1 Vector128<byte>

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

control ShuffleControlG4

Shuffle control code (换位控制码).

Returns

(Vector128<byte> args0, Vector128<byte> args1)

Returns the two vectors after shuffle (返回换位后的两个向量).

See Also

YShuffleG4X2(Vector128<short>, Vector128<short>, ShuffleControlG4)

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).

public static (Vector128<short> Result0, Vector128<short> Result1) YShuffleG4X2(Vector128<short> source0, Vector128<short> source1, ShuffleControlG4 control)

Parameters

source0 Vector128<short>

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

source1 Vector128<short>

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

control ShuffleControlG4

Shuffle control code (换位控制码).

Returns

(Vector128<short> Lower, Vector128<short> Upper)

Returns the two vectors after shuffle (返回换位后的两个向量).

See Also

YShuffleG4X2(Vector128<ushort>, Vector128<ushort>, ShuffleControlG4)

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<ushort> Result0, Vector128<ushort> Result1) YShuffleG4X2(Vector128<ushort> source0, Vector128<ushort> source1, ShuffleControlG4 control)

Parameters

source0 Vector128<ushort>

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

source1 Vector128<ushort>

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

control ShuffleControlG4

Shuffle control code (换位控制码).

Returns

(Vector128<ushort> Lower, Vector128<ushort> Upper)

Returns the two vectors after shuffle (返回换位后的两个向量).

See Also

YShuffleG4X2(Vector128<int>, Vector128<int>, ShuffleControlG4)

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).

public static (Vector128<int> Result0, Vector128<int> Result1) YShuffleG4X2(Vector128<int> source0, Vector128<int> source1, ShuffleControlG4 control)

Parameters

source0 Vector128<int>

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

source1 Vector128<int>

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

control ShuffleControlG4

Shuffle control code (换位控制码).

Returns

(Vector128<int> Lower, Vector128<int> Upper)

Returns the two vectors after shuffle (返回换位后的两个向量).

See Also

YShuffleG4X2(Vector128<uint>, Vector128<uint>, ShuffleControlG4)

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<uint> Result0, Vector128<uint> Result1) YShuffleG4X2(Vector128<uint> source0, Vector128<uint> source1, ShuffleControlG4 control)

Parameters

source0 Vector128<uint>

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

source1 Vector128<uint>

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

control ShuffleControlG4

Shuffle control code (换位控制码).

Returns

(Vector128<uint> Lower, Vector128<uint> Upper)

Returns the two vectors after shuffle (返回换位后的两个向量).

See Also

YShuffleG4X2(Vector128<long>, Vector128<long>, ShuffleControlG4)

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).

public static (Vector128<long> Result0, Vector128<long> Result1) YShuffleG4X2(Vector128<long> source0, Vector128<long> source1, ShuffleControlG4 control)

Parameters

source0 Vector128<long>

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

source1 Vector128<long>

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

control ShuffleControlG4

Shuffle control code (换位控制码).

Returns

(Vector128<long> Lower, Vector128<long> Upper)

Returns the two vectors after shuffle (返回换位后的两个向量).

See Also

YShuffleG4X2(Vector128<ulong>, Vector128<ulong>, ShuffleControlG4)

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> Result0, Vector128<ulong> Result1) YShuffleG4X2(Vector128<ulong> source0, Vector128<ulong> source1, ShuffleControlG4 control)

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 ShuffleControlG4

Shuffle control code (换位控制码).

Returns

(Vector128<ulong> Lower, Vector128<ulong> Upper)

Returns the two vectors after shuffle (返回换位后的两个向量).

See Also

YShuffleG4X2(Vector128<float>, Vector128<float>, ShuffleControlG4, out Vector128<float>)

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).

public static Vector128<float> YShuffleG4X2(Vector128<float> source0, Vector128<float> source1, ShuffleControlG4 control, out Vector128<float> result1)

Parameters

source0 Vector128<float>

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

source1 Vector128<float>

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

control ShuffleControlG4

Shuffle control code (换位控制码).

result1 Vector128<float>

Returns the 1st vector after shuffle (返回换位后的第1个向量).

Returns

Vector128<float>

Returns the 0th vector after shuffle (返回换位后的第0个向量).

See Also

YShuffleG4X2(Vector128<double>, Vector128<double>, ShuffleControlG4, out Vector128<double>)

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).

public static Vector128<double> YShuffleG4X2(Vector128<double> source0, Vector128<double> source1, ShuffleControlG4 control, out Vector128<double> result1)

Parameters

source0 Vector128<double>

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

source1 Vector128<double>

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

control ShuffleControlG4

Shuffle control code (换位控制码).

result1 Vector128<double>

Returns the 1st vector after shuffle (返回换位后的第1个向量).

Returns

Vector128<double>

Returns the 0th vector after shuffle (返回换位后的第0个向量).

See Also

YShuffleG4X2(Vector128<sbyte>, Vector128<sbyte>, ShuffleControlG4, out Vector128<sbyte>)

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<sbyte> YShuffleG4X2(Vector128<sbyte> source0, Vector128<sbyte> source1, ShuffleControlG4 control, out Vector128<sbyte> result1)

Parameters

source0 Vector128<sbyte>

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

source1 Vector128<sbyte>

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

control ShuffleControlG4

Shuffle control code (换位控制码).

result1 Vector128<sbyte>

Returns the 1st vector after shuffle (返回换位后的第1个向量).

Returns

Vector128<sbyte>

Returns the 0th vector after shuffle (返回换位后的第0个向量).

See Also

YShuffleG4X2(Vector128<byte>, Vector128<byte>, ShuffleControlG4, out Vector128<byte>)

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).

public static Vector128<byte> YShuffleG4X2(Vector128<byte> source0, Vector128<byte> source1, ShuffleControlG4 control, out Vector128<byte> result1)

Parameters

source0 Vector128<byte>

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

source1 Vector128<byte>

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

control ShuffleControlG4

Shuffle control code (换位控制码).

result1 Vector128<byte>

Returns the 1st vector after shuffle (返回换位后的第1个向量).

Returns

Vector128<byte>

Returns the 0th vector after shuffle (返回换位后的第0个向量).

See Also

YShuffleG4X2(Vector128<short>, Vector128<short>, ShuffleControlG4, out Vector128<short>)

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).

public static Vector128<short> YShuffleG4X2(Vector128<short> source0, Vector128<short> source1, ShuffleControlG4 control, out Vector128<short> result1)

Parameters

source0 Vector128<short>

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

source1 Vector128<short>

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

control ShuffleControlG4

Shuffle control code (换位控制码).

result1 Vector128<short>

Returns the 1st vector after shuffle (返回换位后的第1个向量).

Returns

Vector128<short>

Returns the 0th vector after shuffle (返回换位后的第0个向量).

See Also

YShuffleG4X2(Vector128<ushort>, Vector128<ushort>, ShuffleControlG4, out Vector128<ushort>)

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<ushort> YShuffleG4X2(Vector128<ushort> source0, Vector128<ushort> source1, ShuffleControlG4 control, out Vector128<ushort> result1)

Parameters

source0 Vector128<ushort>

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

source1 Vector128<ushort>

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

control ShuffleControlG4

Shuffle control code (换位控制码).

result1 Vector128<ushort>

Returns the 1st vector after shuffle (返回换位后的第1个向量).

Returns

Vector128<ushort>

Returns the 0th vector after shuffle (返回换位后的第0个向量).

See Also

YShuffleG4X2(Vector128<int>, Vector128<int>, ShuffleControlG4, out Vector128<int>)

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).

public static Vector128<int> YShuffleG4X2(Vector128<int> source0, Vector128<int> source1, ShuffleControlG4 control, out Vector128<int> result1)

Parameters

source0 Vector128<int>

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

source1 Vector128<int>

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

control ShuffleControlG4

Shuffle control code (换位控制码).

result1 Vector128<int>

Returns the 1st vector after shuffle (返回换位后的第1个向量).

Returns

Vector128<int>

Returns the 0th vector after shuffle (返回换位后的第0个向量).

See Also

YShuffleG4X2(Vector128<uint>, Vector128<uint>, ShuffleControlG4, out Vector128<uint>)

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<uint> YShuffleG4X2(Vector128<uint> source0, Vector128<uint> source1, ShuffleControlG4 control, out Vector128<uint> result1)

Parameters

source0 Vector128<uint>

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

source1 Vector128<uint>

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

control ShuffleControlG4

Shuffle control code (换位控制码).

result1 Vector128<uint>

Returns the 1st vector after shuffle (返回换位后的第1个向量).

Returns

Vector128<uint>

Returns the 0th vector after shuffle (返回换位后的第0个向量).

See Also

YShuffleG4X2(Vector128<long>, Vector128<long>, ShuffleControlG4, out Vector128<long>)

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).

public static Vector128<long> YShuffleG4X2(Vector128<long> source0, Vector128<long> source1, ShuffleControlG4 control, out Vector128<long> result1)

Parameters

source0 Vector128<long>

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

source1 Vector128<long>

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

control ShuffleControlG4

Shuffle control code (换位控制码).

result1 Vector128<long>

Returns the 1st vector after shuffle (返回换位后的第1个向量).

Returns

Vector128<long>

Returns the 0th vector after shuffle (返回换位后的第0个向量).

See Also

YShuffleG4X2(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(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 ShuffleControlG4

Shuffle control code (换位控制码).

result1 Vector128<ulong>

Returns the 1st vector after shuffle (返回换位后的第1个向量).

Returns

Vector128<ulong>

Returns the 0th vector after shuffle (返回换位后的第0个向量).

See Also