OLD | NEW |
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 /** | 5 /** |
6 * Specialized integers and floating point numbers, | 6 * Specialized integers and floating point numbers, |
7 * with SIMD support and efficient lists. | 7 * with SIMD support and efficient lists. |
8 */ | 8 */ |
9 library dart.typed_data; | 9 library dart.typed_data; |
10 | 10 |
11 import 'dart:collection'; | 11 import 'dart:collection'; |
12 import 'dart:_collection-dev'; | 12 import 'dart:_internal'; |
13 import 'dart:_interceptors' show JSIndexable, JSUInt32, JSUInt31; | 13 import 'dart:_interceptors' show JSIndexable, JSUInt32, JSUInt31; |
14 import 'dart:_js_helper' | 14 import 'dart:_js_helper' |
15 show Creates, JavaScriptIndexingBehavior, JSName, Null, Returns; | 15 show Creates, JavaScriptIndexingBehavior, JSName, Null, Returns; |
16 import 'dart:_foreign_helper' show JS, JS_CONST; | 16 import 'dart:_foreign_helper' show JS, JS_CONST; |
17 import 'dart:math' as Math; | 17 import 'dart:math' as Math; |
18 | 18 |
19 /** | 19 /** |
20 * Describes endianness to be used when accessing a sequence of bytes. | 20 * Describes endianness to be used when accessing a sequence of bytes. |
21 */ | 21 */ |
22 class Endianness { | 22 class Endianness { |
(...skipping 2583 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2606 int _w = (cmw & stw) | (~cmw & sfw); | 2606 int _w = (cmw & stw) | (~cmw & sfw); |
2607 var r = new Float32x4(0.0, 0.0, 0.0, 0.0); | 2607 var r = new Float32x4(0.0, 0.0, 0.0, 0.0); |
2608 var rView = new Int32List.view(r._storage.buffer); | 2608 var rView = new Int32List.view(r._storage.buffer); |
2609 rView[0] = _x; | 2609 rView[0] = _x; |
2610 rView[1] = _y; | 2610 rView[1] = _y; |
2611 rView[2] = _z; | 2611 rView[2] = _z; |
2612 rView[3] = _w; | 2612 rView[3] = _w; |
2613 return r; | 2613 return r; |
2614 } | 2614 } |
2615 } | 2615 } |
OLD | NEW |