OLD | NEW |
---|---|
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 class Int8List { | 5 patch class Int8List { |
6 /* patch */ factory Int8List(int length) { | 6 /* patch */ factory Int8List(int length) { |
7 return new _Int8Array(length); | 7 return new _Int8Array(length); |
8 } | 8 } |
9 | 9 |
10 /* patch */ factory Int8List.transferable(int length) { | 10 /* patch */ factory Int8List.transferable(int length) { |
(...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
443 | 443 |
444 int _getUint32(int byteOffset) native "ByteArray_getUint32"; | 444 int _getUint32(int byteOffset) native "ByteArray_getUint32"; |
445 int _setUint32(int byteOffset, int value) native "ByteArray_setUint32"; | 445 int _setUint32(int byteOffset, int value) native "ByteArray_setUint32"; |
446 | 446 |
447 int _getInt64(int byteOffset) native "ByteArray_getInt64"; | 447 int _getInt64(int byteOffset) native "ByteArray_getInt64"; |
448 int _setInt64(int byteOffset, int value) native "ByteArray_setInt64"; | 448 int _setInt64(int byteOffset, int value) native "ByteArray_setInt64"; |
449 | 449 |
450 int _getUint64(int byteOffset) native "ByteArray_getUint64"; | 450 int _getUint64(int byteOffset) native "ByteArray_getUint64"; |
451 int _setUint64(int byteOffset, int value) native "ByteArray_setUint64"; | 451 int _setUint64(int byteOffset, int value) native "ByteArray_setUint64"; |
452 | 452 |
453 Simd128Float32 _getSimd128Float32(int byteOffset) | |
kasperl
2013/02/21 11:28:15
Are you going to rename this to Float32x4 too?
Cutch
2013/02/21 18:45:16
Yes, I missed this. I wonder if we should drop the
| |
454 native "ByteArray_getSimd128Float32"; | |
455 int _setSimd128Float32(int byteOffset, Simd128Float32 value) | |
456 native "ByteArray_setSimd128Float32"; | |
457 | |
453 double _getFloat32(int byteOffset) native "ByteArray_getFloat32"; | 458 double _getFloat32(int byteOffset) native "ByteArray_getFloat32"; |
454 int _setFloat32(int byteOffset, double value) native "ByteArray_setFloat32"; | 459 int _setFloat32(int byteOffset, double value) native "ByteArray_setFloat32"; |
455 | 460 |
456 double _getFloat64(int byteOffset) native "ByteArray_getFloat64"; | 461 double _getFloat64(int byteOffset) native "ByteArray_getFloat64"; |
457 int _setFloat64(int byteOffset, double value) native "ByteArray_setFloat64"; | 462 int _setFloat64(int byteOffset, double value) native "ByteArray_setFloat64"; |
458 } | 463 } |
459 | 464 |
460 | 465 |
461 int _toInt(int value, int mask) { | 466 int _toInt(int value, int mask) { |
462 value &= mask; | 467 value &= mask; |
(...skipping 1428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1891 return _array._setInt64(_offset + byteOffset, value); | 1896 return _array._setInt64(_offset + byteOffset, value); |
1892 } | 1897 } |
1893 | 1898 |
1894 int getUint64(int byteOffset) { | 1899 int getUint64(int byteOffset) { |
1895 return _array._getUint64(_offset + byteOffset); | 1900 return _array._getUint64(_offset + byteOffset); |
1896 } | 1901 } |
1897 int setUint64(int byteOffset, int value) { | 1902 int setUint64(int byteOffset, int value) { |
1898 return _array._setUint64(_offset + byteOffset, value); | 1903 return _array._setUint64(_offset + byteOffset, value); |
1899 } | 1904 } |
1900 | 1905 |
1906 Simd128Float32 getSimd128Float32(int byteOffset) { | |
1907 return _array._getSimd128Float32(_offset + byteOffset); | |
1908 } | |
1909 int setSimd128Float32(int byteOffset, Simd128Float32 value) { | |
1910 return _array._setSimd128Float32(_offset + byteOffset, value); | |
1911 } | |
1912 | |
1901 double getFloat32(int byteOffset) { | 1913 double getFloat32(int byteOffset) { |
1902 return _array._getFloat32(_offset + byteOffset); | 1914 return _array._getFloat32(_offset + byteOffset); |
1903 } | 1915 } |
1904 int setFloat32(int byteOffset, double value) { | 1916 int setFloat32(int byteOffset, double value) { |
1905 return _array._setFloat32(_offset + byteOffset, value); | 1917 return _array._setFloat32(_offset + byteOffset, value); |
1906 } | 1918 } |
1907 | 1919 |
1908 double getFloat64(int byteOffset) { | 1920 double getFloat64(int byteOffset) { |
1909 return _array._getFloat64(_offset + byteOffset); | 1921 return _array._getFloat64(_offset + byteOffset); |
1910 } | 1922 } |
(...skipping 766 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2677 ByteArray asByteArray([int start = 0, int length]) { | 2689 ByteArray asByteArray([int start = 0, int length]) { |
2678 if (length == null) { | 2690 if (length == null) { |
2679 length = this.lengthInBytes(); | 2691 length = this.lengthInBytes(); |
2680 } | 2692 } |
2681 _rangeCheck(this.length, start, length); | 2693 _rangeCheck(this.length, start, length); |
2682 return _array.subByteArray(_offset + start, length); | 2694 return _array.subByteArray(_offset + start, length); |
2683 } | 2695 } |
2684 | 2696 |
2685 static const int _BYTES_PER_ELEMENT = 8; | 2697 static const int _BYTES_PER_ELEMENT = 8; |
2686 } | 2698 } |
OLD | NEW |