Function safe_arch::truncate_m128d_to_m128i
source · pub fn truncate_m128d_to_m128i(a: m128d) -> m128i
Expand description
Truncate the f64
lanes to the lower i32
lanes (upper i32
lanes 0).
let a = m128d::from_array([1.1, 2.6]);
let b = truncate_m128d_to_m128i(a);
assert_eq!(<[i32; 4]>::from(b), [1, 2, 0, 0]);