Function safe_arch::sqrt_m128d_s

source ·
pub fn sqrt_m128d_s(a: m128d, b: m128d) -> m128d
Available with target feature sse2 only.
Expand description

Low lane sqrt(b), upper lane is unchanged from a.

let a = m128d::from_array([1.0, 2.0]);
let b = m128d::from_array([25.0, 4.0]);
let c = sqrt_m128d_s(a, b);
assert_eq!(c.to_array(), [5.0, 2.0]);