Skip to content

Commit

Permalink
Fix improper checking for SVML
Browse files Browse the repository at this point in the history
Signed-off-by: Ian <[email protected]>
  • Loading branch information
Rinzii committed Jan 25, 2025
1 parent d366248 commit 11c9cc6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ namespace ccm::intrin
{
// The cmake performs a test validating if the compiler supports SVML.
// As far as I'm aware, this is the only reliable way to check.
#if CCMATH_HAS_SIMD_SVML
#ifdef CCMATH_HAS_SIMD_SVML
return { _mm_pow_ps(a.get(), b.get()) };
#else
// TODO: Replace this with a refined solution. For the time being this is temporary.
Expand All @@ -39,7 +39,7 @@ namespace ccm::intrin
{
// The cmake performs a test validating if the compiler supports SVML.
// As far as I'm aware, this is the only reliable way to check.
#if CCMATH_HAS_SIMD_SVML
#ifdef CCMATH_HAS_SIMD_SVML
return { _mm_pow_pd(a.get(), b.get()) };
#else
// TODO: Replace this with a refined solution. For the time being this is temporary.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ namespace ccm::intrin
{
// The cmake performs a test validating if the compiler supports SVML.
// As far as I'm aware, this is the only reliable way to check.
#if CCMATH_HAS_SIMD_SVML
#ifdef CCMATH_HAS_SIMD_SVML
return { _mm_pow_ps(a.get(), b.get()) };
#else
// TODO: Replace this with a refined solution. For the time being this is temporary.
Expand All @@ -39,7 +39,7 @@ namespace ccm::intrin
{
// The cmake performs a test validating if the compiler supports SVML.
// As far as I'm aware, this is the only reliable way to check.
#if defined(CCMATH_HAS_SIMD_SVML)
#ifdef CCMATH_HAS_SIMD_SVML
return { _mm_pow_pd(a.get(), b.get()) };
#else
// TODO: Replace this with a refined solution. For the time being this is temporary.
Expand Down

0 comments on commit 11c9cc6

Please sign in to comment.