[−][src]Macro safe_arch::extract_m128i_m256i
This is supported with target feature
avx2
only.Gets an m128i
value out of an m256i
.
The lane to get must be a constant. Only the lowest bit of the value is used.
let a = m256i::from([5_u128, 6_u128]); // assert_eq!(extract_m128i_m256i!(a, 0), m128i::from(5_u128)); assert_eq!(extract_m128i_m256i!(a, 1), m128i::from(6_u128)); // the index is "wrapped" to be in bounds. assert_eq!(extract_m128i_m256i!(a, 2), m128i::from(5_u128));
- Intrinsic:
_mm256_extract_epi8
- Assembly:
vextracti128 xmm, ymm, imm8