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

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

Issue 23134002: Replace shuffle getters with shuffle method and masks. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 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
Index: tests/lib/typed_data/float32x4_cross_test.dart
diff --git a/tests/lib/typed_data/float32x4_cross_test.dart b/tests/lib/typed_data/float32x4_cross_test.dart
index 0816846ce062e9324d8826eae796c949726ba54a..321a4ac24fa7ebbe089d3e5003ea51f7b7ed2d18 100644
--- a/tests/lib/typed_data/float32x4_cross_test.dart
+++ b/tests/lib/typed_data/float32x4_cross_test.dart
@@ -10,11 +10,11 @@ import 'dart:typed_data';
import 'package:expect/expect.dart';
Float32x4 cross(Float32x4 a, Float32x4 b) {
- var t0 = a.yzxw;
- var t1 = b.zxyw;
+ var t0 = a.shuffle(Float32x4.yzxw);
+ var t1 = b.shuffle(Float32x4.zxyw);
var l = t0 * t1;
- t0 = a.zxyw;
- t1 = b.yzxw;
+ t0 = a.shuffle(Float32x4.zxyw);
+ t1 = b.shuffle(Float32x4.yzxw);
var r = t0 * t1;
return l-r;
}

Powered by Google App Engine
This is Rietveld 408576698