[−][src]Function safe_arch::set_splat_m128_s_m256
#[must_use]pub fn set_splat_m128_s_m256(a: m128) -> m256
This is supported with target feature
avx2
only.Sets the lowest lane of an m128
as all lanes of an m256
.
let a = set_m128_s(5.0); let b = set_splat_m128_s_m256(a).to_array(); assert_eq!(b, [5.0; 8]);
- Intrinsic:
_mm256_broadcastss_ps
- Assembly:
vbroadcastss ymm, xmm