[−][src]Function safe_arch::max_u16_m128i
#[must_use]pub fn max_u16_m128i(a: m128i, b: m128i) -> m128i
This is supported with target feature
sse4.1
only.Lanewise max(a, b)
with lanes as u16
.
let a = m128i::from([1_u16, 2, 300, 400, 1, 2, 3, 4]); let b = m128i::from([5_u16, 6, 7, 8, 15, 26, 37, 48]); let c: [u16; 8] = max_u16_m128i(a, b).into(); assert_eq!(c, [5_u16, 6, 300, 400, 15, 26, 37, 48]);