Function safe_arch::convert_m128d_s_replace_m128_s
source · pub fn convert_m128d_s_replace_m128_s(a: m128, b: m128d) -> m128
Expand description
Converts the low f64
to f32
and replaces the low lane of the input.
let a = m128::from_array([3.0, 4.0, 5.0, 6.0]);
let b = m128d::from_array([1.0, 2.5]);
let c = convert_m128d_s_replace_m128_s(a, b);
assert_eq!(c.to_array(), [1.0, 4.0, 5.0, 6.0]);
- Intrinsic:
_mm_cvtsd_ss
- Assembly:
cvtsd2ss xmm, xmm