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

Side by Side Diff: runtime/lib/typed_data.dart

Issue 19564014: Add all 256 shuffle methods 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/lib/simd128.cc ('k') | runtime/vm/bootstrap_natives.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 // patch classes for Int8List ..... Float64List and ByteData implementations. 5 // patch classes for Int8List ..... Float64List and ByteData implementations.
6 6
7 patch class Int8List { 7 patch class Int8List {
8 /* patch */ factory Int8List(int length) { 8 /* patch */ factory Int8List(int length) {
9 return new _Int8Array(length); 9 return new _Int8Array(length);
10 } 10 }
(...skipping 1988 matching lines...) Expand 10 before | Expand all | Expand 10 after
1999 Float32x4 upperLimit) { 1999 Float32x4 upperLimit) {
2000 return _clamp(lowerLimit, upperLimit); 2000 return _clamp(lowerLimit, upperLimit);
2001 } 2001 }
2002 Float32x4 _clamp(Float32x4 lowerLimit, 2002 Float32x4 _clamp(Float32x4 lowerLimit,
2003 Float32x4 upperLimit) 2003 Float32x4 upperLimit)
2004 native "Float32x4_clamp"; 2004 native "Float32x4_clamp";
2005 double get x native "Float32x4_getX"; 2005 double get x native "Float32x4_getX";
2006 double get y native "Float32x4_getY"; 2006 double get y native "Float32x4_getY";
2007 double get z native "Float32x4_getZ"; 2007 double get z native "Float32x4_getZ";
2008 double get w native "Float32x4_getW"; 2008 double get w native "Float32x4_getW";
2009 Float32x4 get xxxx native "Float32x4_getXXXX"; 2009 Float32x4 get xxxx => _shuffle(0x0);
2010 Float32x4 get yyyy native "Float32x4_getYYYY"; 2010 Float32x4 get xxxy => _shuffle(0x40);
2011 Float32x4 get zzzz native "Float32x4_getZZZZ"; 2011 Float32x4 get xxxz => _shuffle(0x80);
2012 Float32x4 get wwww native "Float32x4_getWWWW"; 2012 Float32x4 get xxxw => _shuffle(0xC0);
2013 Float32x4 get xxyx => _shuffle(0x10);
2014 Float32x4 get xxyy => _shuffle(0x50);
2015 Float32x4 get xxyz => _shuffle(0x90);
2016 Float32x4 get xxyw => _shuffle(0xD0);
2017 Float32x4 get xxzx => _shuffle(0x20);
2018 Float32x4 get xxzy => _shuffle(0x60);
2019 Float32x4 get xxzz => _shuffle(0xA0);
2020 Float32x4 get xxzw => _shuffle(0xE0);
2021 Float32x4 get xxwx => _shuffle(0x30);
2022 Float32x4 get xxwy => _shuffle(0x70);
2023 Float32x4 get xxwz => _shuffle(0xB0);
2024 Float32x4 get xxww => _shuffle(0xF0);
2025 Float32x4 get xyxx => _shuffle(0x4);
2026 Float32x4 get xyxy => _shuffle(0x44);
2027 Float32x4 get xyxz => _shuffle(0x84);
2028 Float32x4 get xyxw => _shuffle(0xC4);
2029 Float32x4 get xyyx => _shuffle(0x14);
2030 Float32x4 get xyyy => _shuffle(0x54);
2031 Float32x4 get xyyz => _shuffle(0x94);
2032 Float32x4 get xyyw => _shuffle(0xD4);
2033 Float32x4 get xyzx => _shuffle(0x24);
2034 Float32x4 get xyzy => _shuffle(0x64);
2035 Float32x4 get xyzz => _shuffle(0xA4);
2036 Float32x4 get xyzw => _shuffle(0xE4);
2037 Float32x4 get xywx => _shuffle(0x34);
2038 Float32x4 get xywy => _shuffle(0x74);
2039 Float32x4 get xywz => _shuffle(0xB4);
2040 Float32x4 get xyww => _shuffle(0xF4);
2041 Float32x4 get xzxx => _shuffle(0x8);
2042 Float32x4 get xzxy => _shuffle(0x48);
2043 Float32x4 get xzxz => _shuffle(0x88);
2044 Float32x4 get xzxw => _shuffle(0xC8);
2045 Float32x4 get xzyx => _shuffle(0x18);
2046 Float32x4 get xzyy => _shuffle(0x58);
2047 Float32x4 get xzyz => _shuffle(0x98);
2048 Float32x4 get xzyw => _shuffle(0xD8);
2049 Float32x4 get xzzx => _shuffle(0x28);
2050 Float32x4 get xzzy => _shuffle(0x68);
2051 Float32x4 get xzzz => _shuffle(0xA8);
2052 Float32x4 get xzzw => _shuffle(0xE8);
2053 Float32x4 get xzwx => _shuffle(0x38);
2054 Float32x4 get xzwy => _shuffle(0x78);
2055 Float32x4 get xzwz => _shuffle(0xB8);
2056 Float32x4 get xzww => _shuffle(0xF8);
2057 Float32x4 get xwxx => _shuffle(0xC);
2058 Float32x4 get xwxy => _shuffle(0x4C);
2059 Float32x4 get xwxz => _shuffle(0x8C);
2060 Float32x4 get xwxw => _shuffle(0xCC);
2061 Float32x4 get xwyx => _shuffle(0x1C);
2062 Float32x4 get xwyy => _shuffle(0x5C);
2063 Float32x4 get xwyz => _shuffle(0x9C);
2064 Float32x4 get xwyw => _shuffle(0xDC);
2065 Float32x4 get xwzx => _shuffle(0x2C);
2066 Float32x4 get xwzy => _shuffle(0x6C);
2067 Float32x4 get xwzz => _shuffle(0xAC);
2068 Float32x4 get xwzw => _shuffle(0xEC);
2069 Float32x4 get xwwx => _shuffle(0x3C);
2070 Float32x4 get xwwy => _shuffle(0x7C);
2071 Float32x4 get xwwz => _shuffle(0xBC);
2072 Float32x4 get xwww => _shuffle(0xFC);
2073 Float32x4 get yxxx => _shuffle(0x1);
2074 Float32x4 get yxxy => _shuffle(0x41);
2075 Float32x4 get yxxz => _shuffle(0x81);
2076 Float32x4 get yxxw => _shuffle(0xC1);
2077 Float32x4 get yxyx => _shuffle(0x11);
2078 Float32x4 get yxyy => _shuffle(0x51);
2079 Float32x4 get yxyz => _shuffle(0x91);
2080 Float32x4 get yxyw => _shuffle(0xD1);
2081 Float32x4 get yxzx => _shuffle(0x21);
2082 Float32x4 get yxzy => _shuffle(0x61);
2083 Float32x4 get yxzz => _shuffle(0xA1);
2084 Float32x4 get yxzw => _shuffle(0xE1);
2085 Float32x4 get yxwx => _shuffle(0x31);
2086 Float32x4 get yxwy => _shuffle(0x71);
2087 Float32x4 get yxwz => _shuffle(0xB1);
2088 Float32x4 get yxww => _shuffle(0xF1);
2089 Float32x4 get yyxx => _shuffle(0x5);
2090 Float32x4 get yyxy => _shuffle(0x45);
2091 Float32x4 get yyxz => _shuffle(0x85);
2092 Float32x4 get yyxw => _shuffle(0xC5);
2093 Float32x4 get yyyx => _shuffle(0x15);
2094 Float32x4 get yyyy => _shuffle(0x55);
2095 Float32x4 get yyyz => _shuffle(0x95);
2096 Float32x4 get yyyw => _shuffle(0xD5);
2097 Float32x4 get yyzx => _shuffle(0x25);
2098 Float32x4 get yyzy => _shuffle(0x65);
2099 Float32x4 get yyzz => _shuffle(0xA5);
2100 Float32x4 get yyzw => _shuffle(0xE5);
2101 Float32x4 get yywx => _shuffle(0x35);
2102 Float32x4 get yywy => _shuffle(0x75);
2103 Float32x4 get yywz => _shuffle(0xB5);
2104 Float32x4 get yyww => _shuffle(0xF5);
2105 Float32x4 get yzxx => _shuffle(0x9);
2106 Float32x4 get yzxy => _shuffle(0x49);
2107 Float32x4 get yzxz => _shuffle(0x89);
2108 Float32x4 get yzxw => _shuffle(0xC9);
2109 Float32x4 get yzyx => _shuffle(0x19);
2110 Float32x4 get yzyy => _shuffle(0x59);
2111 Float32x4 get yzyz => _shuffle(0x99);
2112 Float32x4 get yzyw => _shuffle(0xD9);
2113 Float32x4 get yzzx => _shuffle(0x29);
2114 Float32x4 get yzzy => _shuffle(0x69);
2115 Float32x4 get yzzz => _shuffle(0xA9);
2116 Float32x4 get yzzw => _shuffle(0xE9);
2117 Float32x4 get yzwx => _shuffle(0x39);
2118 Float32x4 get yzwy => _shuffle(0x79);
2119 Float32x4 get yzwz => _shuffle(0xB9);
2120 Float32x4 get yzww => _shuffle(0xF9);
2121 Float32x4 get ywxx => _shuffle(0xD);
2122 Float32x4 get ywxy => _shuffle(0x4D);
2123 Float32x4 get ywxz => _shuffle(0x8D);
2124 Float32x4 get ywxw => _shuffle(0xCD);
2125 Float32x4 get ywyx => _shuffle(0x1D);
2126 Float32x4 get ywyy => _shuffle(0x5D);
2127 Float32x4 get ywyz => _shuffle(0x9D);
2128 Float32x4 get ywyw => _shuffle(0xDD);
2129 Float32x4 get ywzx => _shuffle(0x2D);
2130 Float32x4 get ywzy => _shuffle(0x6D);
2131 Float32x4 get ywzz => _shuffle(0xAD);
2132 Float32x4 get ywzw => _shuffle(0xED);
2133 Float32x4 get ywwx => _shuffle(0x3D);
2134 Float32x4 get ywwy => _shuffle(0x7D);
2135 Float32x4 get ywwz => _shuffle(0xBD);
2136 Float32x4 get ywww => _shuffle(0xFD);
2137 Float32x4 get zxxx => _shuffle(0x2);
2138 Float32x4 get zxxy => _shuffle(0x42);
2139 Float32x4 get zxxz => _shuffle(0x82);
2140 Float32x4 get zxxw => _shuffle(0xC2);
2141 Float32x4 get zxyx => _shuffle(0x12);
2142 Float32x4 get zxyy => _shuffle(0x52);
2143 Float32x4 get zxyz => _shuffle(0x92);
2144 Float32x4 get zxyw => _shuffle(0xD2);
2145 Float32x4 get zxzx => _shuffle(0x22);
2146 Float32x4 get zxzy => _shuffle(0x62);
2147 Float32x4 get zxzz => _shuffle(0xA2);
2148 Float32x4 get zxzw => _shuffle(0xE2);
2149 Float32x4 get zxwx => _shuffle(0x32);
2150 Float32x4 get zxwy => _shuffle(0x72);
2151 Float32x4 get zxwz => _shuffle(0xB2);
2152 Float32x4 get zxww => _shuffle(0xF2);
2153 Float32x4 get zyxx => _shuffle(0x6);
2154 Float32x4 get zyxy => _shuffle(0x46);
2155 Float32x4 get zyxz => _shuffle(0x86);
2156 Float32x4 get zyxw => _shuffle(0xC6);
2157 Float32x4 get zyyx => _shuffle(0x16);
2158 Float32x4 get zyyy => _shuffle(0x56);
2159 Float32x4 get zyyz => _shuffle(0x96);
2160 Float32x4 get zyyw => _shuffle(0xD6);
2161 Float32x4 get zyzx => _shuffle(0x26);
2162 Float32x4 get zyzy => _shuffle(0x66);
2163 Float32x4 get zyzz => _shuffle(0xA6);
2164 Float32x4 get zyzw => _shuffle(0xE6);
2165 Float32x4 get zywx => _shuffle(0x36);
2166 Float32x4 get zywy => _shuffle(0x76);
2167 Float32x4 get zywz => _shuffle(0xB6);
2168 Float32x4 get zyww => _shuffle(0xF6);
2169 Float32x4 get zzxx => _shuffle(0xA);
2170 Float32x4 get zzxy => _shuffle(0x4A);
2171 Float32x4 get zzxz => _shuffle(0x8A);
2172 Float32x4 get zzxw => _shuffle(0xCA);
2173 Float32x4 get zzyx => _shuffle(0x1A);
2174 Float32x4 get zzyy => _shuffle(0x5A);
2175 Float32x4 get zzyz => _shuffle(0x9A);
2176 Float32x4 get zzyw => _shuffle(0xDA);
2177 Float32x4 get zzzx => _shuffle(0x2A);
2178 Float32x4 get zzzy => _shuffle(0x6A);
2179 Float32x4 get zzzz => _shuffle(0xAA);
2180 Float32x4 get zzzw => _shuffle(0xEA);
2181 Float32x4 get zzwx => _shuffle(0x3A);
2182 Float32x4 get zzwy => _shuffle(0x7A);
2183 Float32x4 get zzwz => _shuffle(0xBA);
2184 Float32x4 get zzww => _shuffle(0xFA);
2185 Float32x4 get zwxx => _shuffle(0xE);
2186 Float32x4 get zwxy => _shuffle(0x4E);
2187 Float32x4 get zwxz => _shuffle(0x8E);
2188 Float32x4 get zwxw => _shuffle(0xCE);
2189 Float32x4 get zwyx => _shuffle(0x1E);
2190 Float32x4 get zwyy => _shuffle(0x5E);
2191 Float32x4 get zwyz => _shuffle(0x9E);
2192 Float32x4 get zwyw => _shuffle(0xDE);
2193 Float32x4 get zwzx => _shuffle(0x2E);
2194 Float32x4 get zwzy => _shuffle(0x6E);
2195 Float32x4 get zwzz => _shuffle(0xAE);
2196 Float32x4 get zwzw => _shuffle(0xEE);
2197 Float32x4 get zwwx => _shuffle(0x3E);
2198 Float32x4 get zwwy => _shuffle(0x7E);
2199 Float32x4 get zwwz => _shuffle(0xBE);
2200 Float32x4 get zwww => _shuffle(0xFE);
2201 Float32x4 get wxxx => _shuffle(0x3);
2202 Float32x4 get wxxy => _shuffle(0x43);
2203 Float32x4 get wxxz => _shuffle(0x83);
2204 Float32x4 get wxxw => _shuffle(0xC3);
2205 Float32x4 get wxyx => _shuffle(0x13);
2206 Float32x4 get wxyy => _shuffle(0x53);
2207 Float32x4 get wxyz => _shuffle(0x93);
2208 Float32x4 get wxyw => _shuffle(0xD3);
2209 Float32x4 get wxzx => _shuffle(0x23);
2210 Float32x4 get wxzy => _shuffle(0x63);
2211 Float32x4 get wxzz => _shuffle(0xA3);
2212 Float32x4 get wxzw => _shuffle(0xE3);
2213 Float32x4 get wxwx => _shuffle(0x33);
2214 Float32x4 get wxwy => _shuffle(0x73);
2215 Float32x4 get wxwz => _shuffle(0xB3);
2216 Float32x4 get wxww => _shuffle(0xF3);
2217 Float32x4 get wyxx => _shuffle(0x7);
2218 Float32x4 get wyxy => _shuffle(0x47);
2219 Float32x4 get wyxz => _shuffle(0x87);
2220 Float32x4 get wyxw => _shuffle(0xC7);
2221 Float32x4 get wyyx => _shuffle(0x17);
2222 Float32x4 get wyyy => _shuffle(0x57);
2223 Float32x4 get wyyz => _shuffle(0x97);
2224 Float32x4 get wyyw => _shuffle(0xD7);
2225 Float32x4 get wyzx => _shuffle(0x27);
2226 Float32x4 get wyzy => _shuffle(0x67);
2227 Float32x4 get wyzz => _shuffle(0xA7);
2228 Float32x4 get wyzw => _shuffle(0xE7);
2229 Float32x4 get wywx => _shuffle(0x37);
2230 Float32x4 get wywy => _shuffle(0x77);
2231 Float32x4 get wywz => _shuffle(0xB7);
2232 Float32x4 get wyww => _shuffle(0xF7);
2233 Float32x4 get wzxx => _shuffle(0xB);
2234 Float32x4 get wzxy => _shuffle(0x4B);
2235 Float32x4 get wzxz => _shuffle(0x8B);
2236 Float32x4 get wzxw => _shuffle(0xCB);
2237 Float32x4 get wzyx => _shuffle(0x1B);
2238 Float32x4 get wzyy => _shuffle(0x5B);
2239 Float32x4 get wzyz => _shuffle(0x9B);
2240 Float32x4 get wzyw => _shuffle(0xDB);
2241 Float32x4 get wzzx => _shuffle(0x2B);
2242 Float32x4 get wzzy => _shuffle(0x6B);
2243 Float32x4 get wzzz => _shuffle(0xAB);
2244 Float32x4 get wzzw => _shuffle(0xEB);
2245 Float32x4 get wzwx => _shuffle(0x3B);
2246 Float32x4 get wzwy => _shuffle(0x7B);
2247 Float32x4 get wzwz => _shuffle(0xBB);
2248 Float32x4 get wzww => _shuffle(0xFB);
2249 Float32x4 get wwxx => _shuffle(0xF);
2250 Float32x4 get wwxy => _shuffle(0x4F);
2251 Float32x4 get wwxz => _shuffle(0x8F);
2252 Float32x4 get wwxw => _shuffle(0xCF);
2253 Float32x4 get wwyx => _shuffle(0x1F);
2254 Float32x4 get wwyy => _shuffle(0x5F);
2255 Float32x4 get wwyz => _shuffle(0x9F);
2256 Float32x4 get wwyw => _shuffle(0xDF);
2257 Float32x4 get wwzx => _shuffle(0x2F);
2258 Float32x4 get wwzy => _shuffle(0x6F);
2259 Float32x4 get wwzz => _shuffle(0xAF);
2260 Float32x4 get wwzw => _shuffle(0xEF);
2261 Float32x4 get wwwx => _shuffle(0x3F);
2262 Float32x4 get wwwy => _shuffle(0x7F);
2263 Float32x4 get wwwz => _shuffle(0xBF);
2264 Float32x4 get wwww => _shuffle(0xFF);
siva 2013/07/26 01:07:23 John, One quick question instead of having indivi
2265 Float32x4 _shuffle(int mask) native "Float32x4_shuffle";
2013 Float32x4 withX(double x) native "Float32x4_setX"; 2266 Float32x4 withX(double x) native "Float32x4_setX";
2014 Float32x4 withY(double y) native "Float32x4_setY"; 2267 Float32x4 withY(double y) native "Float32x4_setY";
2015 Float32x4 withZ(double z) native "Float32x4_setZ"; 2268 Float32x4 withZ(double z) native "Float32x4_setZ";
2016 Float32x4 withW(double w) native "Float32x4_setW"; 2269 Float32x4 withW(double w) native "Float32x4_setW";
2017 Float32x4 min(Float32x4 other) { 2270 Float32x4 min(Float32x4 other) {
2018 return _min(other); 2271 return _min(other);
2019 } 2272 }
2020 Float32x4 _min(Float32x4 other) native "Float32x4_min"; 2273 Float32x4 _min(Float32x4 other) native "Float32x4_min";
2021 Float32x4 max(Float32x4 other) { 2274 Float32x4 max(Float32x4 other) {
2022 return _max(other); 2275 return _max(other);
(...skipping 1084 matching lines...) Expand 10 before | Expand all | Expand 10 after
3107 return value; 3360 return value;
3108 } 3361 }
3109 return object; 3362 return object;
3110 } 3363 }
3111 3364
3112 3365
3113 void _throwRangeError(int index, int length) { 3366 void _throwRangeError(int index, int length) {
3114 String message = "$index must be in the range [0..$length)"; 3367 String message = "$index must be in the range [0..$length)";
3115 throw new RangeError(message); 3368 throw new RangeError(message);
3116 } 3369 }
OLDNEW
« no previous file with comments | « runtime/lib/simd128.cc ('k') | runtime/vm/bootstrap_natives.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698