Method YGroup2Zip_Bit128
- Namespace
- Zyl.VectorTraits.Impl
- Assembly
- VectorTraits.dll
YGroup2Zip_Bit128<T>(Vector128<T>, Vector128<T>, out Vector128<T>)
Interleave 2 vectors into 2-element groups. It converts the 2-element groups SoA to AoS (将2个向量交织为2-元素组. 它能将2元素组的 结构体数组 转为 数组结构体). It is specialized for process 128-bit element (它专门用于处理128位元素).
Mnemonic: element_ref(i, data0, data1) := (0==(i&1))?( x[i2] ):( y[i2] )
, i2 := i/2
.
Vector128<T> YGroup2Zip_Bit128<T>(Vector128<T> x, Vector128<T> y, out Vector128<T> data1) where T : struct
Parameters
x
Vector128<T>A vector consisting purely of X-components (纯由X分量所组成的向量).
y
Vector128<T>A vector consisting purely of Y-components (纯由Y分量所组成的向量).
data1
Vector128<T>Returns part 1 of the interleaved data (返回交织后数据的第1部分).
Returns
- Vector128<T>
Returns part 0 of the interleaved data (返回交织后数据的第0部分).
Type Parameters
T
The element type of the input parameter (输入参数的元素类型).
- See Also