[][src]Macro safe_arch::blend_imm_m128d

macro_rules! blend_imm_m128d {
    ($a:expr, $b:expr, $imm:expr) => { ... };
}

Blends the lanes according to the immediate mask.

Bits 0 and 1 control where output lane 0 and 1 come from. Use 0 for the $a value and 1 for the $b value.

let a = m128d::from_array([0.0, 1.0]);
let b = m128d::from_array([2.0, 3.0]);
let c = blend_imm_m128d!(a, b, 0b10).to_array();
assert_eq!(c, [0.0, 3.0]);