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

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: Fix strict aliasing warning 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
« no previous file with comments | « runtime/lib/byte_array.cc ('k') | runtime/lib/scalarlist_sources.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/byte_array.dart
diff --git a/runtime/lib/byte_array.dart b/runtime/lib/byte_array.dart
index 7eb126a2afe49d35e8033bb4a054b18510e414cf..94e076d527d23f7c87d54f3c60dc185fe5115078 100644
--- a/runtime/lib/byte_array.dart
+++ b/runtime/lib/byte_array.dart
@@ -446,6 +446,10 @@ abstract class _ByteArrayBase {
int _getUint64(int byteOffset) native "ByteArray_getUint64";
int _setUint64(int byteOffset, int value) native "ByteArray_setUint64";
+ Float32x4 _getFloat32x4(int byteOffset) native "ByteArray_getFloat32x4";
+ int _setFloat32x4(int byteOffset, Float32x4 value)
+ native "ByteArray_setFloat32x4";
+
double _getFloat32(int byteOffset) native "ByteArray_getFloat32";
int _setFloat32(int byteOffset, double value) native "ByteArray_setFloat32";
@@ -1894,6 +1898,13 @@ class _ByteArrayView implements ByteArray {
return _array._setUint64(_offset + byteOffset, value);
}
+ Float32x4 getFloat32x4(int byteOffset) {
+ return _array._getFloat32x4(_offset + byteOffset);
+ }
+ int setFloat32x4(int byteOffset, Float32x4 value) {
+ return _array._setFloat32x4(_offset + byteOffset, value);
+ }
+
double getFloat32(int byteOffset) {
return _array._getFloat32(_offset + byteOffset);
}
« 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