Chromium Code Reviews| Index: runtime/lib/byte_array.dart |
| diff --git a/runtime/lib/byte_array.dart b/runtime/lib/byte_array.dart |
| index 14b1b17fb351a3d9b8230bc0f7d49bf7a466d60d..1c8b80b6fd5d8270c7fe507d40a6d0263332e76a 100644 |
| --- a/runtime/lib/byte_array.dart |
| +++ b/runtime/lib/byte_array.dart |
| @@ -450,6 +450,11 @@ abstract class _ByteArrayBase { |
| int _getUint64(int byteOffset) native "ByteArray_getUint64"; |
| int _setUint64(int byteOffset, int value) native "ByteArray_setUint64"; |
| + 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
|
| + native "ByteArray_getSimd128Float32"; |
| + int _setSimd128Float32(int byteOffset, Simd128Float32 value) |
| + native "ByteArray_setSimd128Float32"; |
| + |
| double _getFloat32(int byteOffset) native "ByteArray_getFloat32"; |
| int _setFloat32(int byteOffset, double value) native "ByteArray_setFloat32"; |
| @@ -1898,6 +1903,13 @@ class _ByteArrayView implements ByteArray { |
| return _array._setUint64(_offset + byteOffset, value); |
| } |
| + Simd128Float32 getSimd128Float32(int byteOffset) { |
| + return _array._getSimd128Float32(_offset + byteOffset); |
| + } |
| + int setSimd128Float32(int byteOffset, Simd128Float32 value) { |
| + return _array._setSimd128Float32(_offset + byteOffset, value); |
| + } |
| + |
| double getFloat32(int byteOffset) { |
| return _array._getFloat32(_offset + byteOffset); |
| } |