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

Side by Side Diff: sdk/lib/scalarlist/simd128.dart

Issue 12334080: For Doubl erounding call C-function instead of attempting to inline it. Fixes issue 8760. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 10 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/vm/intermediate_language_x64.cc ('k') | tests/language/arithmetic_test.dart » ('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 part of dart.scalarlist; 5 part of dart.scalarlist;
6 6
7 /** 7 /**
8 * Interface of Dart Float32x4 and operations. 8 * Interface of Dart Float32x4 and operations.
9 * Float32x4 stores 4 32-bit floating point values in "lanes". 9 * Float32x4 stores 4 32-bit floating point values in "lanes".
10 * The lanes are "x", "y", "z", and "w" respectively. 10 * The lanes are "x", "y", "z", and "w" respectively.
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 /// Returns a new [Uint32x4] copied from [this] with a new y value. 140 /// Returns a new [Uint32x4] copied from [this] with a new y value.
141 Uint32x4 withFlagY(bool y); 141 Uint32x4 withFlagY(bool y);
142 /// Returns a new [Uint32x4] copied from [this] with a new z value. 142 /// Returns a new [Uint32x4] copied from [this] with a new z value.
143 Uint32x4 withFlagZ(bool z); 143 Uint32x4 withFlagZ(bool z);
144 /// Returns a new [Uint32x4] copied from [this] with a new w value. 144 /// Returns a new [Uint32x4] copied from [this] with a new w value.
145 Uint32x4 withFlagW(bool w); 145 Uint32x4 withFlagW(bool w);
146 146
147 /// Merge [trueValue] and [falseValue] based on [this]' bit mask: 147 /// Merge [trueValue] and [falseValue] based on [this]' bit mask:
148 /// Select bit from [trueValue] when bit in [this] is on. 148 /// Select bit from [trueValue] when bit in [this] is on.
149 /// Select bit from [falseValue] when bit in [this] is off. 149 /// Select bit from [falseValue] when bit in [this] is off.
150 Float32x4 select(Float32x4 trueValue, 150 Float32x4 select(Float32x4 trueValue, Float32x4 falseValue);
151 Float32x4 falseValue);
152 151
153 /// Returns a bit-wise copy of [this] as a [Float32x4]. 152 /// Returns a bit-wise copy of [this] as a [Float32x4].
154 Float32x4 toFloat32x4(); 153 Float32x4 toFloat32x4();
155 } 154 }
156 155
157 /** 156 /**
158 * A fixed-length list of Float32x4 numbers that is viewable as a 157 * A fixed-length list of Float32x4 numbers that is viewable as a
159 * [ByteArray]. For long lists, this implementation will be considerably more 158 * [ByteArray]. For long lists, this implementation will be considerably more
160 * space- and time-efficient than the default [List] implementation. 159 * space- and time-efficient than the default [List] implementation.
161 */ 160 */
(...skipping 18 matching lines...) Expand all
180 * [start] of the region is not divisible by 16. If, however, [array] is a 179 * [start] of the region is not divisible by 16. If, however, [array] is a
181 * view of another byte array, this constructor will throw [ArgumentError] 180 * view of another byte array, this constructor will throw [ArgumentError]
182 * if the implicit starting position in the "ultimately backing" byte array 181 * if the implicit starting position in the "ultimately backing" byte array
183 * is not divisible by 16. In plain terms, this constructor throws 182 * is not divisible by 16. In plain terms, this constructor throws
184 * [ArgumentError] if the specified region does not contain an integral 183 * [ArgumentError] if the specified region does not contain an integral
185 * number of "Float32x4s," or if it is not "Float32x4-aligned." 184 * number of "Float32x4s," or if it is not "Float32x4-aligned."
186 */ 185 */
187 external factory Float32x4List.view(ByteArray array, 186 external factory Float32x4List.view(ByteArray array,
188 [int start = 0, int length]); 187 [int start = 0, int length]);
189 } 188 }
OLDNEW
« no previous file with comments | « runtime/vm/intermediate_language_x64.cc ('k') | tests/language/arithmetic_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698