diff --git a/linalg/src/x86_64_fma.rs b/linalg/src/x86_64_fma.rs index fc1f5d05d1..12664bdcca 100644 --- a/linalg/src/x86_64_fma.rs +++ b/linalg/src/x86_64_fma.rs @@ -112,12 +112,12 @@ fn plug_avx512f(ops: &mut Ops) { pub fn plug(ops: &mut Ops) { if is_x86_feature_detected!("avx2") { - plug_avx2(ops) - } - if is_x86_feature_detected!("fma") { - plug_fma(ops); - } - if is_x86_feature_detected!("avx512f") { - plug_avx512f(ops); + plug_avx2(ops); + if is_x86_feature_detected!("fma") { + plug_fma(ops); + if is_x86_feature_detected!("avx512f") { + plug_avx512f(ops); + } + } } }