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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
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 2245 matching lines...) Expand 10 before | Expand all | Expand 10 after
2256 Float32x4 get wwyw => _shuffle(0xDF); 2256 Float32x4 get wwyw => _shuffle(0xDF);
2257 Float32x4 get wwzx => _shuffle(0x2F); 2257 Float32x4 get wwzx => _shuffle(0x2F);
2258 Float32x4 get wwzy => _shuffle(0x6F); 2258 Float32x4 get wwzy => _shuffle(0x6F);
2259 Float32x4 get wwzz => _shuffle(0xAF); 2259 Float32x4 get wwzz => _shuffle(0xAF);
2260 Float32x4 get wwzw => _shuffle(0xEF); 2260 Float32x4 get wwzw => _shuffle(0xEF);
2261 Float32x4 get wwwx => _shuffle(0x3F); 2261 Float32x4 get wwwx => _shuffle(0x3F);
2262 Float32x4 get wwwy => _shuffle(0x7F); 2262 Float32x4 get wwwy => _shuffle(0x7F);
2263 Float32x4 get wwwz => _shuffle(0xBF); 2263 Float32x4 get wwwz => _shuffle(0xBF);
2264 Float32x4 get wwww => _shuffle(0xFF); 2264 Float32x4 get wwww => _shuffle(0xFF);
2265 Float32x4 _shuffle(int mask) native "Float32x4_shuffle"; 2265 Float32x4 _shuffle(int mask) native "Float32x4_shuffle";
2266
2267 Float32x4 withZWInXY(Float32x4 other) native "Float32x4_withZwInXy";
2268 Float32x4 interleaveXY(Float32x4 other) native "Float32x4_interleaveXy";
2269 Float32x4 interleaveZW(Float32x4 other) native "Float32x4_interleaveZw";
2270 Float32x4 interleaveXYPairs(Float32x4 other)
2271 native "Float32x4_interleaveXyPairs";
2272 Float32x4 interleaveZWPairs(Float32x4 other)
2273 native "Float32x4_interleaveZwPairs";
2274
2266 Float32x4 withX(double x) native "Float32x4_setX"; 2275 Float32x4 withX(double x) native "Float32x4_setX";
2267 Float32x4 withY(double y) native "Float32x4_setY"; 2276 Float32x4 withY(double y) native "Float32x4_setY";
2268 Float32x4 withZ(double z) native "Float32x4_setZ"; 2277 Float32x4 withZ(double z) native "Float32x4_setZ";
2269 Float32x4 withW(double w) native "Float32x4_setW"; 2278 Float32x4 withW(double w) native "Float32x4_setW";
2270 Float32x4 min(Float32x4 other) { 2279 Float32x4 min(Float32x4 other) {
2271 return _min(other); 2280 return _min(other);
2272 } 2281 }
2273 Float32x4 _min(Float32x4 other) native "Float32x4_min"; 2282 Float32x4 _min(Float32x4 other) native "Float32x4_min";
2274 Float32x4 max(Float32x4 other) { 2283 Float32x4 max(Float32x4 other) {
2275 return _max(other); 2284 return _max(other);
(...skipping 1084 matching lines...) Expand 10 before | Expand all | Expand 10 after
3360 return value; 3369 return value;
3361 } 3370 }
3362 return object; 3371 return object;
3363 } 3372 }
3364 3373
3365 3374
3366 void _throwRangeError(int index, int length) { 3375 void _throwRangeError(int index, int length) {
3367 String message = "$index must be in the range [0..$length)"; 3376 String message = "$index must be in the range [0..$length)";
3368 throw new RangeError(message); 3377 throw new RangeError(message);
3369 } 3378 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698