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

Unified Diff: runtime/lib/typed_data.dart

Issue 23018009: Add add and subtract operations to Uint32x4 (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: runtime/lib/typed_data.dart
diff --git a/runtime/lib/typed_data.dart b/runtime/lib/typed_data.dart
index 4e76c27b32044a32bae6b12cd34bdaf873a71cea..c4e9259dc0521c5e3244bb8ba580b6f5fee8a66c 100644
--- a/runtime/lib/typed_data.dart
+++ b/runtime/lib/typed_data.dart
@@ -2081,6 +2081,14 @@ class _Uint32x4 implements Uint32x4 {
return _xor(other);
}
Uint32x4 _xor(Uint32x4 other) native "Uint32x4_xor";
+ Uint32x4 operator +(Uint32x4 other) {
srdjan 2013/08/19 21:45:23 Why go via a helper method instead of making it na
Cutch 2013/08/19 21:58:25 Legacy. Will follow up with a cleanup CL.
+ return _add(other);
+ }
+ Uint32x4 _add(Uint32x4 other) native "Uint32x4_add";
+ Uint32x4 operator -(Uint32x4 other) {
+ return _sub(other);
+ }
+ Uint32x4 _sub(Uint32x4 other) native "Uint32x4_sub";
int get x native "Uint32x4_getX";
int get y native "Uint32x4_getY";
int get z native "Uint32x4_getZ";

Powered by Google App Engine
This is Rietveld 408576698