Function safe_arch::extract_i16_as_i32_m256i
source ยท pub fn extract_i16_as_i32_m256i<const LANE: i32>(a: m256i) -> i32
Available with target feature
avx2
only.Expand description
Gets an i16
value out of an m256i
, returns as i32
.
The lane to get must be a constant in the range 0..16
.
let a = m256i::from([0xA_i16, 0xB, 0xC, 0xD, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]);
//
assert_eq!(extract_i16_as_i32_m256i::<0>(a), 0xA);
assert_eq!(extract_i16_as_i32_m256i::<1>(a), 0xB);
- Intrinsic:
_mm256_extract_epi16