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

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

Issue 51373004: SIMD shuffle API changes (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 1 month 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 2009 matching lines...) Expand 10 before | Expand all | Expand 10 after
2020 Float32x4 _clamp(Float32x4 lowerLimit, 2020 Float32x4 _clamp(Float32x4 lowerLimit,
2021 Float32x4 upperLimit) 2021 Float32x4 upperLimit)
2022 native "Float32x4_clamp"; 2022 native "Float32x4_clamp";
2023 double get x native "Float32x4_getX"; 2023 double get x native "Float32x4_getX";
2024 double get y native "Float32x4_getY"; 2024 double get y native "Float32x4_getY";
2025 double get z native "Float32x4_getZ"; 2025 double get z native "Float32x4_getZ";
2026 double get w native "Float32x4_getW"; 2026 double get w native "Float32x4_getW";
2027 int get signMask native "Float32x4_getSignMask"; 2027 int get signMask native "Float32x4_getSignMask";
2028 2028
2029 Float32x4 shuffle(int mask) native "Float32x4_shuffle"; 2029 Float32x4 shuffle(int mask) native "Float32x4_shuffle";
2030 2030 Float32x4 shuffleMix(Float32x4 zw, int mask) native "Float32x4_shuffleMix";
2031 Float32x4 withZWInXY(Float32x4 other) native "Float32x4_withZWInXY";
2032 Float32x4 interleaveXY(Float32x4 other) native "Float32x4_interleaveXY";
2033 Float32x4 interleaveZW(Float32x4 other) native "Float32x4_interleaveZW";
2034 Float32x4 interleaveXYPairs(Float32x4 other)
2035 native "Float32x4_interleaveXYPairs";
2036 Float32x4 interleaveZWPairs(Float32x4 other)
2037 native "Float32x4_interleaveZWPairs";
2038 2031
2039 Float32x4 withX(double x) native "Float32x4_setX"; 2032 Float32x4 withX(double x) native "Float32x4_setX";
2040 Float32x4 withY(double y) native "Float32x4_setY"; 2033 Float32x4 withY(double y) native "Float32x4_setY";
2041 Float32x4 withZ(double z) native "Float32x4_setZ"; 2034 Float32x4 withZ(double z) native "Float32x4_setZ";
2042 Float32x4 withW(double w) native "Float32x4_setW"; 2035 Float32x4 withW(double w) native "Float32x4_setW";
2043 Float32x4 min(Float32x4 other) { 2036 Float32x4 min(Float32x4 other) {
2044 return _min(other); 2037 return _min(other);
2045 } 2038 }
2046 Float32x4 _min(Float32x4 other) native "Float32x4_min"; 2039 Float32x4 _min(Float32x4 other) native "Float32x4_min";
2047 Float32x4 max(Float32x4 other) { 2040 Float32x4 max(Float32x4 other) {
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
2088 Uint32x4 _add(Uint32x4 other) native "Uint32x4_add"; 2081 Uint32x4 _add(Uint32x4 other) native "Uint32x4_add";
2089 Uint32x4 operator -(Uint32x4 other) { 2082 Uint32x4 operator -(Uint32x4 other) {
2090 return _sub(other); 2083 return _sub(other);
2091 } 2084 }
2092 Uint32x4 _sub(Uint32x4 other) native "Uint32x4_sub"; 2085 Uint32x4 _sub(Uint32x4 other) native "Uint32x4_sub";
2093 int get x native "Uint32x4_getX"; 2086 int get x native "Uint32x4_getX";
2094 int get y native "Uint32x4_getY"; 2087 int get y native "Uint32x4_getY";
2095 int get z native "Uint32x4_getZ"; 2088 int get z native "Uint32x4_getZ";
2096 int get w native "Uint32x4_getW"; 2089 int get w native "Uint32x4_getW";
2097 int get signMask native "Uint32x4_getSignMask"; 2090 int get signMask native "Uint32x4_getSignMask";
2091 Uint32x4 shuffle(int mask) native "Uint32x4_shuffle";
2092 Uint32x4 shuffleMix(Uint32x4 zw, int mask) native "Uint32x4_shuffleMix";
2098 Uint32x4 withX(int x) native "Uint32x4_setX"; 2093 Uint32x4 withX(int x) native "Uint32x4_setX";
2099 Uint32x4 withY(int y) native "Uint32x4_setY"; 2094 Uint32x4 withY(int y) native "Uint32x4_setY";
2100 Uint32x4 withZ(int z) native "Uint32x4_setZ"; 2095 Uint32x4 withZ(int z) native "Uint32x4_setZ";
2101 Uint32x4 withW(int w) native "Uint32x4_setW"; 2096 Uint32x4 withW(int w) native "Uint32x4_setW";
2102 bool get flagX native "Uint32x4_getFlagX"; 2097 bool get flagX native "Uint32x4_getFlagX";
2103 bool get flagY native "Uint32x4_getFlagY"; 2098 bool get flagY native "Uint32x4_getFlagY";
2104 bool get flagZ native "Uint32x4_getFlagZ"; 2099 bool get flagZ native "Uint32x4_getFlagZ";
2105 bool get flagW native "Uint32x4_getFlagW"; 2100 bool get flagW native "Uint32x4_getFlagW";
2106 Uint32x4 withFlagX(bool x) native "Uint32x4_setFlagX"; 2101 Uint32x4 withFlagX(bool x) native "Uint32x4_setFlagX";
2107 Uint32x4 withFlagY(bool y) native "Uint32x4_setFlagY"; 2102 Uint32x4 withFlagY(bool y) native "Uint32x4_setFlagY";
(...skipping 1045 matching lines...) Expand 10 before | Expand all | Expand 10 after
3153 return value; 3148 return value;
3154 } 3149 }
3155 return object; 3150 return object;
3156 } 3151 }
3157 3152
3158 3153
3159 void _throwRangeError(int index, int length) { 3154 void _throwRangeError(int index, int length) {
3160 String message = "$index must be in the range [0..$length)"; 3155 String message = "$index must be in the range [0..$length)";
3161 throw new RangeError(message); 3156 throw new RangeError(message);
3162 } 3157 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698