[−][src]Function safe_arch::intel::shift_left_i32_m128i
#[must_use]pub fn shift_left_i32_m128i(a: m128i, count: m128i) -> m128i
Shift each i32
lane to the left by the count
in the lower i64
lane.
New bits are 0s.
let a = m128i::from([1_i32, 2, -3, -4]); let b = m128i::from([3_i64, 0]); let c: [i32; 4] = shift_left_i32_m128i(a, b).into(); assert_eq!(c, [1 << 3, 2 << 3, -3 << 3, -4 << 3]);