Function safe_arch::convert_to_m128_from_m128d
source · pub fn convert_to_m128_from_m128d(a: m128d) -> m128
Expand description
Rounds the two f64
lanes to the low two f32
lanes.
let a = m128d::from_array([1.0, 2.5]);
let b = convert_to_m128_from_m128d(a);
assert_eq!(b.to_bits(), [1_f32.to_bits(), 2.5_f32.to_bits(), 0, 0]);
- Intrinsic:
_mm_cvtpd_ps
- Assembly:
cvtpd2ps xmm, xmm