Skip to content

Commit

Permalink
Fix issue where not passing actual correct identifier
Browse files Browse the repository at this point in the history
Signed-off-by: Ian <[email protected]>
  • Loading branch information
Rinzii committed Jan 13, 2025
1 parent 10caa78 commit f49b868
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions include/ccmath/internal/support/multiply_add.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ namespace ccm::support

constexpr float multiply_add(float x, float y, float z)
{
if constexpr (ccm::builtin::has_constexpr_fma<T>) { return ccm::builtin::fma(x, y, z); }
else if constexpr (ccm::builtin::has_fma<T>)
if constexpr (ccm::builtin::has_constexpr_fma<float>) { return ccm::builtin::fma(x, y, z); }
else if constexpr (ccm::builtin::has_fma<float>)
{
if (is_constant_evaluated())
{
Expand All @@ -50,8 +50,8 @@ namespace ccm::support

constexpr double multiply_add(double x, double y, double z)
{
if constexpr (ccm::builtin::has_constexpr_fma<T>) { return ccm::builtin::fma(x, y, z); }
else if constexpr (ccm::builtin::has_fma<T>)
if constexpr (ccm::builtin::has_constexpr_fma<double>) { return ccm::builtin::fma(x, y, z); }
else if constexpr (ccm::builtin::has_fma<double>)
{
if (is_constant_evaluated())
{
Expand Down

0 comments on commit f49b868

Please sign in to comment.