Skip to content

Commit

Permalink
Merge pull request #25459 from rgommers/fix-neon-warnings
Browse files Browse the repository at this point in the history
BLD: fix uninitialized variable warnings from simd/neon/memory.h
  • Loading branch information
rgommers committed Dec 22, 2023
2 parents cc483b6 + e6422e3 commit 30d5eaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion numpy/_core/src/common/simd/neon/memory.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ NPYV_IMPL_NEON_MEM(f64, double)
***************************/
NPY_FINLINE npyv_s32 npyv_loadn_s32(const npy_int32 *ptr, npy_intp stride)
{
int32x4_t a;
int32x4_t a = vdupq_n_s32(0);
a = vld1q_lane_s32((const int32_t*)ptr, a, 0);
a = vld1q_lane_s32((const int32_t*)ptr + stride, a, 1);
a = vld1q_lane_s32((const int32_t*)ptr + stride*2, a, 2);
Expand Down

0 comments on commit 30d5eaa

Please sign in to comment.