diff --git a/.cargo/config.toml b/.cargo/config.toml index a06c3c1..f400941 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -4,8 +4,6 @@ rustflags = [ "-C", "target-cpu=native", "-C", - "target-features=+evex512,+fma4,+fma,+avx512f,+avx512pf,+avx512vl,+avx512dq,+avx512cd,+avx512bw", - "-C", "llvm-args=-ffast-math", "-C", "opt-level=3", diff --git a/bench b/bench index 1c159c0..ab10961 100755 Binary files a/bench and b/bench differ diff --git a/src/kernels/striad.rs b/src/kernels/striad.rs index 1af52f9..2d64e7c 100644 --- a/src/kernels/striad.rs +++ b/src/kernels/striad.rs @@ -18,7 +18,7 @@ pub fn striad(a: &mut [f64], b: &[f64], c: &[f64], d: &[f64], n: usize) -> f64 { a_slice .iter_mut() .enumerate() - .for_each(|(i, val)| *val = c[i].mul_add(d[i], b[i])) + .for_each(|(i, val)| *val = c[i] * d[i] + b[i]) }); s.elapsed().as_secs_f64() }