Int32x4 class abstract final

Int32x4 and operations.

Int32x4 stores 4 32-bit bit-masks in "lanes". The lanes are "x", "y", "z", and "w" respectively.

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

Properties

flagW bool
Extracted w value. Returns false for 0, true for any other value.
read-only
flagX bool
Extracted x value. Returns false for 0, true for any other value.
read-only
flagY bool
Extracted y value. Returns false for 0, true for any other value.
read-only
flagZ bool
Extracted z value. Returns false for 0, true for any other value.
read-only
hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
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.
read-only
w int
Extract 32-bit mask from w lane.
read-only
x int
Extract 32-bit mask from x lane.
read-only
y int
Extract 32-bit mask from y lane.
read-only
z int
Extract 32-bit mask from z lane.
read-only

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
select(Float32x4 trueValue, Float32x4 falseValue) Float32x4
Merge trueValue and falseValue based on this' bit mask: Select bit from trueValue when bit in this is on. Select bit from falseValue when bit in this 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 and other. The returned Int32x4 will have XY lanes from this and ZW lanes from other. Uses the same mask as shuffle.
toString() String
A string representation of this object.
inherited
withFlagW(bool w) Int32x4
Returns a new Int32x4 copied from this with a new w value.
withFlagX(bool x) Int32x4
Returns a new Int32x4 copied from this with a new x value.
withFlagY(bool y) Int32x4
Returns a new Int32x4 copied from this with a new y value.
withFlagZ(bool z) Int32x4
Returns a new Int32x4 copied from this with a new z value.
withW(int w) Int32x4
Returns a new Int32x4 copied from this with a new w value.
withX(int x) Int32x4
Returns a new Int32x4 copied from this with a new x value.
withY(int y) Int32x4
Returns a new Int32x4 copied from this with a new y value.
withZ(int z) Int32x4
Returns a new Int32x4 copied from this 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
0xFF
wwwx → const int
0x3F
wwwy → const int
0x7F
wwwz → const int
0xBF
wwxw → const int
0xCF
wwxx → const int
0xF
wwxy → const int
0x4F
wwxz → const int
0x8F
wwyw → const int
0xDF
wwyx → const int
0x1F
wwyy → const int
0x5F
wwyz → const int
0x9F
wwzw → const int
0xEF
wwzx → const int
0x2F
wwzy → const int
0x6F
wwzz → const int
0xAF
wxww → const int
0xF3
wxwx → const int
0x33
wxwy → const int
0x73
wxwz → const int
0xB3
wxxw → const int
0xC3
wxxx → const int
0x3
wxxy → const int
0x43
wxxz → const int
0x83
wxyw → const int
0xD3
wxyx → const int
0x13
wxyy → const int
0x53
wxyz → const int
0x93
wxzw → const int
0xE3
wxzx → const int
0x23
wxzy → const int
0x63
wxzz → const int
0xA3
wyww → const int
0xF7
wywx → const int
0x37
wywy → const int
0x77
wywz → const int
0xB7
wyxw → const int
0xC7
wyxx → const int
0x7
wyxy → const int
0x47
wyxz → const int
0x87
wyyw → const int
0xD7
wyyx → const int
0x17
wyyy → const int
0x57
wyyz → const int
0x97
wyzw → const int
0xE7
wyzx → const int
0x27
wyzy → const int
0x67
wyzz → const int
0xA7
wzww → const int
0xFB
wzwx → const int
0x3B
wzwy → const int
0x7B
wzwz → const int
0xBB
wzxw → const int
0xCB
wzxx → const int
0xB
wzxy → const int
0x4B
wzxz → const int
0x8B
wzyw → const int
0xDB
wzyx → const int
0x1B
wzyy → const int
0x5B
wzyz → const int
0x9B
wzzw → const int
0xEB
wzzx → const int
0x2B
wzzy → const int
0x6B
wzzz → const int
0xAB
xwww → const int
0xFC
xwwx → const int
0x3C
xwwy → const int
0x7C
xwwz → const int
0xBC
xwxw → const int
0xCC
xwxx → const int
0xC
xwxy → const int
0x4C
xwxz → const int
0x8C
xwyw → const int
0xDC
xwyx → const int
0x1C
xwyy → const int
0x5C
xwyz → const int
0x9C
xwzw → const int
0xEC
xwzx → const int
0x2C
xwzy → const int
0x6C
xwzz → const int
0xAC
xxww → const int
0xF0
xxwx → const int
0x30
xxwy → const int
0x70
xxwz → const int
0xB0
xxxw → const int
0xC0
xxxx → const int
Mask passed to shuffle or shuffleMix.
0x0
xxxy → const int
0x40
xxxz → const int
0x80
xxyw → const int
0xD0
xxyx → const int
0x10
xxyy → const int
0x50
xxyz → const int
0x90
xxzw → const int
0xE0
xxzx → const int
0x20
xxzy → const int
0x60
xxzz → const int
0xA0
xyww → const int
0xF4
xywx → const int
0x34
xywy → const int
0x74
xywz → const int
0xB4
xyxw → const int
0xC4
xyxx → const int
0x4
xyxy → const int
0x44
xyxz → const int
0x84
xyyw → const int
0xD4
xyyx → const int
0x14
xyyy → const int
0x54
xyyz → const int
0x94
xyzw → const int
0xE4
xyzx → const int
0x24
xyzy → const int
0x64
xyzz → const int
0xA4
xzww → const int
0xF8
xzwx → const int
0x38
xzwy → const int
0x78
xzwz → const int
0xB8
xzxw → const int
0xC8
xzxx → const int
0x8
xzxy → const int
0x48
xzxz → const int
0x88
xzyw → const int
0xD8
xzyx → const int
0x18
xzyy → const int
0x58
xzyz → const int
0x98
xzzw → const int
0xE8
xzzx → const int
0x28
xzzy → const int
0x68
xzzz → const int
0xA8
ywww → const int
0xFD
ywwx → const int
0x3D
ywwy → const int
0x7D
ywwz → const int
0xBD
ywxw → const int
0xCD
ywxx → const int
0xD
ywxy → const int
0x4D
ywxz → const int
0x8D
ywyw → const int
0xDD
ywyx → const int
0x1D
ywyy → const int
0x5D
ywyz → const int
0x9D
ywzw → const int
0xED
ywzx → const int
0x2D
ywzy → const int
0x6D
ywzz → const int
0xAD
yxww → const int
0xF1
yxwx → const int
0x31
yxwy → const int
0x71
yxwz → const int
0xB1
yxxw → const int
0xC1
yxxx → const int
0x1
yxxy → const int
0x41
yxxz → const int
0x81
yxyw → const int
0xD1
yxyx → const int
0x11
yxyy → const int
0x51
yxyz → const int
0x91
yxzw → const int
0xE1
yxzx → const int
0x21
yxzy → const int
0x61
yxzz → const int
0xA1
yyww → const int
0xF5
yywx → const int
0x35
yywy → const int
0x75
yywz → const int
0xB5
yyxw → const int
0xC5
yyxx → const int
0x5
yyxy → const int
0x45
yyxz → const int
0x85
yyyw → const int
0xD5
yyyx → const int
0x15
yyyy → const int
0x55
yyyz → const int
0x95
yyzw → const int
0xE5
yyzx → const int
0x25
yyzy → const int
0x65
yyzz → const int
0xA5
yzww → const int
0xF9
yzwx → const int
0x39
yzwy → const int
0x79
yzwz → const int
0xB9
yzxw → const int
0xC9
yzxx → const int
0x9
yzxy → const int
0x49
yzxz → const int
0x89
yzyw → const int
0xD9
yzyx → const int
0x19
yzyy → const int
0x59
yzyz → const int
0x99
yzzw → const int
0xE9
yzzx → const int
0x29
yzzy → const int
0x69
yzzz → const int
0xA9
zwww → const int
0xFE
zwwx → const int
0x3E
zwwy → const int
0x7E
zwwz → const int
0xBE
zwxw → const int
0xCE
zwxx → const int
0xE
zwxy → const int
0x4E
zwxz → const int
0x8E
zwyw → const int
0xDE
zwyx → const int
0x1E
zwyy → const int
0x5E
zwyz → const int
0x9E
zwzw → const int
0xEE
zwzx → const int
0x2E
zwzy → const int
0x6E
zwzz → const int
0xAE
zxww → const int
0xF2
zxwx → const int
0x32
zxwy → const int
0x72
zxwz → const int
0xB2
zxxw → const int
0xC2
zxxx → const int
0x2
zxxy → const int
0x42
zxxz → const int
0x82
zxyw → const int
0xD2
zxyx → const int
0x12
zxyy → const int
0x52
zxyz → const int
0x92
zxzw → const int
0xE2
zxzx → const int
0x22
zxzy → const int
0x62
zxzz → const int
0xA2
zyww → const int
0xF6
zywx → const int
0x36
zywy → const int
0x76
zywz → const int
0xB6
zyxw → const int
0xC6
zyxx → const int
0x6
zyxy → const int
0x46
zyxz → const int
0x86
zyyw → const int
0xD6
zyyx → const int
0x16
zyyy → const int
0x56
zyyz → const int
0x96
zyzw → const int
0xE6
zyzx → const int
0x26
zyzy → const int
0x66
zyzz → const int
0xA6
zzww → const int
0xFA
zzwx → const int
0x3A
zzwy → const int
0x7A
zzwz → const int
0xBA
zzxw → const int
0xCA
zzxx → const int
0xA
zzxy → const int
0x4A
zzxz → const int
0x8A
zzyw → const int
0xDA
zzyx → const int
0x1A
zzyy → const int
0x5A
zzyz → const int
0x9A
zzzw → const int
0xEA
zzzx → const int
0x2A
zzzy → const int
0x6A
zzzz → const int
0xAA