[−][src]Function safe_arch::min_u8_m256i
#[must_use]pub fn min_u8_m256i(a: m256i, b: m256i) -> m256i
This is supported with target feature
avx2
only.Lanewise min(a, b)
with lanes as u8
.
let a = m256i::from([ 0_u8, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 127, 1, 3, 5, 7, 2, 3, 5, 12, 13, 16, 27, 28, 29, 30, 31, 32, ]); let b = m256i::from([ 0_u8, 255, 2, 13, 4, 15, 6, 17, 8, 19, 20, 21, 22, 23, 24, 127, 0, 1, 3, 4, 5, 1, 2, 4, 8, 12, 13, 14, 29, 30, 31, 32, ]); let c: [u8; 32] = min_u8_m256i(a, b).into(); assert_eq!( c, [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 127, 0, 1, 3, 4, 2, 1, 2, 4, 8, 12, 13, 14, 29, 30, 31, 32 ] );
- Intrinsic:
_mm256_min_epu8
- Assembly:
vpminub ymm, ymm, ymm