Skip to content

Commit 53f6ba0

Browse files
committed
Remove usage of c99 extension
Signed-off-by: Ian <[email protected]>
1 parent 2b95084 commit 53f6ba0

File tree

1 file changed

+5
-1
lines changed
  • include/ccmath/internal/math/runtime/simd/instructions

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,11 @@ namespace ccm::intrin
6767
CCM_ALWAYS_INLINE simd() = default;
6868
static constexpr int size() { return 4; }
6969
CCM_ALWAYS_INLINE simd(float value) : m_value(vdupq_n_f32(value)) {}
70-
CCM_ALWAYS_INLINE simd(float a, float b, float c, float d) : m_value((float32x4_t){a, b, c, d}) {}
70+
CCM_ALWAYS_INLINE simd(float a, float b, float c, float d)
71+
{
72+
float values[4] = {a, b, c, d};
73+
m_value = vld1q_f32(values);
74+
}
7175
CCM_ALWAYS_INLINE simd(storage_type const & value) { copy_from(value.data(), element_aligned_tag()); }
7276
CCM_ALWAYS_INLINE simd & operator=(storage_type const & value)
7377
{

0 commit comments

Comments
 (0)