Skip to content

Commit

Permalink
x86: move definition of 'value' to correct branch in _mm_loadl_epi64
Browse files Browse the repository at this point in the history
  • Loading branch information
K-os authored and mr-c committed Sep 18, 2024
1 parent 1691ae0 commit b8e468a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions simde/x86/sse2.h
Original file line number Diff line number Diff line change
Expand Up @@ -3548,12 +3548,11 @@ simde_mm_loadl_epi64 (simde__m128i const* mem_addr) {
#else
simde__m128i_private r_;

int64_t value;
simde_memcpy(&value, mem_addr, sizeof(value));

#if defined(SIMDE_ARM_NEON_A32V7_NATIVE)
r_.neon_i64 = vcombine_s64(vld1_s64(HEDLEY_REINTERPRET_CAST(int64_t const *, mem_addr)), vdup_n_s64(0));
#else
int64_t value;
simde_memcpy(&value, mem_addr, sizeof(value));
r_.i64[0] = value;
r_.i64[1] = 0;
#endif
Expand Down

0 comments on commit b8e468a

Please sign in to comment.