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

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: 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/vm/symbols.h ('k') | sdk/lib/scalarlist/scalarlist.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..e37efc291627aec72f23b80bd420ba70e67e2396 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 Float32x4 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.
+ */
+ Float32x4 getFloat32x4(int byteOffset);
+
+ /**
+ * Sets the sixteen bytes starting at the specified [byteOffset] in this
+ * byte array to the Float32x4 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 setFloat32x4(int byteOffset, Float32x4 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).
« no previous file with comments | « runtime/vm/symbols.h ('k') | sdk/lib/scalarlist/scalarlist.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698