Add comment about fneg to the bitxor in float neg
This commit is contained in:
parent
873639d6fd
commit
ffd562f218
1 changed files with 2 additions and 0 deletions
|
|
@ -223,6 +223,8 @@ macro_rules! impl_op {
|
|||
impl core::ops::Neg for $type {
|
||||
type Output = Self;
|
||||
fn neg(self) -> Self::Output {
|
||||
// FIXME: Replace this with fneg intrinsic once available.
|
||||
// https://github.com/rust-lang/stdsimd/issues/32
|
||||
Self::from_bits(<$type>::splat(-0.0).to_bits() ^ self.to_bits())
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue