Function sign_apply_i16_m128i
pub fn sign_apply_i16_m128i(a: m128i, b: m128i) -> m128i
Available on crate feature
dep_safe_arch
only.Expand description
Applies the sign of i16
values in b
to the values in a
.
-
If
b
is negative: thea
value is negated. -
Else If
b
is 0: thea
value becomes 0. -
Else the
a
value is unchanged. -
Intrinsic:
_mm_sign_epi16
-
Assembly:
psignw xmm, xmm