Skip to content

Commit ffd562f

Browse files
committed
Add comment about fneg to the bitxor in float neg
1 parent 873639d commit ffd562f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

crates/core_simd/src/ops.rs

+2
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,8 @@ macro_rules! impl_op {
223223
impl core::ops::Neg for $type {
224224
type Output = Self;
225225
fn neg(self) -> Self::Output {
226+
// FIXME: Replace this with fneg intrinsic once available.
227+
// https://github.com/rust-lang/stdsimd/issues/32
226228
Self::from_bits(<$type>::splat(-0.0).to_bits() ^ self.to_bits())
227229
}
228230
}

0 commit comments

Comments
 (0)