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

Unified 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: Remove commented out code used for testing 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 side-by-side diff with in-line comments
Download patch
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);
}

Powered by Google App Engine
This is Rietveld 408576698