Skip to content

Commit a664784

Browse files
committed
Fix warnings for specific simd intrinsics
Signed-off-by: Ian <[email protected]>
1 parent 832fa39 commit a664784

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#ifdef CCMATH_HAS_SIMD
1616
#ifdef CCMATH_HAS_SIMD_SSE2
1717

18-
#if CCMATH_HAS_SIMD_SVML
18+
#ifdef CCMATH_HAS_SIMD_SVML
1919
#include <immintrin.h>
2020
#else
2121
#include "ccmath/internal/math/generic/func/power/pow_gen.hpp"

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#ifdef CCMATH_HAS_SIMD
1616
#ifdef CCMATH_HAS_SIMD_SSE4
1717

18-
#if CCMATH_HAS_SIMD_SVML
18+
#ifdef CCMATH_HAS_SIMD_SVML
1919
#include <immintrin.h>
2020
#else
2121
#include "ccmath/internal/math/generic/func/power/pow_gen.hpp"

include/ccmath/internal/math/runtime/simd/instructions/neon.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ namespace ccm::intrin
155155
CCM_ALWAYS_INLINE simd &operator=(simd &&) = default;
156156
static constexpr int size() { return 2; }
157157
CCM_ALWAYS_INLINE simd(double value) : m_value(vdupq_n_f64(value)) {}
158-
CCM_ALWAYS_INLINE simd(double a, double b) : m_value((float64x2_t){ a, b }) {}
158+
CCM_ALWAYS_INLINE simd(double a, double b) : m_value(vsetq_lane_f64(b, vsetq_lane_f64(a, vdupq_n_f64(0), 0), 1)) {}
159159
CCM_ALWAYS_INLINE simd(storage_type const &value) { copy_from(value.data(), element_aligned_tag()); }
160160
CCM_ALWAYS_INLINE simd &operator=(storage_type const &value)
161161
{

0 commit comments

Comments
 (0)