Function safe_arch::byte_shr_imm_u128_m256i
source ยท pub fn byte_shr_imm_u128_m256i<const IMM: i32>(a: m256i) -> m256i
Available with target feature
avx2
only.Expand description
Shifts each u128
lane right by a number of bytes.
let a = m256i::from([0x0000000B_0000000A_0000000F_11111111_u128; 2]);
//
let b: [u128; 2] = byte_shr_imm_u128_m256i::<1>(a).into();
assert_eq!(b, [0x00000000_0B000000_0A000000_0F111111; 2]);
- Intrinsic:
_mm256_bsrli_epi128
- Assembly:
vpsrldq ymm, ymm, imm8