Skip to content

Commit 11c9cc6

Browse files
committed
Fix improper checking for SVML
Signed-off-by: Ian <[email protected]>
1 parent d366248 commit 11c9cc6

File tree

2 files changed

+4
-4
lines changed
  • include/ccmath/internal/math/runtime/simd/func/impl

2 files changed

+4
-4
lines changed

include/ccmath/internal/math/runtime/simd/func/impl/sse2/pow.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ namespace ccm::intrin
2727
{
2828
// The cmake performs a test validating if the compiler supports SVML.
2929
// As far as I'm aware, this is the only reliable way to check.
30-
#if CCMATH_HAS_SIMD_SVML
30+
#ifdef CCMATH_HAS_SIMD_SVML
3131
return { _mm_pow_ps(a.get(), b.get()) };
3232
#else
3333
// TODO: Replace this with a refined solution. For the time being this is temporary.
@@ -39,7 +39,7 @@ namespace ccm::intrin
3939
{
4040
// The cmake performs a test validating if the compiler supports SVML.
4141
// As far as I'm aware, this is the only reliable way to check.
42-
#if CCMATH_HAS_SIMD_SVML
42+
#ifdef CCMATH_HAS_SIMD_SVML
4343
return { _mm_pow_pd(a.get(), b.get()) };
4444
#else
4545
// TODO: Replace this with a refined solution. For the time being this is temporary.

include/ccmath/internal/math/runtime/simd/func/impl/sse4/pow.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ namespace ccm::intrin
2727
{
2828
// The cmake performs a test validating if the compiler supports SVML.
2929
// As far as I'm aware, this is the only reliable way to check.
30-
#if CCMATH_HAS_SIMD_SVML
30+
#ifdef CCMATH_HAS_SIMD_SVML
3131
return { _mm_pow_ps(a.get(), b.get()) };
3232
#else
3333
// TODO: Replace this with a refined solution. For the time being this is temporary.
@@ -39,7 +39,7 @@ namespace ccm::intrin
3939
{
4040
// The cmake performs a test validating if the compiler supports SVML.
4141
// As far as I'm aware, this is the only reliable way to check.
42-
#if defined(CCMATH_HAS_SIMD_SVML)
42+
#ifdef CCMATH_HAS_SIMD_SVML
4343
return { _mm_pow_pd(a.get(), b.get()) };
4444
#else
4545
// TODO: Replace this with a refined solution. For the time being this is temporary.

0 commit comments

Comments
 (0)