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

Unified Diff: sdk/lib/typed_data/dart2js/typed_data_dart2js.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 | « runtime/vm/intermediate_language.h ('k') | sdk/lib/typed_data/typed_data.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/typed_data/dart2js/typed_data_dart2js.dart
diff --git a/sdk/lib/typed_data/dart2js/typed_data_dart2js.dart b/sdk/lib/typed_data/dart2js/typed_data_dart2js.dart
index f4da465794ffd879bb1e952c94376fa9c0cc8384..a145ff2eac91a63c9a75cfcc68be798464d1f65b 100644
--- a/sdk/lib/typed_data/dart2js/typed_data_dart2js.dart
+++ b/sdk/lib/typed_data/dart2js/typed_data_dart2js.dart
@@ -934,264 +934,270 @@ class Float32x4 {
/// Extracted w value.
double get w => _storage[3];
- Float32x4 get xxxx => _shuffle(0x0);
- Float32x4 get xxxy => _shuffle(0x40);
- Float32x4 get xxxz => _shuffle(0x80);
- Float32x4 get xxxw => _shuffle(0xC0);
- Float32x4 get xxyx => _shuffle(0x10);
- Float32x4 get xxyy => _shuffle(0x50);
- Float32x4 get xxyz => _shuffle(0x90);
- Float32x4 get xxyw => _shuffle(0xD0);
- Float32x4 get xxzx => _shuffle(0x20);
- Float32x4 get xxzy => _shuffle(0x60);
- Float32x4 get xxzz => _shuffle(0xA0);
- Float32x4 get xxzw => _shuffle(0xE0);
- Float32x4 get xxwx => _shuffle(0x30);
- Float32x4 get xxwy => _shuffle(0x70);
- Float32x4 get xxwz => _shuffle(0xB0);
- Float32x4 get xxww => _shuffle(0xF0);
- Float32x4 get xyxx => _shuffle(0x4);
- Float32x4 get xyxy => _shuffle(0x44);
- Float32x4 get xyxz => _shuffle(0x84);
- Float32x4 get xyxw => _shuffle(0xC4);
- Float32x4 get xyyx => _shuffle(0x14);
- Float32x4 get xyyy => _shuffle(0x54);
- Float32x4 get xyyz => _shuffle(0x94);
- Float32x4 get xyyw => _shuffle(0xD4);
- Float32x4 get xyzx => _shuffle(0x24);
- Float32x4 get xyzy => _shuffle(0x64);
- Float32x4 get xyzz => _shuffle(0xA4);
- Float32x4 get xyzw => _shuffle(0xE4);
- Float32x4 get xywx => _shuffle(0x34);
- Float32x4 get xywy => _shuffle(0x74);
- Float32x4 get xywz => _shuffle(0xB4);
- Float32x4 get xyww => _shuffle(0xF4);
- Float32x4 get xzxx => _shuffle(0x8);
- Float32x4 get xzxy => _shuffle(0x48);
- Float32x4 get xzxz => _shuffle(0x88);
- Float32x4 get xzxw => _shuffle(0xC8);
- Float32x4 get xzyx => _shuffle(0x18);
- Float32x4 get xzyy => _shuffle(0x58);
- Float32x4 get xzyz => _shuffle(0x98);
- Float32x4 get xzyw => _shuffle(0xD8);
- Float32x4 get xzzx => _shuffle(0x28);
- Float32x4 get xzzy => _shuffle(0x68);
- Float32x4 get xzzz => _shuffle(0xA8);
- Float32x4 get xzzw => _shuffle(0xE8);
- Float32x4 get xzwx => _shuffle(0x38);
- Float32x4 get xzwy => _shuffle(0x78);
- Float32x4 get xzwz => _shuffle(0xB8);
- Float32x4 get xzww => _shuffle(0xF8);
- Float32x4 get xwxx => _shuffle(0xC);
- Float32x4 get xwxy => _shuffle(0x4C);
- Float32x4 get xwxz => _shuffle(0x8C);
- Float32x4 get xwxw => _shuffle(0xCC);
- Float32x4 get xwyx => _shuffle(0x1C);
- Float32x4 get xwyy => _shuffle(0x5C);
- Float32x4 get xwyz => _shuffle(0x9C);
- Float32x4 get xwyw => _shuffle(0xDC);
- Float32x4 get xwzx => _shuffle(0x2C);
- Float32x4 get xwzy => _shuffle(0x6C);
- Float32x4 get xwzz => _shuffle(0xAC);
- Float32x4 get xwzw => _shuffle(0xEC);
- Float32x4 get xwwx => _shuffle(0x3C);
- Float32x4 get xwwy => _shuffle(0x7C);
- Float32x4 get xwwz => _shuffle(0xBC);
- Float32x4 get xwww => _shuffle(0xFC);
- Float32x4 get yxxx => _shuffle(0x1);
- Float32x4 get yxxy => _shuffle(0x41);
- Float32x4 get yxxz => _shuffle(0x81);
- Float32x4 get yxxw => _shuffle(0xC1);
- Float32x4 get yxyx => _shuffle(0x11);
- Float32x4 get yxyy => _shuffle(0x51);
- Float32x4 get yxyz => _shuffle(0x91);
- Float32x4 get yxyw => _shuffle(0xD1);
- Float32x4 get yxzx => _shuffle(0x21);
- Float32x4 get yxzy => _shuffle(0x61);
- Float32x4 get yxzz => _shuffle(0xA1);
- Float32x4 get yxzw => _shuffle(0xE1);
- Float32x4 get yxwx => _shuffle(0x31);
- Float32x4 get yxwy => _shuffle(0x71);
- Float32x4 get yxwz => _shuffle(0xB1);
- Float32x4 get yxww => _shuffle(0xF1);
- Float32x4 get yyxx => _shuffle(0x5);
- Float32x4 get yyxy => _shuffle(0x45);
- Float32x4 get yyxz => _shuffle(0x85);
- Float32x4 get yyxw => _shuffle(0xC5);
- Float32x4 get yyyx => _shuffle(0x15);
- Float32x4 get yyyy => _shuffle(0x55);
- Float32x4 get yyyz => _shuffle(0x95);
- Float32x4 get yyyw => _shuffle(0xD5);
- Float32x4 get yyzx => _shuffle(0x25);
- Float32x4 get yyzy => _shuffle(0x65);
- Float32x4 get yyzz => _shuffle(0xA5);
- Float32x4 get yyzw => _shuffle(0xE5);
- Float32x4 get yywx => _shuffle(0x35);
- Float32x4 get yywy => _shuffle(0x75);
- Float32x4 get yywz => _shuffle(0xB5);
- Float32x4 get yyww => _shuffle(0xF5);
- Float32x4 get yzxx => _shuffle(0x9);
- Float32x4 get yzxy => _shuffle(0x49);
- Float32x4 get yzxz => _shuffle(0x89);
- Float32x4 get yzxw => _shuffle(0xC9);
- Float32x4 get yzyx => _shuffle(0x19);
- Float32x4 get yzyy => _shuffle(0x59);
- Float32x4 get yzyz => _shuffle(0x99);
- Float32x4 get yzyw => _shuffle(0xD9);
- Float32x4 get yzzx => _shuffle(0x29);
- Float32x4 get yzzy => _shuffle(0x69);
- Float32x4 get yzzz => _shuffle(0xA9);
- Float32x4 get yzzw => _shuffle(0xE9);
- Float32x4 get yzwx => _shuffle(0x39);
- Float32x4 get yzwy => _shuffle(0x79);
- Float32x4 get yzwz => _shuffle(0xB9);
- Float32x4 get yzww => _shuffle(0xF9);
- Float32x4 get ywxx => _shuffle(0xD);
- Float32x4 get ywxy => _shuffle(0x4D);
- Float32x4 get ywxz => _shuffle(0x8D);
- Float32x4 get ywxw => _shuffle(0xCD);
- Float32x4 get ywyx => _shuffle(0x1D);
- Float32x4 get ywyy => _shuffle(0x5D);
- Float32x4 get ywyz => _shuffle(0x9D);
- Float32x4 get ywyw => _shuffle(0xDD);
- Float32x4 get ywzx => _shuffle(0x2D);
- Float32x4 get ywzy => _shuffle(0x6D);
- Float32x4 get ywzz => _shuffle(0xAD);
- Float32x4 get ywzw => _shuffle(0xED);
- Float32x4 get ywwx => _shuffle(0x3D);
- Float32x4 get ywwy => _shuffle(0x7D);
- Float32x4 get ywwz => _shuffle(0xBD);
- Float32x4 get ywww => _shuffle(0xFD);
- Float32x4 get zxxx => _shuffle(0x2);
- Float32x4 get zxxy => _shuffle(0x42);
- Float32x4 get zxxz => _shuffle(0x82);
- Float32x4 get zxxw => _shuffle(0xC2);
- Float32x4 get zxyx => _shuffle(0x12);
- Float32x4 get zxyy => _shuffle(0x52);
- Float32x4 get zxyz => _shuffle(0x92);
- Float32x4 get zxyw => _shuffle(0xD2);
- Float32x4 get zxzx => _shuffle(0x22);
- Float32x4 get zxzy => _shuffle(0x62);
- Float32x4 get zxzz => _shuffle(0xA2);
- Float32x4 get zxzw => _shuffle(0xE2);
- Float32x4 get zxwx => _shuffle(0x32);
- Float32x4 get zxwy => _shuffle(0x72);
- Float32x4 get zxwz => _shuffle(0xB2);
- Float32x4 get zxww => _shuffle(0xF2);
- Float32x4 get zyxx => _shuffle(0x6);
- Float32x4 get zyxy => _shuffle(0x46);
- Float32x4 get zyxz => _shuffle(0x86);
- Float32x4 get zyxw => _shuffle(0xC6);
- Float32x4 get zyyx => _shuffle(0x16);
- Float32x4 get zyyy => _shuffle(0x56);
- Float32x4 get zyyz => _shuffle(0x96);
- Float32x4 get zyyw => _shuffle(0xD6);
- Float32x4 get zyzx => _shuffle(0x26);
- Float32x4 get zyzy => _shuffle(0x66);
- Float32x4 get zyzz => _shuffle(0xA6);
- Float32x4 get zyzw => _shuffle(0xE6);
- Float32x4 get zywx => _shuffle(0x36);
- Float32x4 get zywy => _shuffle(0x76);
- Float32x4 get zywz => _shuffle(0xB6);
- Float32x4 get zyww => _shuffle(0xF6);
- Float32x4 get zzxx => _shuffle(0xA);
- Float32x4 get zzxy => _shuffle(0x4A);
- Float32x4 get zzxz => _shuffle(0x8A);
- Float32x4 get zzxw => _shuffle(0xCA);
- Float32x4 get zzyx => _shuffle(0x1A);
- Float32x4 get zzyy => _shuffle(0x5A);
- Float32x4 get zzyz => _shuffle(0x9A);
- Float32x4 get zzyw => _shuffle(0xDA);
- Float32x4 get zzzx => _shuffle(0x2A);
- Float32x4 get zzzy => _shuffle(0x6A);
- Float32x4 get zzzz => _shuffle(0xAA);
- Float32x4 get zzzw => _shuffle(0xEA);
- Float32x4 get zzwx => _shuffle(0x3A);
- Float32x4 get zzwy => _shuffle(0x7A);
- Float32x4 get zzwz => _shuffle(0xBA);
- Float32x4 get zzww => _shuffle(0xFA);
- Float32x4 get zwxx => _shuffle(0xE);
- Float32x4 get zwxy => _shuffle(0x4E);
- Float32x4 get zwxz => _shuffle(0x8E);
- Float32x4 get zwxw => _shuffle(0xCE);
- Float32x4 get zwyx => _shuffle(0x1E);
- Float32x4 get zwyy => _shuffle(0x5E);
- Float32x4 get zwyz => _shuffle(0x9E);
- Float32x4 get zwyw => _shuffle(0xDE);
- Float32x4 get zwzx => _shuffle(0x2E);
- Float32x4 get zwzy => _shuffle(0x6E);
- Float32x4 get zwzz => _shuffle(0xAE);
- Float32x4 get zwzw => _shuffle(0xEE);
- Float32x4 get zwwx => _shuffle(0x3E);
- Float32x4 get zwwy => _shuffle(0x7E);
- Float32x4 get zwwz => _shuffle(0xBE);
- Float32x4 get zwww => _shuffle(0xFE);
- Float32x4 get wxxx => _shuffle(0x3);
- Float32x4 get wxxy => _shuffle(0x43);
- Float32x4 get wxxz => _shuffle(0x83);
- Float32x4 get wxxw => _shuffle(0xC3);
- Float32x4 get wxyx => _shuffle(0x13);
- Float32x4 get wxyy => _shuffle(0x53);
- Float32x4 get wxyz => _shuffle(0x93);
- Float32x4 get wxyw => _shuffle(0xD3);
- Float32x4 get wxzx => _shuffle(0x23);
- Float32x4 get wxzy => _shuffle(0x63);
- Float32x4 get wxzz => _shuffle(0xA3);
- Float32x4 get wxzw => _shuffle(0xE3);
- Float32x4 get wxwx => _shuffle(0x33);
- Float32x4 get wxwy => _shuffle(0x73);
- Float32x4 get wxwz => _shuffle(0xB3);
- Float32x4 get wxww => _shuffle(0xF3);
- Float32x4 get wyxx => _shuffle(0x7);
- Float32x4 get wyxy => _shuffle(0x47);
- Float32x4 get wyxz => _shuffle(0x87);
- Float32x4 get wyxw => _shuffle(0xC7);
- Float32x4 get wyyx => _shuffle(0x17);
- Float32x4 get wyyy => _shuffle(0x57);
- Float32x4 get wyyz => _shuffle(0x97);
- Float32x4 get wyyw => _shuffle(0xD7);
- Float32x4 get wyzx => _shuffle(0x27);
- Float32x4 get wyzy => _shuffle(0x67);
- Float32x4 get wyzz => _shuffle(0xA7);
- Float32x4 get wyzw => _shuffle(0xE7);
- Float32x4 get wywx => _shuffle(0x37);
- Float32x4 get wywy => _shuffle(0x77);
- Float32x4 get wywz => _shuffle(0xB7);
- Float32x4 get wyww => _shuffle(0xF7);
- Float32x4 get wzxx => _shuffle(0xB);
- Float32x4 get wzxy => _shuffle(0x4B);
- Float32x4 get wzxz => _shuffle(0x8B);
- Float32x4 get wzxw => _shuffle(0xCB);
- Float32x4 get wzyx => _shuffle(0x1B);
- Float32x4 get wzyy => _shuffle(0x5B);
- Float32x4 get wzyz => _shuffle(0x9B);
- Float32x4 get wzyw => _shuffle(0xDB);
- Float32x4 get wzzx => _shuffle(0x2B);
- Float32x4 get wzzy => _shuffle(0x6B);
- Float32x4 get wzzz => _shuffle(0xAB);
- Float32x4 get wzzw => _shuffle(0xEB);
- Float32x4 get wzwx => _shuffle(0x3B);
- Float32x4 get wzwy => _shuffle(0x7B);
- Float32x4 get wzwz => _shuffle(0xBB);
- Float32x4 get wzww => _shuffle(0xFB);
- Float32x4 get wwxx => _shuffle(0xF);
- Float32x4 get wwxy => _shuffle(0x4F);
- Float32x4 get wwxz => _shuffle(0x8F);
- Float32x4 get wwxw => _shuffle(0xCF);
- Float32x4 get wwyx => _shuffle(0x1F);
- Float32x4 get wwyy => _shuffle(0x5F);
- Float32x4 get wwyz => _shuffle(0x9F);
- Float32x4 get wwyw => _shuffle(0xDF);
- Float32x4 get wwzx => _shuffle(0x2F);
- Float32x4 get wwzy => _shuffle(0x6F);
- Float32x4 get wwzz => _shuffle(0xAF);
- Float32x4 get wwzw => _shuffle(0xEF);
- Float32x4 get wwwx => _shuffle(0x3F);
- Float32x4 get wwwy => _shuffle(0x7F);
- Float32x4 get wwwz => _shuffle(0xBF);
- Float32x4 get wwww => _shuffle(0xFF);
-
- Float32x4 _shuffle(int m) {
+ /// Mask passed to [shuffle].
+ static const int XXXX = 0x0;
+ static const int XXXY = 0x40;
+ static const int XXXZ = 0x80;
+ static const int XXXW = 0xC0;
+ static const int XXYX = 0x10;
+ static const int XXYY = 0x50;
+ static const int XXYZ = 0x90;
+ static const int XXYW = 0xD0;
+ static const int XXZX = 0x20;
+ static const int XXZY = 0x60;
+ static const int XXZZ = 0xA0;
+ static const int XXZW = 0xE0;
+ static const int XXWX = 0x30;
+ static const int XXWY = 0x70;
+ static const int XXWZ = 0xB0;
+ static const int XXWW = 0xF0;
+ static const int XYXX = 0x4;
+ static const int XYXY = 0x44;
+ static const int XYXZ = 0x84;
+ static const int XYXW = 0xC4;
+ static const int XYYX = 0x14;
+ static const int XYYY = 0x54;
+ static const int XYYZ = 0x94;
+ static const int XYYW = 0xD4;
+ static const int XYZX = 0x24;
+ static const int XYZY = 0x64;
+ static const int XYZZ = 0xA4;
+ static const int XYZW = 0xE4;
+ static const int XYWX = 0x34;
+ static const int XYWY = 0x74;
+ static const int XYWZ = 0xB4;
+ static const int XYWW = 0xF4;
+ static const int XZXX = 0x8;
+ static const int XZXY = 0x48;
+ static const int XZXZ = 0x88;
+ static const int XZXW = 0xC8;
+ static const int XZYX = 0x18;
+ static const int XZYY = 0x58;
+ static const int XZYZ = 0x98;
+ static const int XZYW = 0xD8;
+ static const int XZZX = 0x28;
+ static const int XZZY = 0x68;
+ static const int XZZZ = 0xA8;
+ static const int XZZW = 0xE8;
+ static const int XZWX = 0x38;
+ static const int XZWY = 0x78;
+ static const int XZWZ = 0xB8;
+ static const int XZWW = 0xF8;
+ static const int XWXX = 0xC;
+ static const int XWXY = 0x4C;
+ static const int XWXZ = 0x8C;
+ static const int XWXW = 0xCC;
+ static const int XWYX = 0x1C;
+ static const int XWYY = 0x5C;
+ static const int XWYZ = 0x9C;
+ static const int XWYW = 0xDC;
+ static const int XWZX = 0x2C;
+ static const int XWZY = 0x6C;
+ static const int XWZZ = 0xAC;
+ static const int XWZW = 0xEC;
+ static const int XWWX = 0x3C;
+ static const int XWWY = 0x7C;
+ static const int XWWZ = 0xBC;
+ static const int XWWW = 0xFC;
+ static const int YXXX = 0x1;
+ static const int YXXY = 0x41;
+ static const int YXXZ = 0x81;
+ static const int YXXW = 0xC1;
+ static const int YXYX = 0x11;
+ static const int YXYY = 0x51;
+ static const int YXYZ = 0x91;
+ static const int YXYW = 0xD1;
+ static const int YXZX = 0x21;
+ static const int YXZY = 0x61;
+ static const int YXZZ = 0xA1;
+ static const int YXZW = 0xE1;
+ static const int YXWX = 0x31;
+ static const int YXWY = 0x71;
+ static const int YXWZ = 0xB1;
+ static const int YXWW = 0xF1;
+ static const int YYXX = 0x5;
+ static const int YYXY = 0x45;
+ static const int YYXZ = 0x85;
+ static const int YYXW = 0xC5;
+ static const int YYYX = 0x15;
+ static const int YYYY = 0x55;
+ static const int YYYZ = 0x95;
+ static const int YYYW = 0xD5;
+ static const int YYZX = 0x25;
+ static const int YYZY = 0x65;
+ static const int YYZZ = 0xA5;
+ static const int YYZW = 0xE5;
+ static const int YYWX = 0x35;
+ static const int YYWY = 0x75;
+ static const int YYWZ = 0xB5;
+ static const int YYWW = 0xF5;
+ static const int YZXX = 0x9;
+ static const int YZXY = 0x49;
+ static const int YZXZ = 0x89;
+ static const int YZXW = 0xC9;
+ static const int YZYX = 0x19;
+ static const int YZYY = 0x59;
+ static const int YZYZ = 0x99;
+ static const int YZYW = 0xD9;
+ static const int YZZX = 0x29;
+ static const int YZZY = 0x69;
+ static const int YZZZ = 0xA9;
+ static const int YZZW = 0xE9;
+ static const int YZWX = 0x39;
+ static const int YZWY = 0x79;
+ static const int YZWZ = 0xB9;
+ static const int YZWW = 0xF9;
+ static const int YWXX = 0xD;
+ static const int YWXY = 0x4D;
+ static const int YWXZ = 0x8D;
+ static const int YWXW = 0xCD;
+ static const int YWYX = 0x1D;
+ static const int YWYY = 0x5D;
+ static const int YWYZ = 0x9D;
+ static const int YWYW = 0xDD;
+ static const int YWZX = 0x2D;
+ static const int YWZY = 0x6D;
+ static const int YWZZ = 0xAD;
+ static const int YWZW = 0xED;
+ static const int YWWX = 0x3D;
+ static const int YWWY = 0x7D;
+ static const int YWWZ = 0xBD;
+ static const int YWWW = 0xFD;
+ static const int ZXXX = 0x2;
+ static const int ZXXY = 0x42;
+ static const int ZXXZ = 0x82;
+ static const int ZXXW = 0xC2;
+ static const int ZXYX = 0x12;
+ static const int ZXYY = 0x52;
+ static const int ZXYZ = 0x92;
+ static const int ZXYW = 0xD2;
+ static const int ZXZX = 0x22;
+ static const int ZXZY = 0x62;
+ static const int ZXZZ = 0xA2;
+ static const int ZXZW = 0xE2;
+ static const int ZXWX = 0x32;
+ static const int ZXWY = 0x72;
+ static const int ZXWZ = 0xB2;
+ static const int ZXWW = 0xF2;
+ static const int ZYXX = 0x6;
+ static const int ZYXY = 0x46;
+ static const int ZYXZ = 0x86;
+ static const int ZYXW = 0xC6;
+ static const int ZYYX = 0x16;
+ static const int ZYYY = 0x56;
+ static const int ZYYZ = 0x96;
+ static const int ZYYW = 0xD6;
+ static const int ZYZX = 0x26;
+ static const int ZYZY = 0x66;
+ static const int ZYZZ = 0xA6;
+ static const int ZYZW = 0xE6;
+ static const int ZYWX = 0x36;
+ static const int ZYWY = 0x76;
+ static const int ZYWZ = 0xB6;
+ static const int ZYWW = 0xF6;
+ static const int ZZXX = 0xA;
+ static const int ZZXY = 0x4A;
+ static const int ZZXZ = 0x8A;
+ static const int ZZXW = 0xCA;
+ static const int ZZYX = 0x1A;
+ static const int ZZYY = 0x5A;
+ static const int ZZYZ = 0x9A;
+ static const int ZZYW = 0xDA;
+ static const int ZZZX = 0x2A;
+ static const int ZZZY = 0x6A;
+ static const int ZZZZ = 0xAA;
+ static const int ZZZW = 0xEA;
+ static const int ZZWX = 0x3A;
+ static const int ZZWY = 0x7A;
+ static const int ZZWZ = 0xBA;
+ static const int ZZWW = 0xFA;
+ static const int ZWXX = 0xE;
+ static const int ZWXY = 0x4E;
+ static const int ZWXZ = 0x8E;
+ static const int ZWXW = 0xCE;
+ static const int ZWYX = 0x1E;
+ static const int ZWYY = 0x5E;
+ static const int ZWYZ = 0x9E;
+ static const int ZWYW = 0xDE;
+ static const int ZWZX = 0x2E;
+ static const int ZWZY = 0x6E;
+ static const int ZWZZ = 0xAE;
+ static const int ZWZW = 0xEE;
+ static const int ZWWX = 0x3E;
+ static const int ZWWY = 0x7E;
+ static const int ZWWZ = 0xBE;
+ static const int ZWWW = 0xFE;
+ static const int WXXX = 0x3;
+ static const int WXXY = 0x43;
+ static const int WXXZ = 0x83;
+ static const int WXXW = 0xC3;
+ static const int WXYX = 0x13;
+ static const int WXYY = 0x53;
+ static const int WXYZ = 0x93;
+ static const int WXYW = 0xD3;
+ static const int WXZX = 0x23;
+ static const int WXZY = 0x63;
+ static const int WXZZ = 0xA3;
+ static const int WXZW = 0xE3;
+ static const int WXWX = 0x33;
+ static const int WXWY = 0x73;
+ static const int WXWZ = 0xB3;
+ static const int WXWW = 0xF3;
+ static const int WYXX = 0x7;
+ static const int WYXY = 0x47;
+ static const int WYXZ = 0x87;
+ static const int WYXW = 0xC7;
+ static const int WYYX = 0x17;
+ static const int WYYY = 0x57;
+ static const int WYYZ = 0x97;
+ static const int WYYW = 0xD7;
+ static const int WYZX = 0x27;
+ static const int WYZY = 0x67;
+ static const int WYZZ = 0xA7;
+ static const int WYZW = 0xE7;
+ static const int WYWX = 0x37;
+ static const int WYWY = 0x77;
+ static const int WYWZ = 0xB7;
+ static const int WYWW = 0xF7;
+ static const int WZXX = 0xB;
+ static const int WZXY = 0x4B;
+ static const int WZXZ = 0x8B;
+ static const int WZXW = 0xCB;
+ static const int WZYX = 0x1B;
+ static const int WZYY = 0x5B;
+ static const int WZYZ = 0x9B;
+ static const int WZYW = 0xDB;
+ static const int WZZX = 0x2B;
+ static const int WZZY = 0x6B;
+ static const int WZZZ = 0xAB;
+ static const int WZZW = 0xEB;
+ static const int WZWX = 0x3B;
+ static const int WZWY = 0x7B;
+ static const int WZWZ = 0xBB;
+ static const int WZWW = 0xFB;
+ static const int WWXX = 0xF;
+ static const int WWXY = 0x4F;
+ static const int WWXZ = 0x8F;
+ static const int WWXW = 0xCF;
+ static const int WWYX = 0x1F;
+ static const int WWYY = 0x5F;
+ static const int WWYZ = 0x9F;
+ static const int WWYW = 0xDF;
+ static const int WWZX = 0x2F;
+ static const int WWZY = 0x6F;
+ static const int WWZZ = 0xAF;
+ static const int WWZW = 0xEF;
+ static const int WWWX = 0x3F;
+ static const int WWWY = 0x7F;
+ static const int WWWZ = 0xBF;
+ static const int WWWW = 0xFF;
+
+
+ /// Shuffle the lane values. [mask] must be one of the 256 shuffle constants.
+ Float32x4 shuffle(int m) {
+ if (m < 0 || m > 255) {
+ throw new RangeError('mask $m must be in the range [0..256)');
+ }
double _x = _storage[m & 0x3];
double _y = _storage[(m >> 2) & 0x3];
double _z = _storage[(m >> 4) & 0x3];
@@ -1249,6 +1255,7 @@ class Float32x4 {
return new Float32x4(_x, _y, _z, _w);
}
+ /// Copy [this] and replace the [x] lane.
Float32x4 withX(double x) {
double _x = x;
double _y = _storage[1];
@@ -1257,6 +1264,7 @@ class Float32x4 {
return new Float32x4(_x, _y, _z, _w);
}
+ /// Copy [this] and replace the [y] lane.
Float32x4 withY(double y) {
double _x = _storage[0];
double _y = y;
@@ -1265,6 +1273,7 @@ class Float32x4 {
return new Float32x4(_x, _y, _z, _w);
}
+ /// Copy [this] and replace the [z] lane.
Float32x4 withZ(double z) {
double _x = _storage[0];
double _y = _storage[1];
@@ -1273,6 +1282,7 @@ class Float32x4 {
return new Float32x4(_x, _y, _z, _w);
}
+ /// Copy [this] and replace the [w] lane.
Float32x4 withW(double w) {
double _x = _storage[0];
double _y = _storage[1];
« no previous file with comments | « runtime/vm/intermediate_language.h ('k') | sdk/lib/typed_data/typed_data.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698