Table of Contents

Method YShuffleG4X2_Const

Namespace
Zyl.VectorTraits.Impl
Assembly
VectorTraits.dll

YShuffleG4X2_Const<T>(IVectorTraits, Vector<T>, Vector<T>, ShuffleControlG4)

For each 4-element groups in two vector, shuffle is performed - Constant version (对于两个向量中的每个 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 (因它含有分支语句, 性能较差, 仅适用于单元测试. 一般情况下, 建议使用非泛型版方法).")]
[CLSCompliant(false)]
public static (Vector<T> Result0, Vector<T> Result1) YShuffleG4X2_Const<T>(this IVectorTraits athis, Vector<T> source0, Vector<T> source1, ShuffleControlG4 control) where T : struct

Parameters

athis IVectorTraits
source0 Vector<T>

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

source1 Vector<T>

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

control ShuffleControlG4

Shuffle control code (换位控制码).

Returns

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

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

Type Parameters

T

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

See Also

YShuffleG4X2_Const(IVectorTraits, Vector<float>, Vector<float>, ShuffleControlG4)

For each 4-element groups in two vector, shuffle is performed - Constant version (对于两个向量中的每个 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 (Vector<float> Result0, Vector<float> Result1) YShuffleG4X2_Const(this IVectorTraits athis, Vector<float> source0, Vector<float> source1, ShuffleControlG4 control)

Parameters

athis IVectorTraits
source0 Vector<float>

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

source1 Vector<float>

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

control ShuffleControlG4

Shuffle control code (换位控制码).

Returns

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

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

See Also

YShuffleG4X2_Const(IVectorTraits, Vector<double>, Vector<double>, ShuffleControlG4)

For each 4-element groups in two vector, shuffle is performed - Constant version (对于两个向量中的每个 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 (Vector<double> Result0, Vector<double> Result1) YShuffleG4X2_Const(this IVectorTraits athis, Vector<double> source0, Vector<double> source1, ShuffleControlG4 control)

Parameters

athis IVectorTraits
source0 Vector<double>

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

source1 Vector<double>

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

control ShuffleControlG4

Shuffle control code (换位控制码).

Returns

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

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

See Also

YShuffleG4X2_Const(IVectorTraits, Vector<sbyte>, Vector<sbyte>, ShuffleControlG4)

For each 4-element groups in two vector, shuffle is performed - Constant version (对于两个向量中的每个 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 (Vector<sbyte> Result0, Vector<sbyte> Result1) YShuffleG4X2_Const(this IVectorTraits athis, Vector<sbyte> source0, Vector<sbyte> source1, ShuffleControlG4 control)

Parameters

athis IVectorTraits
source0 Vector<sbyte>

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

source1 Vector<sbyte>

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

control ShuffleControlG4

Shuffle control code (换位控制码).

Returns

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

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

See Also

YShuffleG4X2_Const(IVectorTraits, Vector<byte>, Vector<byte>, ShuffleControlG4)

For each 4-element groups in two vector, shuffle is performed - Constant version (对于两个向量中的每个 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 (Vector<byte> Result0, Vector<byte> Result1) YShuffleG4X2_Const(this IVectorTraits athis, Vector<byte> source0, Vector<byte> source1, ShuffleControlG4 control)

Parameters

athis IVectorTraits
source0 Vector<byte>

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

source1 Vector<byte>

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

control ShuffleControlG4

Shuffle control code (换位控制码).

Returns

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

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

See Also

YShuffleG4X2_Const(IVectorTraits, Vector<short>, Vector<short>, ShuffleControlG4)

For each 4-element groups in two vector, shuffle is performed - Constant version (对于两个向量中的每个 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 (Vector<short> Result0, Vector<short> Result1) YShuffleG4X2_Const(this IVectorTraits athis, Vector<short> source0, Vector<short> source1, ShuffleControlG4 control)

Parameters

athis IVectorTraits
source0 Vector<short>

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

source1 Vector<short>

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

control ShuffleControlG4

Shuffle control code (换位控制码).

Returns

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

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

See Also

YShuffleG4X2_Const(IVectorTraits, Vector<ushort>, Vector<ushort>, ShuffleControlG4)

For each 4-element groups in two vector, shuffle is performed - Constant version (对于两个向量中的每个 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 (Vector<ushort> Result0, Vector<ushort> Result1) YShuffleG4X2_Const(this IVectorTraits athis, Vector<ushort> source0, Vector<ushort> source1, ShuffleControlG4 control)

Parameters

athis IVectorTraits
source0 Vector<ushort>

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

source1 Vector<ushort>

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

control ShuffleControlG4

Shuffle control code (换位控制码).

Returns

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

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

See Also

YShuffleG4X2_Const(IVectorTraits, Vector<int>, Vector<int>, ShuffleControlG4)

For each 4-element groups in two vector, shuffle is performed - Constant version (对于两个向量中的每个 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 (Vector<int> Result0, Vector<int> Result1) YShuffleG4X2_Const(this IVectorTraits athis, Vector<int> source0, Vector<int> source1, ShuffleControlG4 control)

Parameters

athis IVectorTraits
source0 Vector<int>

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

source1 Vector<int>

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

control ShuffleControlG4

Shuffle control code (换位控制码).

Returns

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

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

See Also

YShuffleG4X2_Const(IVectorTraits, Vector<uint>, Vector<uint>, ShuffleControlG4)

For each 4-element groups in two vector, shuffle is performed - Constant version (对于两个向量中的每个 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 (Vector<uint> Result0, Vector<uint> Result1) YShuffleG4X2_Const(this IVectorTraits athis, Vector<uint> source0, Vector<uint> source1, ShuffleControlG4 control)

Parameters

athis IVectorTraits
source0 Vector<uint>

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

source1 Vector<uint>

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

control ShuffleControlG4

Shuffle control code (换位控制码).

Returns

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

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

See Also

YShuffleG4X2_Const(IVectorTraits, Vector<long>, Vector<long>, ShuffleControlG4)

For each 4-element groups in two vector, shuffle is performed - Constant version (对于两个向量中的每个 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 (Vector<long> Result0, Vector<long> Result1) YShuffleG4X2_Const(this IVectorTraits athis, Vector<long> source0, Vector<long> source1, ShuffleControlG4 control)

Parameters

athis IVectorTraits
source0 Vector<long>

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

source1 Vector<long>

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

control ShuffleControlG4

Shuffle control code (换位控制码).

Returns

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

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

See Also

YShuffleG4X2_Const(IVectorTraits, Vector<ulong>, Vector<ulong>, ShuffleControlG4)

For each 4-element groups in two vector, shuffle is performed - Constant version (对于两个向量中的每个 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 (Vector<ulong> Result0, Vector<ulong> Result1) YShuffleG4X2_Const(this IVectorTraits athis, Vector<ulong> source0, Vector<ulong> source1, ShuffleControlG4 control)

Parameters

athis IVectorTraits
source0 Vector<ulong>

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

source1 Vector<ulong>

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

control ShuffleControlG4

Shuffle control code (换位控制码).

Returns

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

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

See Also