[−][src]Function safe_arch::convert_to_f32_from_m256_s
#[must_use]pub fn convert_to_f32_from_m256_s(a: m256) -> f32
This is supported with target feature
avx
only.Convert the lowest f32
lane to a single f32
.
let a = m256::from([4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0]); let b = convert_to_f32_from_m256_s(a); assert_eq!(b, 4.0);
- Intrinsic:
_mm256_cvtss_f32
- Assembly:
vmovss m32, xmm