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

Unified Diff: sdk/lib/typed_data/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
« no previous file with comments | « runtime/vm/bootstrap_natives.h ('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: sdk/lib/typed_data/typed_data.dart
diff --git a/sdk/lib/typed_data/typed_data.dart b/sdk/lib/typed_data/typed_data.dart
index 756b34a9a4966495cb26dad0c4c23a7e435e4ab1..739eae8bcd88a70eb53e41cc43660953643611cd 100644
--- a/sdk/lib/typed_data/typed_data.dart
+++ b/sdk/lib/typed_data/typed_data.dart
@@ -1383,6 +1383,26 @@ abstract class Float32x4 {
/// Returns a new [Float32x4] with lane values reordered.
Float32x4 get wwww;
+ /// Returns a new [Float32x4] with values in the X and Y lanes
+ /// replaced with the values in the Z and W lanes of [other].
+ Float32x4 withZWInXY(Float32x4 other);
+
+ /// Returns a new [Float32x4] with the X and Y lane values
+ /// from [this] and [other] interleaved.
+ Float32x4 interleaveXY(Float32x4 other);
+
+ /// Returns a new [Float32x4] with the Z and W lane values
+ /// from [this] and [other] interleaved.
+ Float32x4 interleaveZW(Float32x4 other);
+
+ /// Returns a new [Float32x4] with the X and Y lane value pairs
+ /// from [this] and [other] interleaved.
+ Float32x4 interleaveXYPairs(Float32x4 other);
+
+ /// Returns a new [Float32x4] with the Z and W lane value pairs
+ /// from [this] and [other] interleaved.
+ Float32x4 interleaveZWPairs(Float32x4 other);
+
/// Returns a new [Float32x4] copied from [this] with a new x value.
Float32x4 withX(double x);
/// Returns a new [Float32x4] copied from [this] with a new y value.
« no previous file with comments | « runtime/vm/bootstrap_natives.h ('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