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

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

Issue 22947006: Add signMask getter to Float32x4 (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 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 2004 matching lines...) Expand 10 before | Expand all | Expand 10 after
2015 Float32x4 upperLimit) { 2015 Float32x4 upperLimit) {
2016 return _clamp(lowerLimit, upperLimit); 2016 return _clamp(lowerLimit, upperLimit);
2017 } 2017 }
2018 Float32x4 _clamp(Float32x4 lowerLimit, 2018 Float32x4 _clamp(Float32x4 lowerLimit,
2019 Float32x4 upperLimit) 2019 Float32x4 upperLimit)
2020 native "Float32x4_clamp"; 2020 native "Float32x4_clamp";
2021 double get x native "Float32x4_getX"; 2021 double get x native "Float32x4_getX";
2022 double get y native "Float32x4_getY"; 2022 double get y native "Float32x4_getY";
2023 double get z native "Float32x4_getZ"; 2023 double get z native "Float32x4_getZ";
2024 double get w native "Float32x4_getW"; 2024 double get w native "Float32x4_getW";
2025 int get signMask native "Float32x4_getSignMask";
2025 Float32x4 get xxxx => _shuffle(0x0); 2026 Float32x4 get xxxx => _shuffle(0x0);
2026 Float32x4 get xxxy => _shuffle(0x40); 2027 Float32x4 get xxxy => _shuffle(0x40);
2027 Float32x4 get xxxz => _shuffle(0x80); 2028 Float32x4 get xxxz => _shuffle(0x80);
2028 Float32x4 get xxxw => _shuffle(0xC0); 2029 Float32x4 get xxxw => _shuffle(0xC0);
2029 Float32x4 get xxyx => _shuffle(0x10); 2030 Float32x4 get xxyx => _shuffle(0x10);
2030 Float32x4 get xxyy => _shuffle(0x50); 2031 Float32x4 get xxyy => _shuffle(0x50);
2031 Float32x4 get xxyz => _shuffle(0x90); 2032 Float32x4 get xxyz => _shuffle(0x90);
2032 Float32x4 get xxyw => _shuffle(0xD0); 2033 Float32x4 get xxyw => _shuffle(0xD0);
2033 Float32x4 get xxzx => _shuffle(0x20); 2034 Float32x4 get xxzx => _shuffle(0x20);
2034 Float32x4 get xxzy => _shuffle(0x60); 2035 Float32x4 get xxzy => _shuffle(0x60);
(...skipping 1350 matching lines...) Expand 10 before | Expand all | Expand 10 after
3385 return value; 3386 return value;
3386 } 3387 }
3387 return object; 3388 return object;
3388 } 3389 }
3389 3390
3390 3391
3391 void _throwRangeError(int index, int length) { 3392 void _throwRangeError(int index, int length) {
3392 String message = "$index must be in the range [0..$length)"; 3393 String message = "$index must be in the range [0..$length)";
3393 throw new RangeError(message); 3394 throw new RangeError(message);
3394 } 3395 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698