Function safe_arch::convert_m128_s_replace_m128d_s
source ยท pub fn convert_m128_s_replace_m128d_s(a: m128d, b: m128) -> m128d
Available with target feature
sse2
only.Expand description
Converts the lower f32
to f64
and replace the low lane of the input
let a = m128d::from_array([1.0, 2.5]);
let b = m128::from_array([3.0, 4.0, 5.0, 6.0]);
let c = convert_m128_s_replace_m128d_s(a, b);
assert_eq!(c.to_array(), [3.0, 2.5]);
- Intrinsic:
_mm_cvtss_sd
- Assembly:
cvtss2sd xmm, xmm