devela::_dep::safe_arch

Function shl_imm_u64_m128i

pub fn shl_imm_u64_m128i<const IMM: i32>(a: m128i) -> m128i
Available on crate feature dep_safe_arch only.
Expand description

Shifts both u64 lanes left by an immediate.

let a = m128i::from([1_u64, 2]);
let c: [u64; 2] = shl_imm_u64_m128i::<3>(a).into();
assert_eq!(c, [1_u64 << 3, 2 << 3]);