Skip to content

Commit

Permalink
Fix warnings for specific simd intrinsics
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 832fa39 commit a664784
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#ifdef CCMATH_HAS_SIMD
#ifdef CCMATH_HAS_SIMD_SSE2

#if CCMATH_HAS_SIMD_SVML
#ifdef CCMATH_HAS_SIMD_SVML
#include <immintrin.h>
#else
#include "ccmath/internal/math/generic/func/power/pow_gen.hpp"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#ifdef CCMATH_HAS_SIMD
#ifdef CCMATH_HAS_SIMD_SSE4

#if CCMATH_HAS_SIMD_SVML
#ifdef CCMATH_HAS_SIMD_SVML
#include <immintrin.h>
#else
#include "ccmath/internal/math/generic/func/power/pow_gen.hpp"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ namespace ccm::intrin
CCM_ALWAYS_INLINE simd &operator=(simd &&) = default;
static constexpr int size() { return 2; }
CCM_ALWAYS_INLINE simd(double value) : m_value(vdupq_n_f64(value)) {}
CCM_ALWAYS_INLINE simd(double a, double b) : m_value((float64x2_t){ a, b }) {}
CCM_ALWAYS_INLINE simd(double a, double b) : m_value(vsetq_lane_f64(b, vsetq_lane_f64(a, vdupq_n_f64(0), 0), 1)) {}
CCM_ALWAYS_INLINE simd(storage_type const &value) { copy_from(value.data(), element_aligned_tag()); }
CCM_ALWAYS_INLINE simd &operator=(storage_type const &value)
{
Expand Down

0 comments on commit a664784

Please sign in to comment.