[][src]Function safe_arch::cmp_lt_mask_i16_m128i

#[must_use]pub fn cmp_lt_mask_i16_m128i(a: m128i, b: m128i) -> m128i
This is supported with target feature sse2 only.

Lanewise a < b with lanes as i16.

All bits 1 for true (-1), all bit 0 for false (0).

let a = m128i::from([1_i16, 20, 3, 40, -1, -2, -3, 0]);
let b = m128i::from([5_i16, 2, 7, 4, -15, -26, -37, -4]);
let c: [i16; 8] = cmp_lt_mask_i16_m128i(a, b).into();
assert_eq!(c, [-1, 0, -1, 0, 0, 0, 0, 0]);