[][src]Macro safe_arch::blend_imm_m256d

macro_rules! blend_imm_m256d {
    ($a:expr, $b:expr, $imm:expr) => { ... };
}
This is supported with target feature avx only.

Blends the f64 lanes according to the immediate mask.

Each bit 0 though 3 controls lane 0 through 3. Use 0 for the $a value and 1 for the $b value.

let a = m256d::from_array([10.0, 20.0, 30.0, 40.0]);
let b = m256d::from_array([100.0, 200.0, 300.0, 400.0]);
//
let c = blend_imm_m256d!(a, b, 0b0110).to_array();
assert_eq!(c, [10.0, 200.0, 300.0, 40.0]);