Function safe_arch::shl_all_u16_m128i
source ยท pub fn shl_all_u16_m128i(a: m128i, count: m128i) -> m128i
Available with target feature
sse2
only.Expand description
Shift all u16
lanes to the left by the count
in the lower u64
lane.
New bits are 0s.
let a = m128i::from([1_u16, 2, 3, 4, 1, 2, 3, 4]);
let b = m128i::from([3_u64, 0]);
let c: [u16; 8] = shl_all_u16_m128i(a, b).into();
assert_eq!(c, [1_u16 << 3, 2 << 3, 3 << 3, 4 << 3, 1 << 3, 2 << 3, 3 << 3, 4 << 3]);