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

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: 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: sdk/lib/scalarlist/byte_arrays.dart
diff --git a/sdk/lib/scalarlist/byte_arrays.dart b/sdk/lib/scalarlist/byte_arrays.dart
index d8432593bc5aed6fed0f11509b46576f451562bc..c8e73fcca51f30fb063fe954af6d83da3b643100 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 Simd128Float32 number represented by the 16 bytes at
kasperl 2013/02/21 11:28:15 Float32x4? Remove double space after 32.
Cutch 2013/02/21 18:45:16 Done.
+ * 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.
+ */
+ Simd128Float32 getSimd128Float32(int byteOffset);
kasperl 2013/02/21 11:28:15 Float32x4?
Cutch 2013/02/21 18:45:16 Done.
+
+ /**
+ * 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 setSimd128Float32(int byteOffset, Simd128Float32 value);
kasperl 2013/02/21 11:28:15 Float32x4?
Cutch 2013/02/21 18:45:16 Done.
+
+
+ /**
* 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