[][src]Macro safe_arch::shr_imm_u16_m256i

macro_rules! shr_imm_u16_m256i {
    ($a:expr, $imm:expr) => { ... };
}
This is supported with target feature avx2 only.

Shifts all u16 lanes right by an immediate.

let a =
  m256i::from([1_i16, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16]);
let c: [u16; 16] = shr_imm_u16_m256i!(a, 1).into();
assert_eq!(c, [0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8]);