Function safe_arch::min_u8_m128i

source ยท
pub fn min_u8_m128i(a: m128i, b: m128i) -> m128i
Available with target feature sse2 only.
Expand description

Lanewise min(a, b) with lanes as u8.

let a = m128i::from([0_u8, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]);
let b = m128i::from([0_u8, 11, 2, 13, 4, 15, 6, 17, 8, 0, 20, 0, 22, 0, 24, 0]);
let c: [u8; 16] = min_u8_m128i(a, b).into();
assert_eq!(c, [0_u8, 1, 2, 3, 4, 5, 6, 7, 8, 0, 10, 0, 12, 0, 14, 0]);