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

Unified Diff: runtime/lib/typed_data.dart

Issue 19646005: Add two argument shuffle operations to Float32x4 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 5 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: runtime/lib/typed_data.dart
diff --git a/runtime/lib/typed_data.dart b/runtime/lib/typed_data.dart
index 15a8debb21b315087e2fbac1073d58a5826c3871..a9ff9360f30ee48e36fb15d1469b7bd1adecc327 100644
--- a/runtime/lib/typed_data.dart
+++ b/runtime/lib/typed_data.dart
@@ -2263,6 +2263,15 @@ class _Float32x4 implements Float32x4 {
Float32x4 get wwwz => _shuffle(0xBF);
Float32x4 get wwww => _shuffle(0xFF);
Float32x4 _shuffle(int mask) native "Float32x4_shuffle";
+
+ Float32x4 withZWInXY(Float32x4 other) native "Float32x4_withZwInXy";
+ Float32x4 interleaveXY(Float32x4 other) native "Float32x4_interleaveXy";
+ Float32x4 interleaveZW(Float32x4 other) native "Float32x4_interleaveZw";
+ Float32x4 interleaveXYPairs(Float32x4 other)
+ native "Float32x4_interleaveXyPairs";
+ Float32x4 interleaveZWPairs(Float32x4 other)
+ native "Float32x4_interleaveZwPairs";
+
Float32x4 withX(double x) native "Float32x4_setX";
Float32x4 withY(double y) native "Float32x4_setY";
Float32x4 withZ(double z) native "Float32x4_setZ";

Powered by Google App Engine
This is Rietveld 408576698