Function safe_arch::shl_imm_u32_m128i

source ยท
pub fn shl_imm_u32_m128i<const IMM: i32>(a: m128i) -> m128i
Available with target feature sse2 only.
Expand description

Shifts all u32 lanes left by an immediate.

let a = m128i::from([1, 2, 3, 4]);
let c: [u32; 4] = shl_imm_u32_m128i::<3>(a).into();
assert_eq!(c, [1 << 3, 2 << 3, 3 << 3, 4 << 3]);