Function safe_arch::convert_to_m128_from_i32_m128i
source ยท pub fn convert_to_m128_from_i32_m128i(a: m128i) -> m128
Available with target feature
sse2
only.Expand description
Rounds the four i32
lanes to four f32
lanes.
let a = m128i::from([1, 2, 3, 4]);
let b = convert_to_m128_from_i32_m128i(a);
let c = m128::from_array([1.0, 2.0, 3.0, 4.0]);
assert_eq!(b.to_bits(), c.to_bits());
- Intrinsic:
_mm_cvtepi32_ps
- Assembly:
cvtdq2ps xmm, xmm