Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(107)

Unified Diff: tests/lib/typed_data/float32x4_transpose_test.dart

Issue 51373004: SIMD shuffle API changes (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/co19/co19-runtime.status ('k') | tests/lib/typed_data/float32x4_two_arg_shuffle_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/lib/typed_data/float32x4_transpose_test.dart
diff --git a/tests/lib/typed_data/float32x4_transpose_test.dart b/tests/lib/typed_data/float32x4_transpose_test.dart
index f408d742a55b439929b044b70cdc3297bc8c0294..ecb39fbc72b82f2fb82e2475b234f33092ed06da 100644
--- a/tests/lib/typed_data/float32x4_transpose_test.dart
+++ b/tests/lib/typed_data/float32x4_transpose_test.dart
@@ -15,14 +15,16 @@ void transpose(Float32x4List m) {
var m1 = m[1];
var m2 = m[2];
var m3 = m[3];
- var t0 = m0.interleaveXY(m1);
- var t1 = m2.interleaveXY(m3);
- var t2 = m0.interleaveZW(m1);
- var t3 = m2.interleaveZW(m3);
- m[0] = t0.interleaveXYPairs(t1);
- m[1] = t0.interleaveZWPairs(t1);
- m[2] = t2.interleaveXYPairs(t3);
- m[3] = t2.interleaveZWPairs(t3);
+
+ var t0 = m0.shuffleMix(m1, Float32x4.XYXY);
+ var t1 = m2.shuffleMix(m3, Float32x4.XYXY);
+ m[0] = t0.shuffleMix(t1, Float32x4.XZXZ);
+ m[1] = t0.shuffleMix(t1, Float32x4.YWYW);
+
+ var t2 = m0.shuffleMix(m1, Float32x4.ZWZW);
+ var t3 = m2.shuffleMix(m3, Float32x4.ZWZW);
+ m[2] = t2.shuffleMix(t3, Float32x4.XZXZ);
+ m[3] = t2.shuffleMix(t3, Float32x4.YWYW);
}
void testTranspose(Float32x4List m, Float32x4List r) {
« no previous file with comments | « tests/co19/co19-runtime.status ('k') | tests/lib/typed_data/float32x4_two_arg_shuffle_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698