From ffd562f2181f5969d56c4a6c9399be27058c8a74 Mon Sep 17 00:00:00 2001 From: Thom Chiovoloni Date: Wed, 7 Oct 2020 13:24:21 -0700 Subject: [PATCH] Add comment about fneg to the bitxor in float neg --- crates/core_simd/src/ops.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/core_simd/src/ops.rs b/crates/core_simd/src/ops.rs index 9e0bc3f42a66..5a186649821b 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()) } }