Table of Contents

Method YShuffleG4X2_Const

Namespace
Zyl.VectorTraits.Impl
Assembly
VectorTraits.dll

YShuffleG4X2_Const<T>(IWVectorTraits512, Vector512<T>, Vector512<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 (Vector512<T> Result0, Vector512<T> Result1) YShuffleG4X2_Const<T>(this IWVectorTraits512 athis, Vector512<T> source0, Vector512<T> source1, ShuffleControlG4 control) where T : struct

Parameters

athis IWVectorTraits512
source0 Vector512<T>

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

source1 Vector512<T>

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

control ShuffleControlG4

Shuffle control code (换位控制码).

Returns

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

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

Type Parameters

T

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

See Also

YShuffleG4X2_Const(IWVectorTraits512, Vector512<float>, Vector512<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 (Vector512<float> Result0, Vector512<float> Result1) YShuffleG4X2_Const(this IWVectorTraits512 athis, Vector512<float> source0, Vector512<float> source1, ShuffleControlG4 control)

Parameters

athis IWVectorTraits512
source0 Vector512<float>

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

source1 Vector512<float>

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

control ShuffleControlG4

Shuffle control code (换位控制码).

Returns

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

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

See Also

YShuffleG4X2_Const(IWVectorTraits512, Vector512<double>, Vector512<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 (Vector512<double> Result0, Vector512<double> Result1) YShuffleG4X2_Const(this IWVectorTraits512 athis, Vector512<double> source0, Vector512<double> source1, ShuffleControlG4 control)

Parameters

athis IWVectorTraits512
source0 Vector512<double>

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

source1 Vector512<double>

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

control ShuffleControlG4

Shuffle control code (换位控制码).

Returns

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

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

See Also

YShuffleG4X2_Const(IWVectorTraits512, Vector512<sbyte>, Vector512<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 (Vector512<sbyte> Result0, Vector512<sbyte> Result1) YShuffleG4X2_Const(this IWVectorTraits512 athis, Vector512<sbyte> source0, Vector512<sbyte> source1, ShuffleControlG4 control)

Parameters

athis IWVectorTraits512
source0 Vector512<sbyte>

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

source1 Vector512<sbyte>

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

control ShuffleControlG4

Shuffle control code (换位控制码).

Returns

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

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

See Also

YShuffleG4X2_Const(IWVectorTraits512, Vector512<byte>, Vector512<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 (Vector512<byte> Result0, Vector512<byte> Result1) YShuffleG4X2_Const(this IWVectorTraits512 athis, Vector512<byte> source0, Vector512<byte> source1, ShuffleControlG4 control)

Parameters

athis IWVectorTraits512
source0 Vector512<byte>

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

source1 Vector512<byte>

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

control ShuffleControlG4

Shuffle control code (换位控制码).

Returns

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

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

See Also

YShuffleG4X2_Const(IWVectorTraits512, Vector512<short>, Vector512<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 (Vector512<short> Result0, Vector512<short> Result1) YShuffleG4X2_Const(this IWVectorTraits512 athis, Vector512<short> source0, Vector512<short> source1, ShuffleControlG4 control)

Parameters

athis IWVectorTraits512
source0 Vector512<short>

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

source1 Vector512<short>

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

control ShuffleControlG4

Shuffle control code (换位控制码).

Returns

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

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

See Also

YShuffleG4X2_Const(IWVectorTraits512, Vector512<ushort>, Vector512<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 (Vector512<ushort> Result0, Vector512<ushort> Result1) YShuffleG4X2_Const(this IWVectorTraits512 athis, Vector512<ushort> source0, Vector512<ushort> source1, ShuffleControlG4 control)

Parameters

athis IWVectorTraits512
source0 Vector512<ushort>

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

source1 Vector512<ushort>

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

control ShuffleControlG4

Shuffle control code (换位控制码).

Returns

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

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

See Also

YShuffleG4X2_Const(IWVectorTraits512, Vector512<int>, Vector512<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 (Vector512<int> Result0, Vector512<int> Result1) YShuffleG4X2_Const(this IWVectorTraits512 athis, Vector512<int> source0, Vector512<int> source1, ShuffleControlG4 control)

Parameters

athis IWVectorTraits512
source0 Vector512<int>

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

source1 Vector512<int>

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

control ShuffleControlG4

Shuffle control code (换位控制码).

Returns

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

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

See Also

YShuffleG4X2_Const(IWVectorTraits512, Vector512<uint>, Vector512<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 (Vector512<uint> Result0, Vector512<uint> Result1) YShuffleG4X2_Const(this IWVectorTraits512 athis, Vector512<uint> source0, Vector512<uint> source1, ShuffleControlG4 control)

Parameters

athis IWVectorTraits512
source0 Vector512<uint>

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

source1 Vector512<uint>

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

control ShuffleControlG4

Shuffle control code (换位控制码).

Returns

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

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

See Also

YShuffleG4X2_Const(IWVectorTraits512, Vector512<long>, Vector512<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 (Vector512<long> Result0, Vector512<long> Result1) YShuffleG4X2_Const(this IWVectorTraits512 athis, Vector512<long> source0, Vector512<long> source1, ShuffleControlG4 control)

Parameters

athis IWVectorTraits512
source0 Vector512<long>

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

source1 Vector512<long>

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

control ShuffleControlG4

Shuffle control code (换位控制码).

Returns

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

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

See Also

YShuffleG4X2_Const(IWVectorTraits512, Vector512<ulong>, Vector512<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 (Vector512<ulong> Result0, Vector512<ulong> Result1) YShuffleG4X2_Const(this IWVectorTraits512 athis, Vector512<ulong> source0, Vector512<ulong> source1, ShuffleControlG4 control)

Parameters

athis IWVectorTraits512
source0 Vector512<ulong>

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

source1 Vector512<ulong>

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

control ShuffleControlG4

Shuffle control code (换位控制码).

Returns

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

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

See Also