diff --git a/include/ccmath/internal/support/multiply_add.hpp b/include/ccmath/internal/support/multiply_add.hpp index 640b133..77928fd 100644 --- a/include/ccmath/internal/support/multiply_add.hpp +++ b/include/ccmath/internal/support/multiply_add.hpp @@ -35,8 +35,8 @@ namespace ccm::support constexpr float multiply_add(float x, float y, float z) { - if constexpr (ccm::builtin::has_constexpr_fma) { return ccm::builtin::fma(x, y, z); } - else if constexpr (ccm::builtin::has_fma) + if constexpr (ccm::builtin::has_constexpr_fma) { return ccm::builtin::fma(x, y, z); } + else if constexpr (ccm::builtin::has_fma) { if (is_constant_evaluated()) { @@ -50,8 +50,8 @@ namespace ccm::support constexpr double multiply_add(double x, double y, double z) { - if constexpr (ccm::builtin::has_constexpr_fma) { return ccm::builtin::fma(x, y, z); } - else if constexpr (ccm::builtin::has_fma) + if constexpr (ccm::builtin::has_constexpr_fma) { return ccm::builtin::fma(x, y, z); } + else if constexpr (ccm::builtin::has_fma) { if (is_constant_evaluated()) {