From 0f512be3f4311d88b4cefe95207adf0009b8a479 Mon Sep 17 00:00:00 2001 From: Jacob Lifshay Date: Thu, 6 May 2021 20:16:29 -0700 Subject: [PATCH] fix non-fma build --- src/stdsimd.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/stdsimd.rs b/src/stdsimd.rs index 046a337..b691f7c 100644 --- a/src/stdsimd.rs +++ b/src/stdsimd.rs @@ -719,6 +719,7 @@ macro_rules! impl_float { self.0.round().into() } + #[cfg(feature = "fma")] fn fma(self, a: Self, b: Self) -> Self { self.0.fma(a.0, b.0).into() } @@ -779,6 +780,7 @@ macro_rules! impl_float { self.0.round().into() } + #[cfg(feature = "fma")] fn fma(self, _a: Self, _b: Self) -> Self { // FIXME(programmerjake): implement once core_simd gains support: // https://github.com/rust-lang/stdsimd/issues/102 -- 2.30.2