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

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
« no previous file with comments | « sdk/lib/typed_data/typed_data.dart ('k') | tests/lib/typed_data/float32x4_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_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..32684883a55af45e5c94f93a1e08d4567a033e7e 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;
}
« no previous file with comments | « sdk/lib/typed_data/typed_data.dart ('k') | tests/lib/typed_data/float32x4_shuffle_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698