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

Unified Diff: sdk/lib/scalarlist/byte_arrays.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: Incorporating Kasper's review 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: sdk/lib/scalarlist/byte_arrays.dart
diff --git a/sdk/lib/scalarlist/byte_arrays.dart b/sdk/lib/scalarlist/byte_arrays.dart
index d8432593bc5aed6fed0f11509b46576f451562bc..09848539eb36411ea9b222541f4341ad7eb1055d 100644
--- a/sdk/lib/scalarlist/byte_arrays.dart
+++ b/sdk/lib/scalarlist/byte_arrays.dart
@@ -269,6 +269,30 @@ abstract class ByteArray {
int setUint64(int byteOffset, int value);
/**
+ * Returns the Simd128Float32x4 number represented by the 16 bytes at
+ * the specified [byteOffset] in this byte array.
+ *
+ * Throws [RangeError] if [byteOffset] is negative, or
+ * `byteOffset + 16` is greater than the length of this byte array.
+ */
+ Simd128Float32x4 getSimd128Float32x4(int byteOffset);
+
+ /**
+ * Sets the sixteen bytes starting at the specified [byteOffset] in this
+ * byte array to the Simd128Float32 representation of the specified [value].
+ *
+ *
+ * Returns `byteOffset + 16`, which is the offset of the first byte in the
+ * array after the last byte that was set by this call. This return value can
+ * be passed as the [byteOffset] parameter to a subsequent `setXxx` call.
+ *
+ * Throws [RangeError] if [byteOffset] is negative, or
+ * `byteOffset + 16` is greater than the length of this byte array.
+ */
+ int setSimd128Float32x4(int byteOffset, Simd128Float32x4 value);
+
+
+ /**
* Returns the floating point number represented by the four bytes at
* the specified [byteOffset] in this byte array, in IEEE 754
* single-precision binary floating-point format (binary32).

Powered by Google App Engine
This is Rietveld 408576698