Function safe_arch::sign_apply_i32_m128i
source ยท pub fn sign_apply_i32_m128i(a: m128i, b: m128i) -> m128i
Available with target feature
ssse3
only.Expand description
Applies the sign of i32
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_epi32
-
Assembly:
psignd xmm, xmm