Function safe_arch::splat_i16_m128i_s_m128i
source ยท pub fn splat_i16_m128i_s_m128i(a: m128i) -> m128i
Available with target feature
avx2
only.Expand description
Splat the lowest 16-bit lane across the entire 128 bits.
let a = m128i::from(0x77_i128);
let b: [i16; 8] = splat_i16_m128i_s_m128i(a).into();
assert_eq!(b, [0x77_i16; 8]);
- Intrinsic:
_mm_broadcastw_epi16
- Assembly:
vpbroadcastw xmm, xmm