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