Function safe_arch::set_splat_i8_m128i_s_m256i
source ยท pub fn set_splat_i8_m128i_s_m256i(a: m128i) -> m256i
Available with target feature
avx2
only.Expand description
Sets the lowest i8
lane of an m128i
as all lanes of an m256i
.
let a = m128i::from(5_i8 as i128);
let b: [i8; 32] = set_splat_i8_m128i_s_m256i(a).into();
assert_eq!(b, [5_i8; 32]);
- Intrinsic:
_mm256_broadcastb_epi8
- Assembly:
vpbroadcastb ymm, xmm