Function safe_arch::convert_to_i32_m128i_from_m128
source · pub fn convert_to_i32_m128i_from_m128(a: m128) -> m128i
Expand description
Rounds the f32
lanes to i32
lanes.
let a = m128::from_array([1.0, 2.5, 3.0, 4.0]);
let b = convert_to_i32_m128i_from_m128(a);
let c: [i32; 4] = b.into();
assert_eq!(c, [1, 2, 3, 4]);
- Intrinsic:
_mm_cvtps_epi32
- Assembly:
cvtps2dq xmm, xmm