From: Jacob Lifshay Date: Fri, 7 May 2021 03:16:29 +0000 (-0700) Subject: fix non-fma build X-Git-Url: https://git.libre-soc.org/?p=vector-math.git;a=commitdiff_plain;h=0f512be3f4311d88b4cefe95207adf0009b8a479 fix non-fma build --- 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