From 091076a9ad04bd85a4d36da2ef0c0e5916a68b70 Mon Sep 17 00:00:00 2001 From: Magnus Ulimoen Date: Sun, 18 Apr 2021 23:20:08 +0200 Subject: [PATCH] Neon supports fma --- utils/constmatrix/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/constmatrix/src/lib.rs b/utils/constmatrix/src/lib.rs index 74ce369..950d01f 100644 --- a/utils/constmatrix/src/lib.rs +++ b/utils/constmatrix/src/lib.rs @@ -132,7 +132,7 @@ impl Matrix { }; for k in 1..N { cfg_if::cfg_if!( - if #[cfg(target_feature="fma")] { + if #[cfg(any(target_feature="fma", target_feature="neon"))] { t = Float::mul_add(lhs[(i, k)], rhs[(k, j)], t); } else { t = t + lhs[(i, k)]*rhs[(k, j)];