[−][src]Function safe_arch::convert_to_i32_m256i_from_m256
#[must_use]pub fn convert_to_i32_m256i_from_m256(a: m256) -> m256i
This is supported with target feature
avx
only.Convert f32
lanes to be i32
lanes.
let a = m256::from([4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0]); let b: [i32; 8] = convert_to_i32_m256i_from_m256(a).into(); assert_eq!(b, [4, 5, 6, 7, 8, 9, 10, 11]);
- Intrinsic:
_mm256_cvtps_epi32
- Assembly:
vcvtps2dq ymm, ymm