Function safe_arch::sqrt_m128_s

source ·
pub fn sqrt_m128_s(a: m128) -> m128
Available with target feature sse only.
Expand description

Low lane sqrt(a), other lanes unchanged.

let a = m128::from_array([4.0, 8.0, 7.0, 6.0]);
let b = sqrt_m128_s(a).to_array();
assert_eq!(b, [2.0, 8.0, 7.0, 6.0]);