Change-Id: If20dc09aa9d84d5b87f16a510e6e8d7fb06114b8
Reviewed-on: https://go-review.googlesource.com/c/go/+/719963
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Austin Clements <austin@google.com>
package simd
-// FlattenedTranspose tranposes x and y, regarded as a pair of 2x2
-// matrices, but then flattens the rows in order, i.e
-// x: ABCD ==> a: A1B2
-// y: 1234 b: C3D4
-func (x Int32x4) FlattenedTranspose(y Int32x4) (a, b Int32x4) {
- return x.InterleaveLo(y), x.InterleaveHi(y)
-}
-
// These constants represent the source pattern for the four parameters
// (a, b, c, d) passed to SelectFromPair and SelectFromPairGrouped.
// L means the element comes from the 'x' vector (Low), and