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

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

Issue 12303013: Simd128Float32, Simd128Mask, and Simd128Float32List additions for dart:scalarlist (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix strict aliasing warning Created 7 years, 9 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/lib/byte_array.cc ('k') | runtime/lib/scalarlist_sources.gypi » ('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) 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 428 matching lines...) Expand 10 before | Expand all | Expand 10 after
439 439
440 int _getUint32(int byteOffset) native "ByteArray_getUint32"; 440 int _getUint32(int byteOffset) native "ByteArray_getUint32";
441 int _setUint32(int byteOffset, int value) native "ByteArray_setUint32"; 441 int _setUint32(int byteOffset, int value) native "ByteArray_setUint32";
442 442
443 int _getInt64(int byteOffset) native "ByteArray_getInt64"; 443 int _getInt64(int byteOffset) native "ByteArray_getInt64";
444 int _setInt64(int byteOffset, int value) native "ByteArray_setInt64"; 444 int _setInt64(int byteOffset, int value) native "ByteArray_setInt64";
445 445
446 int _getUint64(int byteOffset) native "ByteArray_getUint64"; 446 int _getUint64(int byteOffset) native "ByteArray_getUint64";
447 int _setUint64(int byteOffset, int value) native "ByteArray_setUint64"; 447 int _setUint64(int byteOffset, int value) native "ByteArray_setUint64";
448 448
449 Float32x4 _getFloat32x4(int byteOffset) native "ByteArray_getFloat32x4";
450 int _setFloat32x4(int byteOffset, Float32x4 value)
451 native "ByteArray_setFloat32x4";
452
449 double _getFloat32(int byteOffset) native "ByteArray_getFloat32"; 453 double _getFloat32(int byteOffset) native "ByteArray_getFloat32";
450 int _setFloat32(int byteOffset, double value) native "ByteArray_setFloat32"; 454 int _setFloat32(int byteOffset, double value) native "ByteArray_setFloat32";
451 455
452 double _getFloat64(int byteOffset) native "ByteArray_getFloat64"; 456 double _getFloat64(int byteOffset) native "ByteArray_getFloat64";
453 int _setFloat64(int byteOffset, double value) native "ByteArray_setFloat64"; 457 int _setFloat64(int byteOffset, double value) native "ByteArray_setFloat64";
454 } 458 }
455 459
456 460
457 int _toInt(int value, int mask) { 461 int _toInt(int value, int mask) {
458 value &= mask; 462 value &= mask;
(...skipping 1428 matching lines...) Expand 10 before | Expand all | Expand 10 after
1887 return _array._setInt64(_offset + byteOffset, value); 1891 return _array._setInt64(_offset + byteOffset, value);
1888 } 1892 }
1889 1893
1890 int getUint64(int byteOffset) { 1894 int getUint64(int byteOffset) {
1891 return _array._getUint64(_offset + byteOffset); 1895 return _array._getUint64(_offset + byteOffset);
1892 } 1896 }
1893 int setUint64(int byteOffset, int value) { 1897 int setUint64(int byteOffset, int value) {
1894 return _array._setUint64(_offset + byteOffset, value); 1898 return _array._setUint64(_offset + byteOffset, value);
1895 } 1899 }
1896 1900
1901 Float32x4 getFloat32x4(int byteOffset) {
1902 return _array._getFloat32x4(_offset + byteOffset);
1903 }
1904 int setFloat32x4(int byteOffset, Float32x4 value) {
1905 return _array._setFloat32x4(_offset + byteOffset, value);
1906 }
1907
1897 double getFloat32(int byteOffset) { 1908 double getFloat32(int byteOffset) {
1898 return _array._getFloat32(_offset + byteOffset); 1909 return _array._getFloat32(_offset + byteOffset);
1899 } 1910 }
1900 int setFloat32(int byteOffset, double value) { 1911 int setFloat32(int byteOffset, double value) {
1901 return _array._setFloat32(_offset + byteOffset, value); 1912 return _array._setFloat32(_offset + byteOffset, value);
1902 } 1913 }
1903 1914
1904 double getFloat64(int byteOffset) { 1915 double getFloat64(int byteOffset) {
1905 return _array._getFloat64(_offset + byteOffset); 1916 return _array._getFloat64(_offset + byteOffset);
1906 } 1917 }
(...skipping 766 matching lines...) Expand 10 before | Expand all | Expand 10 after
2673 ByteArray asByteArray([int start = 0, int length]) { 2684 ByteArray asByteArray([int start = 0, int length]) {
2674 if (length == null) { 2685 if (length == null) {
2675 length = this.lengthInBytes(); 2686 length = this.lengthInBytes();
2676 } 2687 }
2677 _rangeCheck(this.length, start, length); 2688 _rangeCheck(this.length, start, length);
2678 return _array.subByteArray(_offset + start, length); 2689 return _array.subByteArray(_offset + start, length);
2679 } 2690 }
2680 2691
2681 static const int _BYTES_PER_ELEMENT = 8; 2692 static const int _BYTES_PER_ELEMENT = 8;
2682 } 2693 }
OLDNEW
« no previous file with comments | « runtime/lib/byte_array.cc ('k') | runtime/lib/scalarlist_sources.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698