Four 32-bit integer values.
Int32x4 stores four 32-bit integer values in "lanes". The lanes are named x, y, z, and w respectively.
Each lane holds a 32-bit integer value.
Sometimes those integers are used to represent boolean values, where every
bit of a lane is set (the value -1) for true and cleared (the value 0)
for false, for example the results of equal and the flag operations.
That choice of values has the advantage of also being usable as a bit mask.
Constructors
- Int32x4(int x, int y, int z, int w)
-
factory
- Int32x4.bool(bool x, bool y, bool z, bool w)
-
factory
- Int32x4.fromFloat32x4Bits(Float32x4 x)
-
factory
- Int32x4.splat(int value)
-
Creates an Int32x4 with the same 32-bit integer value in all four lanes.
factory
Properties
- anyTrue → bool
-
Whether any of the four lanes has a non-zero value.
no setter
- 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
-
equal(
Int32x4 other) → Int32x4 - Lane-wise integer equality comparison.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
select(
Float32x4 trueValue, Float32x4 falseValue) → Float32x4 -
Merge
trueValueandfalseValuebased on this Int32x4 bit mask: Select bit fromtrueValuewhen bit in this Int32x4 is on. Select bit fromfalseValuewhen bit in this Int32x4 is off. -
shuffle(
int mask) → Int32x4 -
Shuffle the lane values.
maskmust 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 samemaskas 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.
-
operator ~(
) → Int32x4 - Negation of each lane.
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