Table of Contents

Method YShuffleG4X2_Lookup

Namespace
Zyl.VectorTraits.Impl.AVector128
Assembly
VectorTraits.dll

YShuffleG4X2_Lookup(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_Lookup(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

YShuffleG4X2_Lookup(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_Lookup(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