From f49b86810f385b6db8c7044da5961cb3cb13426c Mon Sep 17 00:00:00 2001 From: Ian Date: Sun, 12 Jan 2025 21:20:16 -0500 Subject: [PATCH] Fix issue where not passing actual correct identifier Signed-off-by: Ian --- include/ccmath/internal/support/multiply_add.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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()) {