Int32x4 and operations.
Int32x4 stores 4 32-bit bit-masks in "lanes". The lanes are "x", "y", "z", and "w" respectively.
Constructors
Properties
- flagW → bool
-
Extracted w value. Returns false for 0, true for any other value.
no setter
- flagX → bool
-
Extracted x value. Returns false for 0, true for any other value.
no setter
- flagY → bool
-
Extracted y value. Returns false for 0, true for any other value.
no setter
- flagZ → bool
-
Extracted z value. Returns false for 0, true for any other value.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- signMask → int
-
Extract the top bit from each lane return them in the first 4 bits.
"x" lane is bit 0.
"y" lane is bit 1.
"z" lane is bit 2.
"w" lane is bit 3.
no setter
- w → int
-
Extract 32-bit mask from w lane.
no setter
- x → int
-
Extract 32-bit mask from x lane.
no setter
- y → int
-
Extract 32-bit mask from y lane.
no setter
- z → int
-
Extract 32-bit mask from z lane.
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
select(
Float32x4 trueValue, Float32x4 falseValue) → Float32x4 -
Merge
trueValue
andfalseValue
based on this Int32x4 bit mask: Select bit fromtrueValue
when bit in this Int32x4 is on. Select bit fromfalseValue
when bit in this Int32x4 is off. -
shuffle(
int mask) → Int32x4 -
Shuffle the lane values.
mask
must be one of the 256 shuffle constants. -
shuffleMix(
Int32x4 other, int mask) → Int32x4 -
Shuffle the lane values in this Int32x4 and
other
. The returned Int32x4 will have XY lanes from this Int32x4 and ZW lanes fromother
. Uses the samemask
as shuffle. -
toString(
) → String -
A string representation of this object.
inherited
-
withFlagW(
bool w) → Int32x4 - Returns a new Int32x4 copied from this Int32x4 with a new w value.
-
withFlagX(
bool x) → Int32x4 - Returns a new Int32x4 copied from this Int32x4 with a new x value.
-
withFlagY(
bool y) → Int32x4 - Returns a new Int32x4 copied from this Int32x4 with a new y value.
-
withFlagZ(
bool z) → Int32x4 - Returns a new Int32x4 copied from this Int32x4 with a new z value.
-
withW(
int w) → Int32x4 - Returns a new Int32x4 copied from this Int32x4 with a new w value.
-
withX(
int x) → Int32x4 - Returns a new Int32x4 copied from this Int32x4 with a new x value.
-
withY(
int y) → Int32x4 - Returns a new Int32x4 copied from this Int32x4 with a new y value.
-
withZ(
int z) → Int32x4 - Returns a new Int32x4 copied from this Int32x4 with a new z value.
Operators
-
operator &(
Int32x4 other) → Int32x4 - The bit-wise and operator.
-
operator +(
Int32x4 other) → Int32x4 - Addition operator.
-
operator -(
Int32x4 other) → Int32x4 - Subtraction operator.
-
operator ==(
Object other) → bool -
The equality operator.
inherited
-
operator ^(
Int32x4 other) → Int32x4 - The bit-wise xor operator.
-
operator |(
Int32x4 other) → Int32x4 - The bit-wise or operator.
Constants
- wwww → const int
- wwwx → const int
- wwwy → const int
- wwwz → const int
- wwxw → const int
- wwxx → const int
- wwxy → const int
- wwxz → const int
- wwyw → const int
- wwyx → const int
- wwyy → const int
- wwyz → const int
- wwzw → const int
- wwzx → const int
- wwzy → const int
- wwzz → const int
- wxww → const int
- wxwx → const int
- wxwy → const int
- wxwz → const int
- wxxw → const int
- wxxx → const int
- wxxy → const int
- wxxz → const int
- wxyw → const int
- wxyx → const int
- wxyy → const int
- wxyz → const int
- wxzw → const int
- wxzx → const int
- wxzy → const int
- wxzz → const int
- wyww → const int
- wywx → const int
- wywy → const int
- wywz → const int
- wyxw → const int
- wyxx → const int
- wyxy → const int
- wyxz → const int
- wyyw → const int
- wyyx → const int
- wyyy → const int
- wyyz → const int
- wyzw → const int
- wyzx → const int
- wyzy → const int
- wyzz → const int
- wzww → const int
- wzwx → const int
- wzwy → const int
- wzwz → const int
- wzxw → const int
- wzxx → const int
- wzxy → const int
- wzxz → const int
- wzyw → const int
- wzyx → const int
- wzyy → const int
- wzyz → const int
- wzzw → const int
- wzzx → const int
- wzzy → const int
- wzzz → const int
- xwww → const int
- xwwx → const int
- xwwy → const int
- xwwz → const int
- xwxw → const int
- xwxx → const int
- xwxy → const int
- xwxz → const int
- xwyw → const int
- xwyx → const int
- xwyy → const int
- xwyz → const int
- xwzw → const int
- xwzx → const int
- xwzy → const int
- xwzz → const int
- xxww → const int
- xxwx → const int
- xxwy → const int
- xxwz → const int
- xxxw → const int
- xxxx → const int
- Mask passed to shuffle or shuffleMix.
- xxxy → const int
- xxxz → const int
- xxyw → const int
- xxyx → const int
- xxyy → const int
- xxyz → const int
- xxzw → const int
- xxzx → const int
- xxzy → const int
- xxzz → const int
- xyww → const int
- xywx → const int
- xywy → const int
- xywz → const int
- xyxw → const int
- xyxx → const int
- xyxy → const int
- xyxz → const int
- xyyw → const int
- xyyx → const int
- xyyy → const int
- xyyz → const int
- xyzw → const int
- xyzx → const int
- xyzy → const int
- xyzz → const int
- xzww → const int
- xzwx → const int
- xzwy → const int
- xzwz → const int
- xzxw → const int
- xzxx → const int
- xzxy → const int
- xzxz → const int
- xzyw → const int
- xzyx → const int
- xzyy → const int
- xzyz → const int
- xzzw → const int
- xzzx → const int
- xzzy → const int
- xzzz → const int
- ywww → const int
- ywwx → const int
- ywwy → const int
- ywwz → const int
- ywxw → const int
- ywxx → const int
- ywxy → const int
- ywxz → const int
- ywyw → const int
- ywyx → const int
- ywyy → const int
- ywyz → const int
- ywzw → const int
- ywzx → const int
- ywzy → const int
- ywzz → const int
- yxww → const int
- yxwx → const int
- yxwy → const int
- yxwz → const int
- yxxw → const int
- yxxx → const int
- yxxy → const int
- yxxz → const int
- yxyw → const int
- yxyx → const int
- yxyy → const int
- yxyz → const int
- yxzw → const int
- yxzx → const int
- yxzy → const int
- yxzz → const int
- yyww → const int
- yywx → const int
- yywy → const int
- yywz → const int
- yyxw → const int
- yyxx → const int
- yyxy → const int
- yyxz → const int
- yyyw → const int
- yyyx → const int
- yyyy → const int
- yyyz → const int
- yyzw → const int
- yyzx → const int
- yyzy → const int
- yyzz → const int
- yzww → const int
- yzwx → const int
- yzwy → const int
- yzwz → const int
- yzxw → const int
- yzxx → const int
- yzxy → const int
- yzxz → const int
- yzyw → const int
- yzyx → const int
- yzyy → const int
- yzyz → const int
- yzzw → const int
- yzzx → const int
- yzzy → const int
- yzzz → const int
- zwww → const int
- zwwx → const int
- zwwy → const int
- zwwz → const int
- zwxw → const int
- zwxx → const int
- zwxy → const int
- zwxz → const int
- zwyw → const int
- zwyx → const int
- zwyy → const int
- zwyz → const int
- zwzw → const int
- zwzx → const int
- zwzy → const int
- zwzz → const int
- zxww → const int
- zxwx → const int
- zxwy → const int
- zxwz → const int
- zxxw → const int
- zxxx → const int
- zxxy → const int
- zxxz → const int
- zxyw → const int
- zxyx → const int
- zxyy → const int
- zxyz → const int
- zxzw → const int
- zxzx → const int
- zxzy → const int
- zxzz → const int
- zyww → const int
- zywx → const int
- zywy → const int
- zywz → const int
- zyxw → const int
- zyxx → const int
- zyxy → const int
- zyxz → const int
- zyyw → const int
- zyyx → const int
- zyyy → const int
- zyyz → const int
- zyzw → const int
- zyzx → const int
- zyzy → const int
- zyzz → const int
- zzww → const int
- zzwx → const int
- zzwy → const int
- zzwz → const int
- zzxw → const int
- zzxx → const int
- zzxy → const int
- zzxz → const int
- zzyw → const int
- zzyx → const int
- zzyy → const int
- zzyz → const int
- zzzw → const int
- zzzx → const int
- zzzy → const int
- zzzz → const int