Function min_position_u16_m128i
pub fn min_position_u16_m128i(a: m128i) -> m128i
Available on crate feature
dep_safe_arch
only.Expand description
Min u16
value, position, and other lanes zeroed.
let a = m128i::from([120_u16, 24, 300, 400, 90, 129, 31, 114]);
let c: [u16; 8] = min_position_u16_m128i(a).into();
assert_eq!(c, [24_u16, 1, 0, 0, 0, 0, 0, 0]);
// the position favors the leftmost minimum
let a = m128i::from([120_u16, 24, 24, 400, 90, 129, 31, 114]);
let c: [u16; 8] = min_position_u16_m128i(a).into();
assert_eq!(c, [24_u16, 1, 0, 0, 0, 0, 0, 0]);