2074
2074
Mux between A and B based on the provided mask. The condition specified
2075
2075
as the `mux` modifier is evaluated on the mask. If true, `A` is chosen,
2076
2076
else `B` is chosen. The `bit` modifier acts bitwise, equivalent to
2077
`bitselect()` in OpenCL, so `MUX.i32.bit A, B, mask` calculates
2077
`bitselect()` in OpenCL, so `MUX.v2i16.bit A, B, mask` calculates
2078
2078
`(A & mask) | (B & ~mask)`.
2080
2080
<mod name="mux" start="32" size="2"/>