.&=(_:_:)
Replaces a
with the pointwise logical conjunction of a
and b
.
static func .&= (a: inout SIMDMask<Storage>, b: SIMDMask<Storage>)
Equivalent to:
for i in a.indices {
a[i] = a[i] && b[i]
}
Replaces a
with the pointwise logical conjunction of a
and b
.
static func .&= (a: inout SIMDMask<Storage>, b: SIMDMask<Storage>)
ss8SIMDMaskVss5SIMD8Vys5Int64VGRszrlE3zaeoiyyAByAGGz_AItFZ
What are these?962KZ
where Storage == SIMD8<Int64>
Equivalent to:
for i in a.indices {
a[i] = a[i] && b[i]
}
import Swift
@frozen struct SIMDMask<Storage> where Storage : SIMD, Storage.Scalar : FixedWidthInteger, Storage.Scalar : SignedInteger
@frozen struct SIMD8<Scalar> where Scalar : SIMDScalar
A vector of eight scalar values.
static func .! (a: SIMDMask<Storage>) -> SIMDMask<Storage>
A vector mask that is the pointwise logical negation of the input.
static func .!= (a: SIMDMask<Storage>, b: SIMDMask<Storage>) -> SIMDMask<Storage>
A vector mask with the result of a pointwise inequality comparison.
static func .& (a: SIMDMask<Storage>, b: SIMDMask<Storage>) -> SIMDMask<Storage>
A vector mask that is the pointwise logical conjunction of the inputs.
static func .== (a: SIMDMask<Storage>, b: SIMDMask<Storage>) -> SIMDMask<Storage>
A vector mask with the result of a pointwise equality comparison.
static func .^ (a: SIMDMask<Storage>, b: SIMDMask<Storage>) -> SIMDMask<Storage>
A vector mask that is the pointwise exclusive or of the inputs.
static func .^= (a: inout SIMDMask<Storage>, b: SIMDMask<Storage>)
Replaces a
with the pointwise exclusive or of a
and b
.
static func .| (a: SIMDMask<Storage>, b: SIMDMask<Storage>) -> SIMDMask<Storage>
A vector mask that is the pointwise logical disjunction of the inputs.
static func .|= (a: inout SIMDMask<Storage>, b: SIMDMask<Storage>)
Replaces a
with the pointwise logical disjunction of a
and b
.
mutating func replace(with other: SIMDMask<Storage>, where mask: SIMDMask<Storage>)
Replaces elements of this vector with elements of other
in the lanes where mask
is true
.
func replacing(with other: SIMDMask<Storage>, where mask: SIMDMask<Storage>) -> SIMDMask<Storage>
Returns a copy of this vector, with elements replaced by elements of other
in the lanes where mask
is true
.