diff options
| author | Thom Chiovoloni <chiovolonit@gmail.com> | 2020-10-07 13:24:21 -0700 |
|---|---|---|
| committer | Thom Chiovoloni <chiovolonit@gmail.com> | 2020-10-07 13:24:21 -0700 |
| commit | ffd562f2181f5969d56c4a6c9399be27058c8a74 (patch) | |
| tree | cf21a89c7322f06c3a31806014efa3a074ff8d97 | |
| parent | 873639d6fd11c734cee6ae566e6e1e377f208fe7 (diff) | |
| download | rust-ffd562f2181f5969d56c4a6c9399be27058c8a74.tar.gz rust-ffd562f2181f5969d56c4a6c9399be27058c8a74.zip | |
Add comment about fneg to the bitxor in float neg
| -rw-r--r-- | crates/core_simd/src/ops.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crates/core_simd/src/ops.rs b/crates/core_simd/src/ops.rs index 9e0bc3f42a6..5a186649821 100644 --- a/crates/core_simd/src/ops.rs +++ b/crates/core_simd/src/ops.rs @@ -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()) } } |
