use simd_neg in the impl crate::ops::Neg
on s390x I had some problems with the old implementation not combining with other instructions well, and using the purpose-built intrinsic is just clearer.
This commit is contained in:
parent
2dbc1e9b25
commit
b75bc77065
1 changed files with 1 additions and 2 deletions
|
|
@ -298,8 +298,7 @@ macro_rules! impl_neg {
|
|||
impl crate::ops::Neg for s_t_l!($s) {
|
||||
type Output = s_t_l!($s);
|
||||
fn neg(self) -> Self::Output {
|
||||
let zero = $s::splat($zero);
|
||||
unsafe { transmute(simd_sub(zero, transmute(self))) }
|
||||
unsafe { simd_neg(self) }
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue