[−][src]Function safe_arch::set_splat_i16_m128i_s_m256i
#[must_use]pub fn set_splat_i16_m128i_s_m256i(a: m128i) -> m256i
This is supported with target feature
avx2
only.Sets the lowest i16
lane of an m128i
as all lanes of an m256i
.
let a = m128i::from(5_i16 as i128); let b: [i16; 16] = set_splat_i16_m128i_s_m256i(a).into(); assert_eq!(b, [5_i16; 16]);
- Intrinsic:
_mm256_broadcastw_epi16
- Assembly:
vpbroadcastw ymm, xmm