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

Unified Diff: sdk/lib/typed_data/typed_data.dart

Issue 22947006: Add signMask getter to Float32x4 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 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/typed_data/typed_data.dart
diff --git a/sdk/lib/typed_data/typed_data.dart b/sdk/lib/typed_data/typed_data.dart
index 36b40892407a458e20d36e3a576bfb375bd2ee12..71d6a8dfa50f026be2f79290bf8e2e842e89b16b 100644
--- a/sdk/lib/typed_data/typed_data.dart
+++ b/sdk/lib/typed_data/typed_data.dart
@@ -876,6 +876,9 @@ abstract class Float32x4 {
/// Extracted w value.
double get w;
+ /// Extract the sign bits from each lane return them in the first 4 bits.
+ int get signMask;
+
/// Mask passed to [shuffle].
static const int XXXX = 0x0;
static const int XXXY = 0x40;
@@ -1215,6 +1218,9 @@ abstract class Uint32x4 {
/// Extract 32-bit mask from w lane.
int get w;
+ /// Extract the top bit from each lane return them in the first 4 bits.
+ int get signMask;
+
/// Returns a new [Uint32x4] copied from [this] with a new x value.
Uint32x4 withX(int x);
/// Returns a new [Uint32x4] copied from [this] with a new y value.
« no previous file with comments | « sdk/lib/typed_data/dart2js/typed_data_dart2js.dart ('k') | tests/lib/typed_data/float32x4_sign_mask_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698