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

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 2026
2026 Float32x4 shuffle(int mask) native "Float32x4_shuffle"; 2027 Float32x4 shuffle(int mask) native "Float32x4_shuffle";
2027 2028
2028 Float32x4 withZWInXY(Float32x4 other) native "Float32x4_withZWInXY"; 2029 Float32x4 withZWInXY(Float32x4 other) native "Float32x4_withZWInXY";
2029 Float32x4 interleaveXY(Float32x4 other) native "Float32x4_interleaveXY"; 2030 Float32x4 interleaveXY(Float32x4 other) native "Float32x4_interleaveXY";
2030 Float32x4 interleaveZW(Float32x4 other) native "Float32x4_interleaveZW"; 2031 Float32x4 interleaveZW(Float32x4 other) native "Float32x4_interleaveZW";
2031 Float32x4 interleaveXYPairs(Float32x4 other) 2032 Float32x4 interleaveXYPairs(Float32x4 other)
2032 native "Float32x4_interleaveXYPairs"; 2033 native "Float32x4_interleaveXYPairs";
2033 Float32x4 interleaveZWPairs(Float32x4 other) 2034 Float32x4 interleaveZWPairs(Float32x4 other)
2034 native "Float32x4_interleaveZWPairs"; 2035 native "Float32x4_interleaveZWPairs";
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
2078 } 2079 }
2079 Uint32x4 _and(Uint32x4 other) native "Uint32x4_and"; 2080 Uint32x4 _and(Uint32x4 other) native "Uint32x4_and";
2080 Uint32x4 operator ^(Uint32x4 other) { 2081 Uint32x4 operator ^(Uint32x4 other) {
2081 return _xor(other); 2082 return _xor(other);
2082 } 2083 }
2083 Uint32x4 _xor(Uint32x4 other) native "Uint32x4_xor"; 2084 Uint32x4 _xor(Uint32x4 other) native "Uint32x4_xor";
2084 int get x native "Uint32x4_getX"; 2085 int get x native "Uint32x4_getX";
2085 int get y native "Uint32x4_getY"; 2086 int get y native "Uint32x4_getY";
2086 int get z native "Uint32x4_getZ"; 2087 int get z native "Uint32x4_getZ";
2087 int get w native "Uint32x4_getW"; 2088 int get w native "Uint32x4_getW";
2089 int get signMask native "Uint32x4_getSignMask";
2088 Uint32x4 withX(int x) native "Uint32x4_setX"; 2090 Uint32x4 withX(int x) native "Uint32x4_setX";
2089 Uint32x4 withY(int y) native "Uint32x4_setY"; 2091 Uint32x4 withY(int y) native "Uint32x4_setY";
2090 Uint32x4 withZ(int z) native "Uint32x4_setZ"; 2092 Uint32x4 withZ(int z) native "Uint32x4_setZ";
2091 Uint32x4 withW(int w) native "Uint32x4_setW"; 2093 Uint32x4 withW(int w) native "Uint32x4_setW";
2092 bool get flagX native "Uint32x4_getFlagX"; 2094 bool get flagX native "Uint32x4_getFlagX";
2093 bool get flagY native "Uint32x4_getFlagY"; 2095 bool get flagY native "Uint32x4_getFlagY";
2094 bool get flagZ native "Uint32x4_getFlagZ"; 2096 bool get flagZ native "Uint32x4_getFlagZ";
2095 bool get flagW native "Uint32x4_getFlagW"; 2097 bool get flagW native "Uint32x4_getFlagW";
2096 Uint32x4 withFlagX(bool x) native "Uint32x4_setFlagX"; 2098 Uint32x4 withFlagX(bool x) native "Uint32x4_setFlagX";
2097 Uint32x4 withFlagY(bool y) native "Uint32x4_setFlagY"; 2099 Uint32x4 withFlagY(bool y) native "Uint32x4_setFlagY";
(...skipping 1032 matching lines...) Expand 10 before | Expand all | Expand 10 after
3130 return value; 3132 return value;
3131 } 3133 }
3132 return object; 3134 return object;
3133 } 3135 }
3134 3136
3135 3137
3136 void _throwRangeError(int index, int length) { 3138 void _throwRangeError(int index, int length) {
3137 String message = "$index must be in the range [0..$length)"; 3139 String message = "$index must be in the range [0..$length)";
3138 throw new RangeError(message); 3140 throw new RangeError(message);
3139 } 3141 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698